Pod file not being initialized? Pod file not being initialized? xcode xcode

Pod file not being initialized?


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.


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.

PreferencesLocationsSelected the Command Lin Tools: Xcode 9.0

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


You need to set command line tool version, in Xcode:

You can download latest command line tool from Apple Download Portal, if you have paid apple developer account/id.


Here are current beta and stable Xcode Tool and supporting command line tool download link. (Ensure you'are logged in using premium developer account on Apple Developer Account to access these links)

Xcode 11

Xcode 10

Once you've latest command line tool installed in your system, set it from Xcode Menu.

(Xcode Menu Items) Xcode ▶ Preferences ▶ Location ▶ Command Line Tool ▶ Select appropriate command line tool

enter image description here