podfile gives an error on install

孤街浪徒 提交于 2019-11-27 17:07:40

A bug was found in libgit2 and they had to execute a force push on the specs repo. This is what broke everyone's CocoaPods setup.

You can find the official post about this issue on the CocoaPods blog : http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/

The recommended way to fix your setup is to execute the following commands :

$ pod repo remove master
$ pod setup

If that doesn't work, you can also delete manually all your cached specs :

$ rm -rf ~/.cocoapods/
$ pod setup

Take a look up the quick fix here ! https://github.com/CocoaPods/Specs/issues/1268

rm -rf ~/.cocoapods/

As Kirualex worte,you'll find the correct solution on http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/

Short, do the following:

$ pod repo remove master
$ pod setup

You could of course also remove the master as described by the others.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!