iPad 多任务支持需要这些方向

iPad Multitasking support requires these orientations

我正在尝试将我的通用 iOS 9 应用程序提交给 Apple(使用 Xcode 7 GM 构建),但我在 iTunes Connect 中收到此捆绑包的错误消息,就在我 select 提交审核:

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

我的应用程序支持 Portrait 和 PortraitUpsideDown 方向,但不支持其他两个方向。

那么对于这个强加的要求是否有解决方法,或者所有 iOS 9 iPad 应用程序必须具有所有四个方向?

iPad 多任务支持需要所有方向,但您的应用程序不需要,因此您需要选择退出,只需将 UIRequiresFullScreen 键添加到您的 Xcode 项目的 Info.plist 文件并应用布尔值 YES.

正如迈克尔所说,

勾选xcodeproj目标的"Requires full screen",如果不需要支持多任务

或检查以下设备方向

  • 纵向
  • 颠倒
  • 横向向左
  • 横向右

在这种情况下,我们需要支持启动故事板。

在 Xcode 中,选中常规 > 目标下的 "Requires Full Screen" 复选框,如下所示。

我正在使用 Xamarin,UI 中没有可用的选项来指定 "Requires full screen"。因此,我不得不稍微修改一下@Michael Wang 的回答。这里是:

在文本编辑器中打开 info.plist 文件并添加行:

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

我尝试将值设置为 "YES",但没有成功,这在意料之中。

如果您想知道,我将以上几行放在 UISupportedInterfaceOrientations 部分下方

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

希望这对某人有所帮助。感谢迈克尔。

转到 Xcode > 常规 > 将 "Requires full screen"(在隐藏状态栏下)设置为 true 中的项目目标。

取消选中所有设备方向,仅选中 "Requires full screen"。它工作正常

正如 Michael 所说,选中“常规”>“目标”下的 "Requires Full Screen" 复选框

并从 info.plst

中删除 'CFBundleIcons-ipad'

这对我有用

您需要在 xcode

中 info.plist 文件支持的界面方向字段上添加纵向(顶部主页按钮)