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.
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 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
sudo xcode-select -s /Applications/Xcode.app/Contents/Developersudo xcodebuild -runFirstLaunch- Install Xcode if absent
Detailed fix by platform
macOS
xcode-select -p && ls /Applications | grep Xcode
How to diagnose
- Active — CLT or Xcode?
- App — Xcode installed?
- 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:
Similar errors
- 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
- Cannot preview in this file SwiftUI Preview: Cannot preview in this file — the preview crashed / failed to build
- Failed to prepare device for development Xcode: Failed to prepare device for development / iPhone is not available. Please reconnect the device
Most viewed in macOS
- is damaged and can’t be opened macOS: “App” is damaged and can’t be opened. You should move it to the Trash.
- Operation not permitted (macOS privacy) macOS: Operation not permitted — Terminal/app lacks Full Disk Access (TCC privacy protection)
- zsh: command not found: brew macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 5 Nov 2026