CocoaPods 1.0.0 is available.
To update use:gem install cocoapods
Until we reach version 1.0 the features of CocoaPods can and will change.
We strongly recommend that you use the latest version at all times.
提示cocoapods发出了1.0版本,赶紧更新
执行gem install cocoapods
更新cocoapods
报这个错误:
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://ruby.taobao.org/ - server did not return a valid file (https://ruby.taobao.org/latest_specs.4.8.gz)
ERROR: Possible alternatives: cocoapods
提示没有找到一个有效的文件,后来想起来MAC系统升级后CocoaPods的路径改变了,Google之后输入以下命令:
sudo gem install -n /usr/local/bin cocoapods --pre
升级成功!
pod --version
查看CocoaPods版本
搞定收工~