How to Fix “Can’t Find Xcode” When Installing Unreal Engine

This short guide explains how to resolve the error “Can’t find Xcode install for Metal compiler. Please install Xcode and run to accept license or ensure active developer directory is set to current Xcode installation using xcode-select” when trying to install Unreal Engine on your Mac.

Can't Find Xcode error message in macOS for Unreal Engine

Fortunately the fix is very easy, although it does involve a fairly large download (12+GB). Just follow these few steps –

  1. Open the macOS App Store and search for Xcode. Once you find it, click the Get button to start the installation process.
  2. Xcode in the Mac App Store

  3. Once the installation has completed, launch Xcode and accept the terms of the License Agreement. Then quit Xcode.
  4. Now open a Terminal from your Applications -> Utilities folder and issue the command:
  5. sudo xcode-select -s /Applications/

    a macOS Terminal with an xcode-select command

  6. You’ll be prompted to enter your password before the command will execute. Once it has, exit out of the Terminal.
  7. Now open UE again.
  8. an arrow pointing to the launch UE button

  9. This time it will launch without the “Can’t find Xcode” error and start to compile various parts of the app, which will take a moment or two. Otherwise, you’re done!
  10. UE opening without the Can't Find Xcode error

While you’re here (or waiting for Xcode to finish downloading!) why not check out some of our other Mac tutorials, tips and tricks? :)

If this article helped you, I'd be grateful if you could share it on your preferred social network - it helps me a lot. If you're feeling particularly generous, you could buy me a coffee and I'd be super grateful :)

buy a coffee for

Home » Mac » How to Fix “Can’t Find Xcode” When Installing Unreal Engine