本文翻译自:iPad Multitasking support requires these orientations

I'm trying to submit my universal iOS 9 app 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 : 我正在尝试将我的通用iOS 9应用程序提交给Apple(使用Xcode 7 GM构建)但我在iTunes Connect中收到此错误消息,就在我选择提交审阅时

Invalid Bundle. 无效的捆绑包。 iPad Multitasking support requires these orientations: 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. iPad Multitasking支持需要以下方向:'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'。 Found 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown' in bundle 'com.bitscoffee.PhotoMarks.iOS'. 在'com.bitscoffee.PhotoMarks.iOS'包中找到'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown'。

My app has support for Portrait and PortraitUpsideDown orientations but not for the other two. 我的应用程序支持Portrait和PortraitUpsideDown方向,但不支持其他两个方向。

So is there a work around this imposed requirement, or all iOS 9 iPad apps have to have all four orientations? 那么是否有解决这个强制要求的工作,或者所有iOS 9 iPad应用程序必须具有所有四个方向?


#1楼

参考:https://stackoom.com/question/2CcGq/iPad-Multitasking支持需要这些方向


#2楼

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


#3楼

as Michael said, 正如迈克尔所说,

Check the "Requires full screen" of the target of xcodeproj, if you don't need to support multitasking. 如果您不需要支持多任务处理,请检查xcodeproj目标的“需要全屏”。

or Check the following device orientations 或检查以下设备方向

  • Portrait 肖像
  • Upside Down 上下翻转
  • Landscape Left 风景左
  • Landscape Right 景观正确

In this case, we need to support launch storyboard. 在这种情况下,我们需要支持启动故事板。


#4楼

In Xcode, check the "Requires Full Screen" checkbox under General > Targets, as shown below. 在Xcode中,选中General> Targets下的“Requires Full Screen”复选框,如下所示。


#5楼

I am using Xamarin and there is no available option in the UI to specify "Requires full screen". 我正在使用Xamarin,并且UI中没有可用的选项来指定“需要全屏”。 I, therefore, had to follow @Michael Wang's answer with a slight modification. 因此,我不得不稍微修改@Michael Wang的回答。 Here goes: 开始:

Open the info.plist file in a text editor and add the lines: 在文本编辑器中打开info.plist文件并添加以下行:

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

I tried setting the value to "YES" but it didn't work, which was kind of expected. 我尝试将值设置为“YES”,但它不起作用,这是预期的。

In case you are wondering, I placed the above lines below the UISupportedInterfaceOrientations section 如果您想知道,我将上面的行放在UISupportedInterfaceOrientations部分下面

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

Hope this helps someone. 希望这有助于某人。 Credit to Michael. 感谢迈克尔。


#6楼

在Xcode>常规>设置“需要全屏”(在隐藏状态栏下)转到您的项目目标为true。

iPad Multitasking支持需要这些方向相关推荐

  1. 【Xamarin挖墙脚系列:IOS-关于手机支持的屏幕方向】

    设置支持的屏幕方向有两个级别,一个是app级别的,另一个是viewController级别的. app 级别的可以在[target]-[general]-[device orientation]里面设 ...

  2. 让android程序根据重力感应旋转屏幕(支持4个方向旋转)

    最近公司在做一个软件,用户要求软件能随着手机转动自动切换横屏和竖屏,而且要求就算是手机头下脚上的倒个个软件也要能自适应的变成合适的方向.熟悉android的人都知道,android系统的手机绝大部分只 ...

  3. iPad上支持手柄的游戏推荐 - PUSDN

    文本由PUSDN - 平行宇宙软件开发者网www.pusdn.com强力驱动 如果有想玩的,或者想知道是否支持手柄,可以评论留言,下回试玩下.文中游戏太多,可以ctrl + F快速搜索关键字查找. 测 ...

  4. 苹果或将推出可折叠iPad:支持5G 对抗双屏Surface

    [TechWeb]近几年,苹果iPad的形态并没有什么"惊喜",不过,据福布斯报道,苹果计划近期推出一款可折叠iPad. 福布斯报道称,苹果将推出一款可折叠iPad以对抗微软202 ...

  5. 如何用代码判断iPad是否支持面容ID(iPad可以使用面容ID解锁但没有刘海)

    废话不多,直接上代码 + (BOOL)theiPadHasFaceID{size_t size;sysctlbyname("hw.machine", NULL, &size ...

  6. iPhone与iPad在开发上的区别

    新公司项目使用的Swift + Ipad开发,以前都是OC + IPhone开发,鉴于没开发过IPad项目,今天学习下两者差异: 一. 屏幕的尺寸与分辨率不同: 1.iPhone与iPad有不同的英寸 ...

  7. 2015移动开发之iOS回顾

    2015是移动技术快速发展的一年,基于Apple平台的技术也发展迅速.iPhone6s/iPhone6s plus.iPad pro等新设备发布,iOS9.watchOS 2.OS X EL Capi ...

  8. 【精】iOS6 及其以上版本自动旋转、手动强制旋转方案及布局适配

    1.布局适配方式 本文不讨论哪种布局适配方式最好,此处使用的是 Masonry 纯代码布局适配.(Masonry 底层就是 AutoLayout 的 NSLayoutConstraint) 2.iOS ...

  9. 苹果平板可以用html么,9.7寸ipad pro能用pencil吗?ipad pro全面支持Apple Pencil

    Apple Pencil是专为iPad Pro设计的一款电容笔,看似一支普通的铅笔,但可以根据压力度进行不同程度的绘画和涂色.目前,9.7英寸的iPad Pro上市后,是否支持Pencil呢? 9.7 ...

最新文章

  1. 右键新建里面没有word和excel_Windows10系统下如何将Sublime Text3添加到右键快捷菜单?...
  2. 华为AR28-31配置光纤接入
  3. linux下基于jrtplib库的实时传送实现
  4. 集群部署中解决定时任务重复执行的问题-redis分布式锁应用
  5. Java HashMap元素取值
  6. 支持windows 8的虚拟机软件
  7. 按照自己的理解用js实现八皇后的算法
  8. 由历史上的战乱来看,民心不能决定什么
  9. 2020年施工晴雨表电子版_2020年建筑施工特种作业人员培训通知
  10. 安装SQL Server 2016
  11. 【3D建模制作技巧分享】Zbrush如何将图片转浮雕模型
  12. vivo X90和iPhone 14哪个好 vivo X90 和苹果14 区别对比评测
  13. Python基础知识-pycharm版-02
  14. 千股跌停后回暖,你敢抄底吗?
  15. HGAME 2023 Week1
  16. java后端怎么入门,自学还是培训
  17. Windows下载使用wget命令
  18. H3C防火墙基础配置操作
  19. 区块链知识系列 - PBFT 共识
  20. java ee 笔记

热门文章

  1. 时间范围选择器默认开始时间前5天,前5年,前5月
  2. 【SQL数据库基础08】变量--系统变量:全局、会话、自定义变量
  3. “未来工厂”——数字化车间
  4. prism-发布订阅
  5. 顺序结构|洛谷原创:多边形对角线
  6. python实现yolo目标检测_YOLO目标检测模型原理介绍
  7. iPhone的这个功能,竟让90%的果粉感到困惑
  8. qt 实现的 lua 编辑器
  9. 电影票syslog团购
  10. 简述tcp协议三报文握手过程_简述TCP的三次握手过程