Upgrading macOS: Fix Invalid Active Developer Path

Tyler Tyler (304)
2 minutes

After upgrading to Catalina (and originally Mojave), I ran git pull and saw this terrible error.

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

Fortunately, this is easy to fix. Read on.

Posted in these interests:
h/macos55 guides
xcode-select --install

To fix this, it seems that you'll need to explicitly agree to the license agreement.

If you end up with multiple versions of Xcode, you can select the version you want with:

xcode-select --switch /Applications/Xcode.app

Or if you want to run command line tools without Xcode:

xcode-select --switch /Library/Developer/CommandLineTools

See this article for more information.

Apple hid the battery percentage option starting with Big Sur. Here's where it is.
Zach Zach (249)
5 minutes

I always keep an eye on my MacBook's battery percentage—especially since, as a developer, I run a lot of resource-intensive applications.