Missing xcrun on OS X El CapitanOctober 01, 2015 · 1 min read
Today I updated my MacBook to the latest version of OS X, El Capitan.
The upgrade ran successfully and everything seemed great, except when I open the Terminal and realized that some of the commands that I use daily, like git or brew, started giving me the error below:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I found after a few googling that this error is origined by the lack of Xcode Command Line Tools.
The wired part is that I had the Command Line Tools installed in Yosemit. I guess that El Capitan remove it by default.
I only had to reinstall Xcode Command Line Tools with the command below, to fix the problem.
$ xcode-select --install