'pod install' giving error on Xcode 7

前端 未结 4 1955
遥遥无期
遥遥无期 2021-01-18 16:54

I have updated my cocoapods(0.38.2) gem and xcodeproj(0.27.2), but still getting error:-

Writing Xcode project file to `Pods/Pods.xcodeproj`
2015-09-24 09:40         


        
相关标签:
4条回答
  • 2021-01-18 17:13

    Have you tried to update your cocoapods gem using sudo ?

    sudo gem update

    0 讨论(0)
  • 2021-01-18 17:14

    I got same error while pod installation.

    Following commands work for me.

    ~> sudo gem uninstall cocoapods
    ~> sudo gem install cocoapods
    ~> pod install
    
    0 讨论(0)
  • 2021-01-18 17:28

    I just installed newer version, all error went away. sudo gem install cocoapods --pre. I had 0.37.2, i updated to a beta version 0.39.0

    0 讨论(0)
  • 2021-01-18 17:33

    Try sudo xcode-select -r

    If it didn't help, let me know

    it helped for me

    'pod --version' returned 0.37.2 (even after updating cocoa pods to 0.38.2) it would update but still for some reason use 0.37.2 for all pod commands
    So what I did: 
    1) run 'pod --verbose' to locate the 0.37.2, delete it manually
    2) run 'gem list --local | grep cocoapods' to find all cocoa pods installed on machine
    2.1) 'gem uninstall' everything returned by step2 
    2.2) run 'gem list --local | grep cocoapods' just to make sure everything is deleted
    3) '[sudo] gem uninstall cocoapods'
    4) '[sudo] gem install cocoapods'
    

    Or try home-brew update if you installed pod via brew before

    0 讨论(0)
提交回复
热议问题