Force my app to display only portrait orientation

Hi,

I want to Force my app to display only portrait orientation. But when I want to archive and upload it to App Store for review. An error showed up:

Invalid bundle. The “UIInterfaceOrientationPortrait” orientations were provided for the UISupportedInterfaceOrientations Info.plist key in the com.torontojiazheng.ttjzh3 bundle, but you need to include all of the “UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight” orientations to support iPad multitasking. For details, visit: https://developer.apple.com/documentation/bundleresources/information_property_list/uisupportedinterfaceorientations. (ID: f7a0a974-c1b4-48fa-8592-d8d4f6f144c4)

I checked Info.plist in Xcode, but can not find anywhere to fix this issue.

Please advise.

Thanks.

Oliver Tong

Hello Oliver_Tong. The error message tells you want to do here:

include all of the “UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight”

Basically, you need to enable all the options in the "Supported interface orientations (iPad)" for your target. This is the default.

The iPhone entry also defaults to all except "top home button".

Basically, you should not force "only portrait orientation". Apps are expected to run on all available devices and support multitasking, and that means having flexibility in your layout.

I recommend reviewing the Apple Human Interface Guidelines on Multitasking and Layouts

—Jason.

Force my app to display only portrait orientation
 
 
Q