Error on pod install

后端 未结 10 1932
南笙
南笙 2020-11-30 17:03

I have a working project the uses a pod file for some weeks now. When I learned that some of my pods have update I tried to \'pod install\' on got this weird error

相关标签:
10条回答
  • 2020-11-30 17:33

    You can try it like this. pod spec lint --sources='https://git.oschina.net/yourname/jqcpodspec,https://github.com/CocoaPods/Specs' --allow-warnings --use-libraries

    if your spec pass validation, then pod repo push JQCPodSpec FMCommonModelLib.podspec --sources='https://git.oschina.net/yourname/jqcpodspec,https://github.com/CocoaPods/Specs' --allow-warnings --use-libraries

    0 讨论(0)
  • 2020-11-30 17:34

    If you landed here on or after January 30th 2014, there is a break in CocoaPods causing this. Please read the related blog post found here: http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/

    or do:

    pod repo remove master
    pod setup
    
    0 讨论(0)
  • 2020-11-30 17:34

    Wow this one has been a real pain and everyone seems to have a different solution. For me this solution worked on multiple machines/environments on a few occasions:

    Apparently there is a bug with psych that is causing the problem.

    sudo gem uninstall psych
    sudo gem install psych -v 2.0.0
    

    There's a lengthy conversation over on the CococaPods repo about the issue and this fix.

    0 讨论(0)
  • 2020-11-30 17:36

    You need to fix permissions and files owner

    $ sudo chown -R user ~/Library/Caches/CocoaPods
    $ sudo chown -R user ./Pods
    $ sudo chown -R user ./Podfile.lock
    $ sudo chmod -R 777 ./Pods
    
    $ pod update/setup
    
    0 讨论(0)
提交回复
热议问题