Jonaswinz
Jonaswinz

Reputation: 430

Unity xcode build fails, because of UnityFramework library not loaded?

I am trying to build my Unity game with xcode for IOS. The build finishes without errors, but the game crashes while starting. (Android works) . I had this issue with unity 2019.3.7 and created a new project and imported all my stuff to 2019.4.2f but the error stayed the same:

Error loading /var/containers/Bundle/Application/E7F144F0-19F0-4CDD-8739- 46E4E53886D4/io.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/E7F144F0-19F0-4CDD-8739-46E4E53886D4/io.app/Frameworks/UnityFramework.framework/UnityFramework, 265): Library not loaded: @rpath/FBLPromises.framework/FBLPromises Referenced from: /var/containers/Bundle/Application/E7F144F0-19F0-4CDD-8739-46E4E53886D4/io.app/Frameworks/UnityFramework.framework/UnityFramework Reason: image not found

I changed nothing in the xcode project (build by unity). I am using Xcode 11.4 in macOS Catalina 10.15.4 (virtualbox).

I would appreciate some help.

Jonas

Upvotes: 1

Views: 11625

Answers (1)

Jonaswinz
Jonaswinz

Reputation: 430

The great Appodeal support helped me with this solution:

I had to embed the required frameworks (under Pods -> Products) in my target (Target -> BuildPhases -> Embed Frameworks).

enter image description here

Upvotes: 2

Related Questions