CocoaPods更新升级版本

1、更新gem:

sudo gem update --system

2、查看gem源是否是最新的:

gem sources -l

3、升级cocoapods:

sudo gem install -n /usr/local/bin cocoapods

4、查看升级后的cocoapods版本:

pod --version

5、卸载cocoapods:

sudo gem uninstall -n /usr/local/bin cocoapods

gem源:
https://ruby.taobao.org/
https://gems.ruby-china.org
https://gems.ruby-china.com . update 2019-3-6

安装gem源
gem source -a https://gems.ruby-china.com

删除安装源

gem sources -r https://gems.ruby-china.com

更新安装源缓存

gem sources -u

升级/更新

更新 gem 本身

gem update --system

更新所有程序包

gem update

你可能感兴趣的:(CocoaPods更新升级版本)