podfile gives an error on install

前端 未结 3 1095
南旧
南旧 2020-12-04 08:25

I cloned a repo from git. Then removed the .git and .gitignore. The podFile looks like

platform :ios, \'6.1\'

pod \'AFNetworking\', \'~>1.3.3\'
pod \'AFO         


        
3条回答
  •  时光取名叫无心
    2020-12-04 08: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
    

提交回复
热议问题