How to Deal with Xcode Installation Prompt on UE4 Startup
Thank you for your continued support.
This article contains advertisements that help fund our operations.
Table Of Contents
Here is a solution for when you try to start using UE4 and it requires Xcode, but even after installing Xcode, you still can't proceed.
Environment
iMac
MacOS 11.6
UE4.27
Error Message
I wanted to follow this Udemy tutorial,
Create and Learn Unreal Engine 4 - Dungeon Game Edition
After installing UE4, when I clicked on the orange launch button,
Message
No Xcode install found for Metal compiler.
Install Xcode, run Xcode.app and agree to the licensing terms, or use xcode-select to set an active "developer" directory
to the current Xcode installation.
Xcode installation seemed like the solution, but that alone didn't resolve the issue, so I decided to write an article about it.
Solution
First, Install Xcode
Follow the steps to install Xcode.
Follow the instructions, at least until you can create a New Project.
It seems that agreeing to the license terms and completing the installation are necessary.
It took quite some time in the middle, so I left it there.
According to the error message, this step should have made it usable, but it didn't.
Enter a Command
Since it mentioned using "xcode-select", I searched and found out that by running the command
sudo xcode-select --switch /Applications/Xcode.app
it worked.
I was excited to get started, but got stuck before even starting...
I hope to create some fun games starting from something simple!
Summary
I managed to get to the starting line.
I hope to progress through the tutorial and create an interesting game.
I might continue writing articles in a diary-like fashion, so please look forward to it.