If you’re a Unreal Engine user who has recently encountered an error message related to the license agreement in Xcode, you’re not alone. This issue can be frustrating and time-consuming to resolve, but with the right information and steps, you can quickly fix it.

What is the Xcode License Agreement Error?

The Xcode License Agreement Error occurs when there is a problem with the license agreement for Xcode. This error message typically appears when you try to open an Unreal Engine project that requires Xcode. The error message might look something like this:

“Xcode command line tool version 12.x.x cannot be found”

This error occurs because Xcode is unable to find the necessary license agreement files or because there are missing or corrupted files.

Steps to Resolve the Xcode License Agreement Error

To resolve the Xcode License Agreement Error in Unreal Engine, follow these steps:

  1. The first step is to make sure that you have the latest version of Xcode installed. To check for updates, open the App Store app on your Mac and search for “Xcode”. If there is an update available, install it.

  2. If updating Xcode did not resolve the error, try repairing the command line tools. To do this, follow these steps:

1. Open Terminal on your Mac by searching for it in Spotlight or going to Applications > Utilities > Terminal.

2. Type “sudo xcode-select -r” and press Enter. This will launch the Xcode Command Line Tools Repairer tool.

3. Follow the prompts to repair the command line tools. This may take some time, so be patient.

  1. If the previous steps did not work, try clearing your derived data. To do this, follow these steps:

1. Open Unreal Engine by going to Applications > Unreal Engine > Editor or by searching for it in Spotlight.

2. Click on Edit > Project Settings.

3. In the left-hand menu, click on Derived Data.

4. Click on the “+” button next to “Location” and select a new location where you want your derived data to be stored.

5. Make sure that the new location is not the same as the original location.

6. Close Unreal Engine.

7. Open Terminal on your Mac by searching for it in Spotlight or going to Applications > Utilities > Terminal.

8. Type “rm -rf ~/Library/DerivedData” and press Enter. This will remove the old derived data folder.

Step 4: Check License Files

If none of the previous steps worked, try checking your license files. To do this, follow these steps:

  1. Open Unreal Engine by going to Applications > Unreal Engine > Editor or by searching for it in Spotlight.

  2. Click on Edit > Project Settings.

  3. In the left-hand menu, click on Platforms.

  4. Select the platform that you want to check (e.g., Windows).

  5. In the right-hand panel, scroll down and find the “Unreal Engine License Files” section.

  6. Make sure that the license file path is correct and that the license files exist in that location. If they do not, download them from the Epic Games Launcher or from the Unreal Engine website.

  7. Save your project settings.