昨天在一次 pod install 之后,虽然完成了第三方库的更新,但是 cocoapods 却有这样的一条提示:

本着有问题就去解决的原则,打开 Google,找到了这样一条解决方法,
终端运行:
sudo rm -rf ~/.cocoapods
pod install
想着应该解决了的我万万没想到,第二个错误又来了:

Are you kidding me ? 别人不是都成功了?
只好再次 Google,找到这样一条:
https://github.com/CocoaPods/CocoaPods/issues/4293

终端运行:
cd ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs.git master

Tips:最好在网络良好的时候运行 。(中间因为断网到 20% 停止,再尝试结果失败,甚至重新安装 CocoaPods 就不详细说了)
希望能帮到你。
网友评论