升级cocopods

1
2
3
4
5
6
sudo gem update --system
gem source -l
pod setup
pod repo update --verbose
sudo gem install cocoapods --pre
sudo gem cleanup

gem source

1
2
3
4
$ gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
$ gem sources -l
https://gems.ruby-china.com
# 确保只有 gems.ruby-china.com

腾讯云: https://gems.ruby-china.com/ 淘宝:https://ruby.taobao.org/