jhnath jhnath - 6 months ago 55
Git Question

Invalid active developer path error after upgrading to El Capitan

I ran into this error trying to push to git, when I typed git init.

xcrun: error: invalid active developer path

(/Library/Developer/CommandLineTools), missing xcrun at:

I tried the following solutions.

xcode-select —install,
sudo xcode-select -switch,
sudo xcode-select —install,
brew doctor,
brew update,
brew upgrade,
brew cleanup



try typing in "xcode-select -print-path" and see if the path you see is the path you're expecting for your current Xcode version.


If you go to:


(you'll need to sign in with your Apple Developer account)

Once there, you'll see links for "Command Line Tools". It sounds like you need to install MacOS 10.11 Command Line Tools for Xcode 7.