I have been working on an Augmented Reality Project for iOS using Vuforia 4 Unity 4.6.2f. I had to make some changes on Unity and so I rebuilt the app and added it to the Xcode. Everytime I try to run it it keeps showing me the exec_bad_access error in the main.mm class on the following line.
UIApplicationMain(argc, argv, nil, [NSString stringWithUTF8String:AppControllerClassName]);
And the most weird thing is this error pops up only on devices running on iOS 8. When i tried on an iPhone 6+ running iOS9 beta it worked. I have tried using NSZombies and noticed that a viewcontroller gets deallocated before unity starts and thats why it crashes. This is what I see on the console:
*** -[UIWindow setRootViewController:]: message sent to deallocated instance 0x15595b70. I am not able to solve this issue for a very long time as I unable to figure whether it is an Xcode or Unity issue
↧