總結(jié)下來昌罩,要想成功升級(jí)cocoapods需要一個(gè)正確的操作流程和命令語句。
1、更新gem:sudo gem update --system
2无拗、刪除gem源:gem sources --remove https://ruby.taobao.org/
3、修改gem源:gem sources -a https://gems.ruby-china.org
4昧碉、查看gem源是否是最新的:gem sources -l
5英染、升級(jí)cocoapods:sudo gem install -n /usr/local/bin?cocoapods --pre
6、查看升級(jí)后的cocoapods版本:pod --version