Software⏱️ 3 min read📅 2026-06-04

How to Fix: Qt Creator - Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild

Fix Xcode not set up properly error in Qt Creator on OS X

Quick Answer: Reinstall Qt Creator and select the default Xcode installation path during setup.

Qt Creator users on OS X may encounter an error when opening or starting a project, which indicates that Xcode is not set up properly. This issue affects users who have installed Qt 5.5 and are using it for the first time.

This error can be frustrating as it prevents users from working on their projects until they resolve the issue. In this guide, we will walk you through the root causes of this error and provide a step-by-step solution to fix it.

⚠️ Common Causes

  • The primary reason for this error is that Qt Creator requires Xcode to be set up properly before it can create and manage projects. Although Xcode 5 was not installed during the initial installation of Qt, the process still completed successfully due to other components being used by Xcode.
  • Another possible cause could be related to the license agreement for Xcode. When running /usr/bin/xcodebuild in Terminal, an error message is displayed, suggesting that the user needs to confirm the license agreement.

🛠️ Step-by-Step Verified Fixes

Setting up Xcode correctly

  1. Step 1: Step 1: Open Xcode and navigate to Preferences > Locations. Ensure that the 'Xcode Location' field points to the correct path where Xcode is installed.
  2. Step 2: Step 2: Go back to Qt Creator and select 'Edit Project Settings...' from the project menu. In the 'Build' section, ensure that the 'Xcode Path' is set correctly.
  3. Step 3: Step 3: Close all instances of Xcode and restart Qt Creator. This may resolve any issues related to Xcode not being properly set up.

Confirming the license agreement

  1. Step 1: Step 1: Run /usr/bin/xcodebuild in Terminal to verify that it is working correctly.
  2. Step 2: Step 2: If prompted, confirm the Xcode license agreement by selecting 'Yes' when asked if you want to proceed with the installation process.
  3. Step 3: Step 3: Reopen Qt Creator and try opening or starting a project again. This should resolve any issues related to the license agreement.

✨ Wrapping Up

By following these steps, you should be able to set up Xcode correctly and resolve the error message in Qt Creator. If you continue to encounter issues, consider reinstalling Xcode or seeking further assistance from the Qt community.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions