安装
参考:http://www.brighttj.com/ios/ios-cocoapods-install-and-use.html
问题解决:
1 .mac系统升级到10.11系统,在用pod install命令的时候,提示command not found,Cocoapods在10.11系统上发生了变化。 sudo gem install cocoa pods -v
sudo gem install cocoa pods -v
就会出现这样的提示:
ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod。
改为:sudo gem install -n /usr/local/bin cocoapods