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:
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
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.
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!
Step1 : Set Xcode Path : In Terminal, set the Xcode path using the xcode-select command: sudo xcode-select --switch /Applications/Xcode.app
Step2 : Open Xcode again to make sure you have agreed to all license agreements.
Step3 : You can verify if Xcode is properly set up by running: xcode-select --print-path
In my case it was installed in Library, then using the above steps I changed it to Applications. Now its working.