cocoapods降低版本解决

Cocoapods降低版本及卸载cocoapods的绝大多数的工程中都会使用,正常的情况是我们对cocoapods进行版本升级,如果之前没有安装过cocoapods,可以看这里:cocoapods安装,

如果已经安装了cocoapods,想要进行升级,可以使用sudo gem install -n /usr/local/bin cocoapods --pre 进行更新(目前最新是1.0.0),参考:pod更新遇到的问题

如果想从高版本降低到低版本,首先要卸载当前版本1.0.0,通过sudo gem uninstall cocoapods 命令选择要卸载的版本。如下图:

图1:

cocoapods降低版本解决_第1张图片

卸载完成后,通过sudo gem install cocoapods -v 0.39.0 来降低到0.39.0版本,如果提示error:Operation not permitted - /usr/bin/pod,使用sudo gem install -n /usr/local/bin cocoapods -v 0.39.0就可以解决,安装成功后,通过pod --version查看当前你cocoapods版本。参考链接:installation - Cannot install cocoa pods after uninstalling


注:其他链接汇总:


Cocoapods降低版本及卸载

ios - Downgrading or installing older version of Cocoapods - Stack Overflow

你可能感兴趣的:(cocoapods降低版本解决)