CocoaPods Update

当需要更新CocoaPods的时候,发现此问题.

pod update
Update all pods
Analyzing dependencies
[!] The version of CocoaPods used to generate the lockfile (0.37.1) is higher than the version of the current executable (0.34.4). Incompatibility issues may arise.

尝试了很多方法,都无法更新,导致无法pod install.网上查了很多资料也无法更新.最后发现需要先更新gem

sudo gem update --system // 先更新gem,国内需要切换源
gem sources --remove https://rubygems.org/
gem sources -a http://ruby.taobao.org/
gem sources -l
http://ruby.taobao.org/
sudo gem install cocoapods // 安装cocoapods
pod setup

 最后检查version

pod --version
0.38.2

 

tips:出现这样字段,可能会等很久,一定要有耐心

updating local specs repositories

 

posted @ 2015-08-13 12:40  shuffle  阅读(417)  评论(0编辑  收藏  举报