![](/img/trans.png)
[英]ERROR ITMS-90474: "Invalid Bundle. iPad Multitasking support requires these orientations:
[英]iPad Multitasking support requires these orientations
我正在嘗試將我的通用 iOS 9 應用程序提交給 Apple(使用 Xcode 7 GM 構建),但是我在 iTunes Connect 中收到此捆綁包的錯誤消息,就在我選擇提交以供審核時:
無效的捆綁。 iPad 多任務支持需要這些方向:'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'。 在包“com.bitscoffee.PhotoMarks.iOS”中找到“UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown”。
我的應用程序支持 Portrait 和 PortraitUpsideDown 方向,但不支持其他兩個。
那么是否有針對此強加要求的解決方法,或者所有 iOS 9 iPad 應用程序都必須具有所有四個方向?
iPad 多任務支持需要所有方向,但您的應用程序不需要,因此您需要選擇退出它,只需將UIRequiresFullScreen
鍵添加到您的 Xcode 項目的Info.plist
文件並應用布爾值YES
。
我正在使用 Xamarin,但 UI 中沒有可用選項來指定“需要全屏”。 因此,我不得不稍微修改一下@Michael Wang 的回答。 開始:
在文本編輯器中打開 info.plist 文件並添加以下行:
<key>UIRequiresFullScreen</key>
<true/>
我嘗試將該值設置為“YES”,但沒有奏效,這在意料之中。
如果您想知道,我將以上幾行放在 UISupportedInterfaceOrientations 部分下方
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
希望這可以幫助某人。 歸功於邁克爾。
正如邁克爾所說,
如果不需要支持多任務,勾選 xcodeproj 目標的“需要全屏”。
或檢查以下設備方向
在這種情況下,我們需要支持啟動故事板。
取消選中所有設備方向,只選中“需要全屏” 。 它的工作正常
轉到 Xcode > 常規 > 中的項目目標,將“需要全屏”(在隱藏狀態欄下)設置為 true。
正如邁克爾所說,選中“常規”>“目標”下的“需要全屏”復選框
並從 info.plst 中刪除“CFBundleIcons-ipad”
這對我有用
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.