Hi,
unfortunatly our App crashes when trying to build with Unity3D 4.5.4 immediatly at startup:
Hi,
unfortunatly our App crashes when trying to build with Unity3D 4.5.4 immediatly at startup:
As AlessandroB suggested, editing the Info.plist file in my Xcode project generated by Unity and adding this key solved my problem!
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationPortrait</string>
I don't know if this issue has been corrected in Unity3d 4.5.5 Sorry, I know, this is a Vuforia issue, not a Unity3d problem... Waiting for next Vuforia version!
Thank you very much!
That looks correct, indeed.
Is that occurring on a Vuforia sample ? or is it a custom app ?
Here I cannot reproduce that in any of the Vuforia samples (using Xcode6, Unity 4.5.4 and iOS8).
<dict> <key>UIInterfaceOrientation</key> <string>UIInterfaceOrientationPortrait</string> [...] <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> </array> [...] </dict>
Thank you for your quick reply. Unfortunately I can confirm that the values used are correct.
Hi hypermole,
I think you're getting that error probably because you have not entered the correct value for UIInterfaceOrientationXYZ
note that this must be one of the following:
Also, if the value that you're using does not appear in the list of values (array) under UISupportedInterfaceOrientations,
then you will also get an error.
See also the sticky notice here with a more detailed solution:
https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/unity-454-and-vuforia-ios
Note: the next version of Vuforia will fix this issue.
I can confirm the error.
I've followed the guide, the error changed but we still have an EXC_BAD_ACCESS on
ScreenOrientation fromController = ConvertToUnityScreenOrientation(host.interfaceOrientation,0);
Using Unity 4.5.4f1 PRO, iOS8 and xcode6
See also the sticky notice here with a more detailed solution:
https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/unity-454-and-vuforia-ios
Note: the next version of Vuforia will fix this issue.
Hi ,
this seems an issue just introduced with Unity 4.5.4;
we're currently investigating this.
As a temporary workaround, you can manually edit the Info.plist file in your Xcode project generated by Unity and add this key:
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationPortrait</string>
(note: check the value of the key UISupportedInterfaceOrientations in the same Info.plist file; if this mentions UIInterfaceOrientationPortrait, then put the same value for the UIInterfaceOrientation key, otherwise if it mentions UIInterfaceOrientationLandscapeLeft or UIInterfaceOrientationLandscapeRight, use the same value also for UIInterfaceOrientation.... i.e. the UIInterfaceOrientation value should be consistent with the UISupportedInterfaceOrientations value)
and then rebuild and launch from Xcode.
(or otherwise revert to Unity 4.5.3)
I can confirm this! No solution, though.
Looks like Unity changed the device orientation code for iOS 8 compatibility: "iOS: Fixed startup orientation handling on iOS 8." ( http://unity3d.com/unity/whats-new/unity-4.5.4 )
I guess we have to stick to Unity 4.5.3 until a Vuforia update.
Thanks pacolaf for confirming this worked for you too.
BTW: latest Unity version is 4.5.5 (not 4.5.4 anymore). Issue and workaround are the same, anyway.