When trying to install ROOT I ran into this error
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
To solve the problem I had to re-install developer toolkit
xcode-select --install
In case this doesn't work you can force reset.
sudo xcode-select --reset
It takes some time