After upgrading to macOS Sierra I suddenly couldn’t use git.
A simple git clone [repo] would give me an nice error like:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

It appears that I need to reinstall xcode, so execute;

xcode-select --install

1 Comment

sanjay verma · April 25, 2018 at 4:40 am

After running command – xcode-select –install, Still getting same error.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.