Mac OS X El Capitan upgrade – xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

You’ve just upgraded to Mac OS X El Capitan, used git (or some other commands from terminal) and encountered this error

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

you can “fix” this by running this command in your terminal

sudo xcode-select --install

a dialog will appear prompting you to install, just follow instructions and after install try your command again and it should be back to normal working state

Hope all that works well for you

More details on

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.