- Home /
How can I build the ios unity project as ios framework project?
I did export iOS Unity Project, and then i want to convert the project to iOS Framework Project. Because i want to make the project into SDK(.framework) for using the SDK in other normal app.
When it is built into framework project, Crash in UnityInitApplicationNoGraphics().
(crash occurred >>> il2cpp::vm:MetadataCache::Initialize()) Application project (include unity ios framework) is occurred in following function.
(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { ... // it is occurred crash in following function. (the parameter is path of Application(.app)) UnityInitApplicationNoGraphics([[[NSBundle mainBundle] bundlePath] UTF8String]); ... } It also is called UnityInitTrampoline(); and UnityParseCommandLine(argc, argv); of the framework in main.mm of Application Project (argv parameter is path of Application(.app)).
What is the meaning of UnityInitTrampoline(); and UnityParseCommandLine(argc, argv); functions?
Did you solve the problem @genius park ? I also experienced the similar problem http://forum.unity3d.com/threads/build-unity-app-as-framework-then-consumed-by-another-app.430068/. At first it's about Data/ location that needs to be correctly placed and made Unity be able to find it. But even though I did that, it shouted out something error about WriteLock().
Answer by cj657206427 · Oct 21, 2016 at 07:28 AM
Did you solve the problem @genius park @haxpor ? I also experienced the similar problem