iOS 升级cocoapods最新

查看版本:pod --version

1.升级gem:sudo gem update --system

 2.替换:gem sources --removehttps://rubygems.org/

gem source - https://gems.ruby-china.org/specs.4.8.gz

 (gem sources --add https://gems.ruby-china.org/specs.4.8.gz --removehttps://rubygems.org/)

sudo gem install cocoapods --pre

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


//安装指定版本,如1.7.5

sudo gem install cocoapods -v 1.7.5

// 安装稳定版本

sudo gem install cocoapods

// 安装最新版本

sudo gem install cocoapods --pre

你可能感兴趣的:(iOS 升级cocoapods最新)