Problem with upgrading Mac OS X and losing Xcode install
We’ve seen this happen a few times with internal staff. Who:
Installed IguanaX
Installed xcode command tools
Upgraded their operating system
Upgrading the operating system breaks the install of the Xcode command line tools which are needed for Git. You might see something like this:
#git https://bitbucket.org/interfaceware/notifiers
- ERROR xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
How do you fix it?
Step 1: Open up your terminal, if you need help follow the instructions on this page: Finding the Mac OS X - Terminal
Step 2: Then, copy and paste this to reinstall the xcode tools:
xcode-select --install
After, you should see this message “xcode-select: note: install requested for command line developer tools
“
An XCode installer window should pop up. Use the Xcode installer to install xcode, this may take a couple minutes.
Troubleshooting!
If you get this message: “xcode-select: error: command line tools are already installed, use “Software Update” to install updates”
, then it means you need to clean up your old command line tools using this:
sudo rm -rf /Library/Developer/CommandLineTools
Then do this command again:
This should repair your git installation.