invalid active developer path iOS Origin: On your device Last updated 13 Oct 2026

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

The Xcode Command Line Tools are missing or broken — typical right after a macOS update.

Exact message you may see xcrun: error: invalid active developer pathmissing xcrunxcode-select: error: tool 'xcodebuild' requires Xcode
Seen on: iOS

Meaning

git, make, clang and many developer tools need the Command Line Tools. macOS updates often remove them; reinstalling fixes it, and xcode-select chooses which developer directory is active.

Common causes

  • macOS upgrade removed the Command Line Tools
  • xcode-select pointing to a deleted Xcode
  • Never installed on a new Mac

⚡ Quick fix

  1. Install: xcode-select --install
  2. Point to Xcode: sudo xcode-select -s /Applications/Xcode.app
  3. Reset: sudo xcode-select --reset

Detailed fix by platform

Shell

  1. swift
    xcode-select --install
    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    xcode-select -p

How to diagnose

  1. Path — xcode-select -p
  2. Installed — /Library/Developer/CommandLineTools exists?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

Android license status unknown / licenses not accepted — flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses (Flutter / Dart)Android license statu…Cannot preview in this file — SwiftUI Preview: Cannot preview in this file — the preview crashed / failed to build (iOS)Cannot preview in thi…cmdline-tools component is missing — flutter doctor: Android SDK is missing command-line tools; download from https://goo.gl/XxQghQ — cmdline-tools component is missing (Flutter / Dart)cmdline-tools compone…command not found — bash: command not found (Linux)command not foundFailed to prepare device for development — Xcode: Failed to prepare device for development / iPhone is not available. Please reconnect the device (iOS)Failed to prepare dev…ITMS-90725 — ITMS-90725: SDK version issue — This app was built with the iOS 17.x SDK. All iOS apps submitted to the App Store must be built with the iOS 18 SDK or later (iOS)ITMS-90725No such module — Swift: No such module 'X' (module not found) (iOS)No such moduleNo Xcode or CLT — gyp: No Xcode or CLT version detected! (npm)No Xcode or CLTinvalid a…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.