Resolved: git xcrun error

Opening up a terminal and trying to pull a git repo this morning gave me the following error:

seth@MBP13 ~ % git status
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

After searching I found the following fix that worked for me:

xcode-select --install

It seems to be an effect of MacOS and XCode updates being handled separately. I would guess that my laptop recently updated, breaking the XCode install. I remember having experienced this in the past, and I’m still shocked that this behavior in MacOS hasn’t been improved.

Leave a Reply

Your email address will not be published. Required fields are marked *