Cocoapods-更新

1、更新 gem ,国内需切换 gem source

sudo gem update --system

2、切换 gem source

gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

3、检查

gem sources -l
*** CURRENT SOURCES***
https://gems.ruby-china.org

4、安装 cocoapods(mac osx 10.11 之后)

sudo gem install -n /usr/local/bin cocoapods --pre //安装最新版本

你可能感兴趣的:(Cocoapods-更新)