pod问题集

2015-11-20  本文已影响58人  alanzhangg

查看当前安装了哪些版本

gem list --local | grep cocoapods

如果你安装了多个版本那么你将看到

先删除已经装过的版本(可能有几个,卸载的时候会让你输入1,2..n选择卸载那个版本

sudo gem uninstall cocoapods

或者强制卸载某一个版本

gem uninstall cocoapods -v 0.20.2

安装某一个版本

sudo gem install cocoapods -v 0.35.0

pod install --verbose --no-repo-update 不跟新pod应用库

error 错误:

[!] Unable to satisfy the following requirements:

- `AFNetworking (~> 2.3.1)` required by `Podfile`

Specs satisfying the `AFNetworking (~> 2.3.1)` dependency were found, but they required a higher minimum deployment target.

解决方案:Podfile 文件 中   platform:ios, ‘8.0’  后边的 8.0 是平台版本号 ,一定要加上

ERROR:  While executing gem ... (Errno::EPERM)  Operation not permitted - /usr/bin/xcodeproj

版本更新问题:使用 sudo gem install -n /usr/local/bin cocoapods

上一篇下一篇

猜你喜欢

热点阅读