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-
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.
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.
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