升级cocoapods

升级cocoapods需要一个正确的操作流程和命令语句

  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(新地址将.org换为.com)
  4. 查看gem源是否是最新的:gem sources -l
  5. 升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre
  6. 查看升级后的cocoapods版本:pod --version

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