media.selectPhoto in landscape orientation failed

Can not select photo in landscape orientation.

Build.settings:

    orientation =

    {

        default = “landscapeRight”,

        supported = { “landscapeRight”, “landscapeLeft” }

    },

Use new api:

    media.selectPhoto(

        {

            mediaSource = media.SavedPhotosAlbum,

            listener = onComplete, 

            origin = button.contentBounds, 

            permittedArrowDirections = { “right” } 

        } )

Console:

<Warning>: Generic error

    UIApplicationInvalidInterfaceOrientation: Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES

Is there a solution?

Resolved:

http://www.coronalabs.com/blog/2013/11/05/tutorial-captureselect-photo-and-video/

To solve this, add the following four lines to your  build.settings  file in the  iphone.plist  table:

iphone = {
plist = {
CoronaUseIOS7IPadPhotoPickerLandscapeOnlyWorkaround = true,
CoronaUseIOS6IPadPhotoPickerLandscapeOnlyWorkaround = true,
CoronaUseIOS7LandscapeOnlyWorkaround = true,
CoronaUseIOS6LandscapeOnlyWorkaround = true,
},
}

Resolved:

http://www.coronalabs.com/blog/2013/11/05/tutorial-captureselect-photo-and-video/

To solve this, add the following four lines to your  build.settings  file in the  iphone.plist  table:

iphone = {
plist = {
CoronaUseIOS7IPadPhotoPickerLandscapeOnlyWorkaround = true,
CoronaUseIOS6IPadPhotoPickerLandscapeOnlyWorkaround = true,
CoronaUseIOS7LandscapeOnlyWorkaround = true,
CoronaUseIOS6LandscapeOnlyWorkaround = true,
},
}