如果您執行pod install –verbose –no-repo-update或pod update –verbose –no-repo-update不能成功,那麼您也許就能用到以下命令了:
1.gem sources –remove https://rubygems.org/ 先移除老的網址
2.gem sources -a https://gems.ruby-china.org/ 添加新的網址
3.gem sources -l 查看是否成功
4.sudo gem install -n /usr/local/bin cocoapods 如果您最近更新了Mac OS 那麼pod也需要重新安裝一下
5.pod update –verbose –no-repo-update 更新第三方庫數據