Pod file not being initialized?

后端 未结 9 781
说谎
说谎 2020-12-28 17:52

When i try to initialize pod file to use cocoapods via terminal, it gives me this error. How to fix it.

/Library/Ruby/Gems/2.0.0/gems/cocoapods-         


        
相关标签:
9条回答
  • 2020-12-28 18:27

    I was having an issue while trying to install packages using cocoapods. I have tried "sudo xcode-select --switch /Applications/Xcode.app" still getting wrong path error

    To fix this

    I opened Xcode.

    Preferences
    Locations
    Selected the Command Lin Tools: Xcode 9.0
    

    Now when installing packages with cocoapods I no longer get errors.

    0 讨论(0)
  • 2020-12-28 18:29

    I followed this

    After installing command line tools, I closed it and opened terminal again. Now when I checked version git --version, it gave me update version 2.10.0 then I ran other commands for cocoapod.

    Now it is working.

    0 讨论(0)
  • 2020-12-28 18:34

    After installing OS Mojave and installed new Xcode tools i just had to check again the tools in:

    Xcode > Preferences > Locations > Command Line tools = Xcode 10.0

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