Mac OSX Install - Xcode was already installed/working, Unreal Can't Find Xcode

I am a Ruby on Rails Developer and already have Xcode (command line tools) setup/working on my Mac. I have a ton of existing dependancies with Xcode. when I try launching Unreal Engine 5.2 I get the error:

Xcode Not Found - Unreal Engine requires Xcode to compile shaders for Metal. To continue, install Xcode and open it to accept the license agreement. If you install Xcode to any location other than Applications/Xcode, also run the xcode-select command-line tool to specify its location.

I see a solution on the forums here to run the terminal command:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

But that command seems to be a change to the global Xcode config, rather than simply giving a path to Unreal Engine.

My fear is that if I run that command, Unreal may run, but it’s going to break everything else I’ve got running with Xcode.

4 Likes

Hello Drawk:

Did you ever get an answer? I am having the same issues.

I have an M2 Mac mini with 24 gb RAM and Sonoma 14.1, x code 15.0.1 with extras installed

I have even opened x code, I have restarted, and I still keep getting this error code.

I’ll try the terminal line and let you know.

OK that line of code did nothing. I had nothing to lose.

I am not sure what I did but about 5 times or so later unreal eninge launched but do not see how I take a video edite (NOT animation) into the render engine

Hi BigVannoy,

came to this thread for the same issue. I have an M2 mac. I ran sudo xcode-select -s /Applications/Xcode.app/Contents/Developer in the terminal. Closed Xcode as well as the Epic Games launcher. Then restarted the Epic Games launcher. Got a prompt to fix “unassociated uproject files” and now Unreal Engine is running just fine.

4 Likes

dont know how this works but it did

Had the same issue. In my case it triggered after installing homebrew (with which I tried to install an alternative java version) which installed some command line tools of its own. I first reinstalled Xcode to no effect. Then I closed both Epic Launcher and Xcode and ran the command and now projects open just fine.

I got this error message when I Launch Unreal Engine from the Launcher first time:

Unreal Engine requires Xcode to compile shaders for Metal. To continue, install Xcode and open it to accept the license agreement. If you install Xcode to any location other than Applications/Xcode, also run the xcode-select command-line tool to specify its location.

It was simply solved when I installed Xcode from App Store and opened it the first time and agreed the terms and licenses of Xcode. Then, I reopened the Launcher and launched the Unreal Engine again. It worked!

This solved the issue for me, thanks! Realized after reading your comment it must have been homebrew which I also recently installed.