The app I have created using the Unity extension will crash, throwing an exception, when I press a button that calls startUnity in AppController.mm, but only when running from Xcode. If the app is started on the device (iPad2), it runs fine, or as well as I expect it to at its current stage of development. It would be nice to have running in Xcode so I can check for memory leaks and observe the console output. Below is the console output at the time of the crash:
(Filename: /Applications/buildAgent/work/d9c061b1c154f5ae/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)
StartQCAR
(Filename: /Applications/buildAgent/work/d9c061b1c154f5ae/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)
2012-09-14 15:01:38.857 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2012-09-14 15:01:38.859 ScheelsAR[694:707] DEBUG/AR(694) UIView has CAEAGLLayer class
2012-09-14 15:01:38.861 ScheelsAR[694:707] DEBUG/AR(694) UIView does not respond to selector renderFrameQCAR
2012-09-14 15:01:38.862 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2012-09-14 15:01:38.871 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2012-09-14 15:01:38.872 ScheelsAR[694:707] DEBUG/AR(694) UIView has CAEAGLLayer class
2012-09-14 15:01:38.874 ScheelsAR[694:707] DEBUG/AR(694) UIView does not respond to selector renderFrameQCAR
2012-09-14 15:01:38.876 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2012-09-14 15:01:38.879 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2012-09-14 15:01:38.880 ScheelsAR[694:707] DEBUG/AR(694) UIView has CAEAGLLayer class
2012-09-14 15:01:38.883 ScheelsAR[694:707] DEBUG/AR(694) UIView does not respond to selector renderFrameQCAR
2012-09-14 15:01:38.885 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
(lldb)
It crashes at this point every time. No luck so far finding the cause. This app has additional viewControllers, including one that has a "start" button that calls startUnity. I realize this is not the suggested approach to creating an app with Vuforia but it's necessary. Has anyone had this problem as well, or have any suggestions. Thanks very much!
iPad app crashes when running from XCode, runs fine on device
Ok so basically you are taking the Xcode project generated by Unity and adding additional ViewControllers right?
As you highlighted this is not the approach we recommend, though I can understand why you might want to go this way.