Can't find Xcode install for Metal compiler

Worked for me over a year later! Thanks!

Worked for me, thank you!!

xcode has to be moved to apps before using terminal

worked for me over after a year too! thanks!

I have the same problem but i have Xcode installed on an external drive so whats the solution?

1 Like

Worked for me perfectly. I installed Unreal and Xcode. Ran Xcode and accepted a License, then ran Terminal and executed your code snippet

I have a new Macbook Pro M1 chipset. I’ve been developing in Unreal 4 for over a year on this machine so I was surprised to receive this error.

This command seemed to work for me:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

1 Like

Another satisfied customer. Thank you!

it WORKS !!!
Thanks a lot

do you installed the xcode in your mac

do you installed the xcode in your mac?please follow below process then start your engine.

  1. install the correct version of xcode base on your Mac system version
  2. move the xcode to your application folder
  3. open your xcode and agree the license agreement
  4. start your engine
    hope this could help you

From the MacOS App Store

thank you so much, this was so frustrating and i would have never had thought to check that. so thank you you just saved me so much time

Can you do this without installing Xcode or does Xcode have to be installed??

This works for me, thanks

Downloading Xcode manually here: Downloads and Resources - Xcode - Apple Developer
instead of the App Store and using the SUDO command worked for me. thx!

this worked perfectly thanks for the tip, the terminal option was asking me a password and couldn’t figure what that was

Helped! Thanks!

Thanks very helpful!!!

I can confirm that this worked for me today with macOS Monterey, Unreal Engine 5.0.2 and XCode 13.4.1. Thanks!