首页 文章

iPad Multitasking支持需要这些方向

提问于
浏览
338

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

无效的捆绑包 . iPad Multitasking支持需要以下方向:'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight' . 在'com.bitscoffee.PhotoMarks.iOS'包中找到'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown' .

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

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

7 回答

  • 46

    取消选中所有设备方向和 checked only "Requires full screen" . 它工作正常

  • 2

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

  • 32

    正如Michael所说,选中General> Targets下的“Requires Full Screen”复选框

    并从info.plst中删除'CFBundleIcons-ipad'

    这对我有用

  • 484

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

  • 4

    在Xcode中,选中General> Targets下的“Requires Full Screen”复选框,如下所示 .

    enter image description here

  • 9

    我正在使用Xamarin,并且UI中没有可用的选项来指定“需要全屏” . 因此,我不得不稍微修改@Michael Wang的回答 . 开始:

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

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

    我尝试将值设置为“YES”,但它不起作用,这是预期的 .

    如果您想知道,我将上面的行放在UISupportedInterfaceOrientations部分下面

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

    希望这有助于某人 . 感谢迈克尔 .

  • 559

    正如迈克尔所说,

    如果您不需要支持多任务处理,请检查xcodeproj目标的“需要全屏” .

    或检查以下设备方向

    • 肖像

    • 倒置

    • 左侧风景

    • 风景正确

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

相关问题