(Mac OS) Get crash running of the installed build for 5.4.1

Hello, kind colleagues.
I’m finally builded newly released 5.4.1 build on my M1 Pro mac. But I facing with following crash during launching the UnrealEditor.app

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/libembree3.3.dylib
Referenced from: <8632EB0F-3B56-3699-8BE7-40182ECEB951> /Volumes/VOLUME/*/UnrealEditor-MeshUtilities.dylib
Reason: tried: '/Volumes/Unreal/Repos/UnrealEngine_src/LocalBuilds/Engine/Mac/Engine/Binaries/Mac/libembree3.3.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/Volumes/Unreal/Repos/UnrealEngine_src/LocalBuilds/Engine/Mac/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/libembree3.3.dylib' (no such file), '/Volumes/Unreal/Repos/UnrealEngine_src/LocalBuilds/Engine/Mac/Engine/Binaries/Mac/libembree3.3.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/Volumes/Unreal/Repos/UnrealEngine_src/LocalBuilds/Engine/Mac/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/libembree3.3.dylib' (no such file), '/Volumes/Unreal/Repos/UnrealEngine_src/LocalBuilds/Engine/Mac/Engine/Binaries/Mac/libembre
(terminated at launch; ignore backtrace)

Builded from the sources (release branch) with using of the following script:

sh /Volumes/Unreal/Repos/UnrealEngine_src/Engine/Build/BatchFiles/RunUAT.sh BuildGraph -target="Make Installed Build Mac" -script=/Volumes/Unreal/Repos/UnrealEngine_src/Engine/Build/InstalledEngineBuild.xml -set:WithDDC=false -set:WithMac=true -set:WithClient=true -set:WithServer=true -set:HostPlatformOnly=true -set:WithFullDebugInfo=false -set:BuildDir="/Volumes/Unreal/UnrealInstalledBuild" -clean

I didn’t get a single error during the compilation, but it wont to start.
The previous build 5.3 was successful (At least I was able to launch it)
Did anybody have ideas how to fix it?

Is any Ideas? :frowning:

The error message is saying the binaries are for wrong arch.

Try without precompiled targets, it’s not even documented.

Edit: Also inspect the xml carefully, you may be triggering cross compile, which I believe is not supported on Mac.

Hello! Thank you for your attention and advise!

I’ve cloned the source files one more time, and will try to build the engine tonight with all of your notices.
Crossing my fingers :grimacing:

Thank you for advise.
It’s successfully builded and run. I did’t performed any changes in sources or XML for this time, will keep investigate the reason.