Software⏱️ 2 min read📅 2026-05-31

How to Fix: Command Line Tool - Error - xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

Learn how to fix: Command Line Tool - Error - xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH.

Quick Answer: Try checking your system settings or restarting.

To resolve the "xcrun: error: unable to find utility 'xcodebuild'" issue, you need to install Xcode and add it to your system's PATH environment variable.

🔧 Proven Troubleshooting Steps

Method 1: Install Xcode and Add to PATH

  1. Step 1: Download and install the latest version of Xcode from the Mac App Store or Apple's official website.

Method 2: Add to PATH Environment Variable

  1. Step 1: Open the Terminal app on your Mac and run the following command: `xcode-select --install`

Method 3: Update Carthage Configuration

  1. Step 1: Open the `Carfile` in your project's root directory and update the following line: `platform :ios, '12.0'` to `platform :ios, '13.0'` (or a compatible version)

🎯 Final Words

By following these steps, you should be able to resolve the "xcrun: error: unable to find utility 'xcodebuild'" issue and successfully build your SwiftJSON framework.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions