- Home /
Question by
antongoncharov4 · Sep 16, 2020 at 07:58 PM ·
iosiphoneframework
Import iOS framework in Unity 2019.3+
I'm trying to import my own iOS framework into my Unity 2019.4 project. If I put MyFramework.framework folder in the project and build for iOS then I got MyFramework.framework linked to the UnityFramework target, but not to Unity-iPhone target. When I run my Xcode Project I got
"Library not loaded: @rpath/MyFramework.framework/MyFramework Referenced from: ... Reason: image not found"
How can I link MyFramework.framework to Unity-iPhone target and don't do it in Xcode manually?
I found PostProcessBuild method AddFrameworkToProject but it works only for system frameworks, not third-party frameworks.
Comment