# `xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun`

**Where it appears:** Terminal (Mac)

**What it means:** After a macOS update, your Mac needs you to reinstall or accept the Apple Command Line Developer Tools so Git can work.

## Likely causes

- A recent macOS update cleared the Command Line Tools link.
- The ”Install Command Line Developer Tools” window on Mac hasn't been completed yet.

## Message for your agent

```text
My Mac shows `xcrun: error: invalid active developer path`. Run `xcode-select --install` and wait while I click Install in the macOS window.
```

**Prevention:** If Git stops working right after a macOS update, run `git --version` once to trigger the Apple installer.

---
Source: [Agentic Makers](https://agenticmakers.app/en/help/errors/xcrun-invalid-active-developer-path) · License: CC BY 4.0
