I get this error when I run brew update
:
$ brew update
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failure while executing: git checkout -q master
How to fix this issue?
sudo xcode-select -switch /Library/Developer/CommandLineTools/
instead of justsudo xcode-select -switch /
but otherwise this worked great. No need for me to chown the files though. – TunaMaxx Oct 19 '15 at 20:51