xcode-select: error: tool 'xcodebuild' requires Xcode macOS Origin: Platform & cloud OSI layer 7 · Application Last updated 5 Nov 2026

macOS: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

A command needs the full Xcode app, but xcode-select points to the Command Line Tools only.

Exact message you may see xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instancetool 'xcodebuild' requires Xcodexcrun: error: unable to find utility "simctl", not a developer tool or in PATHactive developer directory is a command line tools instance
Seen on: macOS

Meaning

Install Xcode from the App Store and select it: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer. Then accept the license (sudo xcodebuild -license accept) and run xcodebuild -runFirstLaunch. Tools such as simctl, xcodebuild and iOS builds don't exist in CLT.

Common causes

  • Only CLT installed
  • xcode-select pointing to CLT even though Xcode is installed
  • Xcode installed under a different name/path
  • Multiple Xcode versions
  • CI image missing Xcode

⚡ Quick fix

  1. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
  2. sudo xcodebuild -runFirstLaunch
  3. Install Xcode if absent

Detailed fix by platform

macOS

  1. xcode-select -p && ls /Applications | grep Xcode

How to diagnose

  1. Active — CLT or Xcode?
  2. App — Xcode installed?
  3. First launch — Components installed?

🔧 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: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

Can't install the software because it is not currently available from the Software Update server — macOS: xcode-select: error: Can't install the software because it is not currently available from the Software Update server (macOS)Can't install the sof…Cannot preview in this file — SwiftUI Preview: Cannot preview in this file — the preview crashed / failed to build (iOS)Cannot preview in thi…Failed 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…Homebrew Cask: It seems there is already an App at — Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app' (macOS)Homebrew Cask: It see…invalid active developer path — xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun (iOS)invalid active develo…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 profiles for 'x' were found — Xcode: No profiles for 'com.example.app' were found: Xcode couldn't find any iOS App Development provisioning profiles matching (Flutter / Dart)No profiles for 'x' w…No such module — Swift: No such module 'X' (module not found) (iOS)No such modulexcode-sel…

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.