Skip to content

Instantly share code, notes, and snippets.

@dinhnguyen
Created July 30, 2015 01:57
Show Gist options
  • Save dinhnguyen/035b7f07304b69125db5 to your computer and use it in GitHub Desktop.
Save dinhnguyen/035b7f07304b69125db5 to your computer and use it in GitHub Desktop.
Fixing xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun in OSX 10.9 Mavericks
Fixing xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun in OSX 10.9 Mavericks
When using git for the first time in OSX Mavericks you may run into a problem where you get the following error:
xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun
This error indicates can be fixed by running the following commands:
sudo xcode-select --install
This will force the Xcode command line tools to be reinstalled. Now we just run the following command to point xcrun to the correct path for the reinstalled tools:
sudo xcode-select -switch /
Credit to people in this homebrew issue thread for identifying this fix:
https://github.com/mxcl/homebrew/issues/23500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment