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?
↧