I decided to start studying Unreal Engine after the recent Unity controversy.

听说.. 既然说现在在 Mac 上也能顺利运行 Unreal Engine 了,我就安装并运行,结果出现了如下错误信息。

" Xcode not found "

What does this mean..

To compile Metal shaders in Unreal Engine, Xcode is required. To continue, install and run Xcode and accept the license agreement. If you install Xcode in a location other than Applications/Xcode, you must run the xcode-select command line tool to specify the location.

It says that.. I was building apps with Xcode just 10 minutes ago..

After agonizing over whether to install Unreal, I chose Mac. Unlike in the past, I can now use the Metal API directly in Unreal by installing Xcode, and I heard that even on Silicon Macs, which have relatively weaker GPU performance compared to PC + eGPU combos, it runs quite comfortably.. But it can't find the Xcode path..

It feels a bit cheap... it's this kind of feeling.

615486
The legendary meme.. Source: Probably SBS?

Well, suppressing the urge to delete Unreal, I decided to look for a solution.

Am I not someone who, armed with only a few years of development knowledge, managed to navigate builds for Android, iOS, web, and more alongside Unity?

As time has passed and compatibility has improved, and with so much big data accumulated, this level of problem is nothing at all..

I found the solution by searching on Google.

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

Source : https://forums.unrealengine.com/t/cant-find-xcode-install-for-metal-compiler/477836/2

Just paste the command above into the Command window. Actually, the warning message from Unreal above explains everything.

They say you get used to the things you see, but after being so surprised by Unity, I seem to have developed a habit of looking at Unreal Engine unfavorably even before trying to run it.

Anyway, finally executed successfully

And there you have it, you can see the Unreal Engine editor running beautifully.

Alright, here we go. Let's do this.