ChatGPT解决这个技术问题 Extra ChatGPT

iPad Multitasking support requires these orientations

I'm trying to submit my universal iOS 9 apps to Apple (built with Xcode 7 GM) but I receive this error message for the bundle in iTunes Connect, just when I select Submit for Review:

Invalid Bundle. iPad Multitasking support requires these orientations: 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. Found 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown' in bundle 'com.bitscoffee.PhotoMarks.iOS'.

My app has support for Portrait and PortraitUpsideDown orientations but not for the other two.

So is there a workaround for this imposed requirement, or all iOS 9 iPad apps have to have all four orientations?


S
Stan James

iPad Multitasking support requires all the orientations but your app does not, so you need to opt out of it, just add the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES.


Well, my iPad app happily flew through the Validate option in Xcode, but failed to upload to iTunes Connect (with the error you quoted). So my app never got as far as iTunes ! (Btw, WHY doesn't this error/warning occur earlier in the build process ?!)
Just to add, Xcode 7.3.1 didn't recognise this "UIRequiresFullScreen" setting - BUT - it has now been added as a checkbox under Targets \ General \ Deployment Info. "Requires full screen".
@MikeGledhill, that is a good question, why this error was not identified earlier in the build. That is just stupid to invalidate it at the last step. Publishing on App Store is just a mess, Google Play is way cheaper and cleaner.
@Eduardo: Couldn't agree more. Xcode continues to be a thoroughly horrible development environment (despite Tim Cook praising it and giving away iPads to school kids to get them interested in using it.) I remember learning Turbo Pascal 5.5 at school.... Ahhh, happy days...
This answer is still helpful now, with Xcode 8. Xcode is surely the worst development tool ever.
B
BatteryAcid

In Xcode, check the "Requires Full Screen" checkbox under General > Targets, as shown below.

https://i.stack.imgur.com/yHwRI.jpg


Why this option is also available for iPhone-only app? What will happen if I checked "Requires full screen" for an iPhonely-only app (not iPad-only or universal app)?
@goodbyeera, looks like you created a topic for this here: stackoverflow.com/q/34608826/1956540
I had to check this box and added a couple of icon images for the iPad. Then upload to App Store was successful.
Thanks for images !
In Xcode 12.1 I would just add, that after you've added "Requires Full Screen" make sure you still have both iPhone and iPad checkboxes ticked under General / Deployment info (provided your app supported both before). Otherwise you will get this error when archiving: "This bundle does not support one or more of the devices supported by the previous app version. Your app update must continue to support all devices previously supported." See this link for more info: stackoverflow.com/questions/19925245/…
I
Iulian Onofrei

I am using Xamarin and there is no available option in the UI to specify "Requires full screen". I, therefore, had to follow @Michael Wang's answer with a slight modification. Here goes:

Open the info.plist file in a text editor and add the lines:

<key>UIRequiresFullScreen</key>
<true/>

I tried setting the value to "YES" but it didn't work, which was kind of expected.

In case you are wondering, I placed the above lines below the UISupportedInterfaceOrientations section

<key>UISupportedInterfaceOrientations~ipad</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>

Hope this helps someone. Credit to Michael.


I am using Telerik's VS plugin, so this helped me, thank you.
This is now supported in Xamarin
M
Mitsuaki Ishimoto

as Michael said,

Check the "Requires full screen" of the target of xcodeproj, if you don't need to support multitasking.

or Check the following device orientations

Portrait

Upside Down

Landscape Left

Landscape Right

In this case, we need to support launch storyboard.


D
Dinesh Vaitage

Unchecked all Device orientation and checked only "Requires full screen". Its working properly


Thank you so much..It is worked for me..It is very easy to understand.
K
Khaled Zayed

Go to your project target in Xcode > General > Set "Requires full screen" (under Hide status bar) to true.


A
Ayub

As Michael said check the "Requires Full Screen" checkbox under General > Targets

and also delete the 'CFBundleIcons-ipad' from the info.plst

This worked for me


M
Moh .S

You need to add Portrait (top home button) on the supported interface orientation field of info.plist file in xcode

https://i.stack.imgur.com/pGiAB.png


If you remove the two landscape modes (item 2 and item 3) in your supported interface orientations do you not get the same error as OP in the review process? At least that's what I got when I tried.