[!] The `master` repo requires CocoaPods 1.0.0 -(currently using 0.39.0)
Update CocoaPods, or checkout the appropriate tag in the repo.
报此错误需要对CocoaPods进行升级。
10.11系统之前命令为:sudo gem update cocoapods
10.11系统会报错:
Updating installed gems
Updating cocoapods
ERROR:While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
因为10.11会把目录移动到/usr/local/bin中,如下图
所以10.11之后系统要用命令:sudo gem install -n /usr/local/bin cocoapods
CocoaPods快速更新依赖库:
pod update --verbose --no-repo-update
pod install --verbose --no-repo-update
安装多个Xcode cocoa找不到路径的解决方法:
解决:MacBook-Pro:$ sudo xcode-select-switch /Applications把Xcode路径拖拽过来/Xcode.app