App Terminating in Device. Console errors on UIApplicationInvalidInterfaceOrientation

I’m getting this on my device after updating everything to iOS6 and using the latest sdk build:

*** Terminating app due to uncaught exception ‘UIApplicationInvalidInterfaceOrientation’, reason: ‘Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES’
*** First throw call stack:
(0x33f1f2a3 0x336f197f 0x33f1f1c5 0x36abf897 0x36c64579 0x36b43d45 0x36b42fcf 0x33f229c4 0x33e79feb 0x36c61733 0x32b0bd2d 0x382f811f 0x382f74b7 0x382f8dcb 0x33ef2f3b 0x33e65ebd 0x33e65d49 0x34bce2eb 0x36aab301 0x509af 0x50968)

Everything was working fine before :frowning:

The error is weird since it has worked before. For reference this is my partial build.settings (I think this is the relevant part):

[lua]orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”
}
},

iphone =
{
components =
{
},
plist =
{
UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,
UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationLandscapeLeft”,
“UIInterfaceOrientationLandscapeRight”
},[/lua] [import]uid: 144908 topic_id: 31181 reply_id: 331181[/import]

Ugh! Okay, so it isn’t apparent in the device’s console error that the game’s landscape only orientation plus the Game Center login screen caused all the trouble.

See #4 in http://www.coronalabs.com/blog/2012/09/19/faq-wednesday-iphone-5-and-ios-6 for more details.

For other people’s reference, this is the fix:
[lua]settings =
{
orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”, “portrait”
}
},[/lua] [import]uid: 144908 topic_id: 31181 reply_id: 124684[/import]

@bfintal,

I thank you for sharing your findings with all of us here.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 31181 reply_id: 124753[/import]

Thanks for sharing this.

And if you use Corona Enterprise edition you will also need to make sure the Portrait button is selected under the Supported Interface Orientations section of the Summary page in Xcode. [import]uid: 7771 topic_id: 31181 reply_id: 124815[/import]

Ugh! Okay, so it isn’t apparent in the device’s console error that the game’s landscape only orientation plus the Game Center login screen caused all the trouble.

See #4 in http://www.coronalabs.com/blog/2012/09/19/faq-wednesday-iphone-5-and-ios-6 for more details.

For other people’s reference, this is the fix:
[lua]settings =
{
orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”, “portrait”
}
},[/lua] [import]uid: 144908 topic_id: 31181 reply_id: 124684[/import]

@bfintal,

I thank you for sharing your findings with all of us here.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 31181 reply_id: 124753[/import]

Thanks for sharing this.

And if you use Corona Enterprise edition you will also need to make sure the Portrait button is selected under the Supported Interface Orientations section of the Summary page in Xcode. [import]uid: 7771 topic_id: 31181 reply_id: 124815[/import]