Fix "xcrun: error: invalid active developer path" after a macOS update — by onin on Ask Different
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
- Run in Terminal: xcode-select --install
- 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.
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