podfile gives an error on install

前端 未结 3 1094
南旧
南旧 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
    
    0 讨论(0)
  • 2020-12-04 08:49

    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.

    0 讨论(0)
  • 2020-12-04 08:57

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

    rm -rf ~/.cocoapods/
    
    0 讨论(0)
提交回复
热议问题