When i try to initialize pod file to use cocoapods via terminal, it gives me this error. How to fix it.
cocoapods
/Library/Ruby/Gems/2.0.0/gems/cocoapods-
I encounter the same problem and solve it by using the following command:
sudo xcode-select --switch /Applications/Xcode.app
As the error message in terminal shows, something with my git goes wrong. And, it has to do with the command line tool.
terminal
git