查看当前 Cocoapods版本 pod --version
1.检查当前 ruby 源,使用 http://gems.ruby-china.com
gem source -l 查看源
gem sources --remove 旧源
gem sources -a 新源
- 更新Cocoapods
sudo gem install cocoapods - 检查当前Cocoapods版本
pod --version - 完
查看当前 Cocoapods版本 pod --version
1.检查当前 ruby 源,使用 http://gems.ruby-china.com
gem source -l 查看源
gem sources --remove 旧源
gem sources -a 新源
sudo gem install cocoapods
pod --version