无效的捆绑错误 - “需要启动故事板”

本文翻译自:Invalid Bundle Error - “requires launch storyboard”

I keep getting this error when I try to submit my app to the store using Xcode: 当我尝试使用Xcode将我的应用程序提交到商店时,我不断收到此错误:

ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch storyboard in bundle 'com.companyname.appname.'" ERROR ITMS-90475:“无效的捆绑包.iPad多任务支持需要在捆绑'com.companyname.appname'中启动故事板。”

Anyone know what this error really means? 有谁知道这个错误到底意味着什么?


#1楼

参考:https://stackoom.com/question/2CblX/无效的捆绑错误-需要启动故事板


#2楼

I solved the problem in this way, see here : 我用这种方式解决了问题,请看这里

If you must opt out of Slide Over and Split View, do so explicitly by adding the UIRequiresFullScreen key to your Xcode project's Info.plist file and apply the Boolean value YES. 如果您必须选择退出幻灯片放映和拆分视图,请通过将UIRequiresFullScreen键添加到Xcode项目的Info.plist文件并显示布尔值YES来明确执行此操作。


#3楼

This is because you need to specify how your app is supposed to handle multitasking on iPad. 这是因为您需要指定应用程序在iPad上处理多任务处理的方式

If you don't want to handle multitasking right now, you can simply disable it by going to the "General" tab of your target: 如果您现在不想处理多任务处理,只需转到目标的“常规”选项卡即可将其禁用:

在此输入图像描述


#4楼

You need to add a Launch Screen (Xcode > File > New). 您需要添加启动屏幕(Xcode>文件>新建)。 Under iOS > User Interface you select "Launch Screen" to add it to the project. 在iOS>用户界面下,选择“启动屏幕”将其添加到项目中。

For the iPad you need to support all 4 orientations. 对于iPad,您需要支持所有4个方向。

Select in Xcode your target file, and under the General Tab, go to the "App icons and Launch Images". 在Xcode中选择目标文件,然后在“常规”选项卡下,转到“应用程序图标和启动图像”。 Here you select the Launch Screen file you created. 在此处选择您创建的启动屏幕文件。 When you launch the app you'll see the launch (bitmap) images are not used, but the Launch Screen Storyboard. 启动应用程序时,您将看到未使用启动(位图)图像,但启动屏幕故事板。


#5楼

You can either do it as André showed or directly add: 你可以像安德烈展示或直接添加:

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

On your .plist file. 在.plist文件中。


#6楼

If you are using Cordova, you might want to use the cordova-ios-requires-fullscreen plugin (see How to disable iOS9 multitasking through Ionic/Cordova ?) 如果您使用的是Cordova,您可能需要使用cordova-ios-requires-fullscreen插件(请参阅如何通过Ionic / Cordova禁用iOS9多任务处理 ?)

Update : you can also use the cordova-plugin-ipad-multitasking , which seems to also prevent another issue (ITMS-90474) 更新 :您还可以使用cordova-plugin-ipad-multitasking ,这似乎也可以防止出现其他问题(ITMS-90474)

Update : this should now be fixed using Cordova tools 5.4 without the need for these plugins. 更新 :现在应使用Cordova工具5.4修复此问题,而无需使用这些插件。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值