Skip to content

Fix "xcrun: error: invalid active developer path" after a macOS update — by onin on Ask Different

beginnerforumCC BY-SA (Stack Exchange; version depends on post date)

After a macOS upgrade, git and other developer tools often stop with this error because the Command Line Tools need reinstalling. Running xcode-select --install brings up an installer, and you don't need the full Xcode app.

Quick steps

  1. Run in Terminal: xcode-select --install
  2. Click Install in the dialog (it may open behind other windows)

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full thread on apple.stackexchange.com

Source: Fix "xcrun: error: invalid active developer path" after a macOS update by onin on Ask Different. Licence: CC BY-SA (Stack Exchange; version depends on post date).

Source reviewed
2026-11-02
Link checked
Not yet
Tested hands-on
Not by Oddbyte.Me

gitxcodecommand line toolsterminal

More in Community Answers (Stack Exchange)