debugging xcrun: error: invalid active developer path



~1 min read


101 words

After updating my MacOS to Catalina, Git broke!

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

It turns out that this is a known problem and has to do with Xcode.

Fortunately, the solution is similar to what happens when you get an no xcode or clt error. For me it was as simple as reinstalling xcode:

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

If that doesn’t work, however, you can try:

sudo xcode-select --reset

or downloading Xcode manually from the Apple Developers site.

Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!