Xcode 13验证报错:App Store Connect无效包(iPad多任务方向缺失)
问题原因及解决办法
问题根源
你的App开启了iPad多任务支持(Split View/Slide Over),但iOS项目配置文件中缺少UIInterfaceOrientationPortraitUpsideDown(竖屏倒转)方向声明,不符合App Store Connect对多任务App的方向要求。
解决方式
根据App需求选择以下两种处理思路:
1. 添加缺失的方向(满足多任务要求)
方法一:直接修改iOS项目的
Info.plist文件
找到UISupportedInterfaceOrientations~ipad对应的数组,添加UIInterfaceOrientationPortraitUpsideDown项,修改后内容如下:<key>UISupportedInterfaceOrientations~ipad</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array>方法二:通过Xcode可视化操作
打开Xcode并选中你的App target,进入「Info」标签页,找到「Supported interface orientations (iPad)」,点击加号按钮,添加「Portrait (bottom home button)」选项(对应竖屏倒转方向)。
2. 关闭iPad多任务支持(无需添加方向)
如果你的App不需要适配iPad多任务功能,可直接关闭该支持:
- 方法一:修改
Info.plist添加以下配置:<key>UIRequiresFullScreen</key> <true/> - 方法二:在Xcode的「General」标签页,勾选「Requires full screen」选项。
内容的提问来源于stack exchange,提问作者user938363
相关产品推荐
相关产品推荐

