CocoaPods升级

1.先检查ruby源ruby

gem source -l // 国外官方源为 https://rubygems.org/

2.最好替换为国内源,删除其余源 ( 速度更快,国内源有时会发生变化,因此国内源也要变化 )框架

gem sources --add https://gems.ruby-china.com --remove xxx.xxx (例如:https://rubygems.org/)

3.确保ruby源中只有 https://gems.ruby-china.com , 有其余的则要删掉spa

gem source -l

4.更新CocoaPodscode

gem install cocoapods -n /usr/local/bin

5.最后更新一个pod仓库blog

pod setup
  • pod update 与 pod install区别

  pod install会去找Profile.lock中框架指定的版本去安装第三方库;pod update会找Profile中去安装,若是Profile没有指定框架的版本,那么会去下载最新版本rem

相关文章
相关标签/搜索