After upgrading my OSX El Capitán
to the new version macOS Sierra
, I get this error when trying to run any git command, for example when running:
git status
I get the following error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Any ideas what I can do about it?
You can use
xcode-select --install
.An Xcode window will appear in which you must click on
Instalar
, after that you will have to finish the process and you will be able to use itgit
again.original answer
Original user cuadraman of the site in English.
Angel Angel's solution is good, but it didn't work for me because I got the following error message:
Basically what you're saying is that you can't find the software or it's not available through the server. In that case, what you have to do is install it manually by following these steps:
For me none of the previous solutions worked, what I did was restart xcode tools
Cheers