标签:
当需要更新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
标签:
原文地址:http://www.cnblogs.com/lizilong/p/4726951.html