Going Crazy With MAC M1 Build of My Project (XCode)

I have tried building this project 3 times. I’ve totally downloaded the complete engine 3 separate times, and I just cannot get my project to run. I keep getting these errors when running my project. The build seems like it succeeds, but it fails in the console when I’m trying to run it:

dyld[38433]: Library not loaded: @rpath/libtbb.dylib
Referenced from: /Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/FruskersAdventure
Reason: tried: ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/libtbb.dylib’ (no such file), ‘/usr/lib/system/introspection/libtbb.dylib’ (no such file, not in dyld cache), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/…/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/file://engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/…/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/file://engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/…/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/file://engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/…/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/file://engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/…/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/file://engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/…/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Volumes/ShawnHD/UnrealEngine/FruskersAdventure/Binaries/Mac/FruskersAdventure.app/Contents/MacOS/file://engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file)

1 Like

Almost tried everything, but was not able to compile even one single project, even when I create a blank C++ project from the default template. (UE 5.3.1, xcode 15.0.1, M2 max)

iOS:
On first compilation attempt I get the following message: ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Build/IOS/UBTGenerated/Info.Template.plist’. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?’ .

With the second try xcode shows its ‘build succeeded’, but then there is that alert message : ‘Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.YfaEPk/extracted/Payload/UEMACCPPBLANK.app : 0xe800801c (No code signature found.)
Verify that the Developer App certificate for your account is trusted on your device. Open Settings on the device and navigate to General → VPN & Device Management, then select your Developer App certificate to trust it.’

On my phone there is no request or option to trust this certificate !

MacOS:
Just crashing with following error report on the log:

dyld[13744]: Library not loaded: @rpath/libtbb.dylib
Referenced from: /Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/UEMACCPPBLANK
Reason: tried: ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/libtbb.dylib’ (no such file), ‘/usr/lib/system/introspection/libtbb.dylib’ (no such file, not in dyld cache), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Shared/Epic Games/UE_5.3/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Shared/Epic Games/UE_5.3/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Shared/Epic Games/UE_5.3/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Shared/Epic Games/UE_5.3/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Shared/Epic Games/UE_5.3/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Ogg/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Shared/Epic Games/UE_5.3/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/Contents/UE/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file), ‘/Users/…/Documents/Unreal Projects/UEMACCPPBLANK/Binaries/Mac/UEMACCPPBLANK.app/Contents/MacOS/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Vorbis/Mac/libtbb.dylib’ (no such file)

1 Like

I have a same prob too.

After countless attempts I managed to get the builds running. You should first try to package your project in the Unreal editor in order to check out any error messages.

In my case it was a missing entry of a developer team in the Xcode project. Also make sure that you enter the ‘Apple Dev Account Team ID’ under ‘Xcode Projects’ as well as the correct ‘Bunde ID Prefix’ in the project settings.

What I didn’t test is if you need an explicit name for the app identfier or if it works with a wildcard name.

I still have this issue. The binary runs fine on the development machine but doesn’t run on a different machine. I don’t see why this would related to getting an apple developer certificate.

What do you mean by ‘machine’ - is it the iOS device where you try to run your project or the mac computer where you’re developing?

I built a package targeted towards Mac. On a different laptop, the binary does not run because it cannot find libtbb.dylib - even though it’s included in the package. The same package runs fine on the development mac. That said, I just tried on a another mac laptop and it’s working there.

The developer certificate is required at least for iOS, but as far as I know this does not apply to Mac.

Open your project in the Unreal editor and then try to package it under “Platforms/Mac/Package Project”, and if that is failing you could check the log files.

What helped me in another case was to regenerate the Xcode project files.

All of a sudden I’m encountering this now as well with 5.3 on mac os.

libtbb.dylib is not loaded?

Just ran into this and found in my log: “…UE/Engine/Binaries/ThirdParty/Intel/TBB/Mac/libtbb.dylib’ not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)”
I’d built the UE engine “stock” with the Xcode project as generated. Try rebuilding the engine with the team ID you use for your games.

Looks like even after setting the teamID for the engine, libraries like libtbb.dylib are still code-signed as “adhoc” which I believe causes the errors. (If I manually codesign them, the app will launch, but we shouldn’t have to do that for Xcode.)
Rather than trying to run the project from Xcode, I found that by going through the “archive” process, the libraries are code signed over to me prior to notarization, and it starts working.