Watch: Fix "xcrun: error: invalid active developer path" on Mac | Vovy

Watch Vovy do it on a Mac: "Git stopped working after I updated macOS, it says invalid active developer path". After a macOS upgrade, git and make often fail with "xcrun: error: invalid active developer path". Vovy reinstalls Apple's Command Line Tools and gets you back.

"Git stopped working after I updated macOS, it says invalid active developer path"

After a macOS upgrade, git and make often fail with "xcrun: error: invalid active developer path". Vovy reinstalls Apple's Command Line Tools and gets you back.

What happens in the video

  1. Read the exact error: Vovy runs git --version and reads the error. The xcrun message means Apple's Command Line Tools, the compilers and git that ship separately from macOS, went missing in the update.
  2. Start the Command Line Tools install: Vovy runs xcode-select --install, which opens Apple's installer window. You click Install and agree to the license yourself.
  3. Wait out the download: The download is a few hundred megabytes. Vovy watches the progress window and tells you when it finishes so you can keep working.
  4. Point xcode-select at the right folder: If you also have full Xcode, Vovy checks xcode-select -p and resets the path when it points at an old or deleted location.
  5. Confirm git works again: Vovy reruns git --version and your last failing command, then shows a card with what broke and why macOS updates do this.
Read the step-by-step guide