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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32557783/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:10:42  来源:igfitidea点击:

Invalid Bundle Error - "requires launch storyboard"

xcodeipaduploadapp-storemultitasking

提问by matthias_b_nz

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.'"

错误 ITMS-90475:“捆绑包无效。iPad 多任务支持需要在捆绑包“com.companyname.appname”中启动故事板。”

Anyone know what this error really means?

有谁知道这个错误的真正含义是什么?

回答by André Rodrigues

This is because you need to specify how your app is supposed to handle multitaskingon 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:

如果您现在不想处理多任务,您可以通过转到目标的“常规”选项卡来简单地禁用它:

enter image description here

在此处输入图片说明

回答by marji

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.

如果您必须选择退出 Slide Over 和 Split View,请通过将 UIRequiresFullScreen 键添加到 Xcode 项目的 Info.plist 文件并应用布尔值 YES 来明确执行此操作。

回答by GeeJad

You need to add a Launch Screen (Xcode > File > New). Under iOS > User Interface you select "Launch Screen" to add it to the project.

您需要添加一个启动屏幕(Xcode > File > New)。在 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". 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.

在 Xcode 中选择您的目标文件,然后在“常规”选项卡下,转到“应用程序图标和启动图像”。在这里选择您创建的启动屏幕文件。当您启动应用程序时,您将看到未使用启动(位图)图像,而是使用启动屏幕情节提要。

回答by Francisco Caviano

You can either do it as André showed or directly add:

您可以按照安德烈所示进行操作,也可以直接添加:

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

On your .plist file.

在您的 .plist 文件中。

回答by Dinesh Vaitage

You can find "Requires full screen" checkbox under General > Targets

您可以在“常规”>“目标”下找到“需要全屏”复选框

enter image description here

在此处输入图片说明

回答by Gyum Fox

If you are using Cordova, you might want to use the cordova-ios-requires-fullscreenplugin (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 修复此问题,而无需这些插件。

回答by Ramkrishna Sharma

From Xcode 8.x. Please check the GIF representation.

Xcode 8.x. 请检查 GIF 表示。

GIF

动图

回答by hstdt

IF you ONLYwant to set RequiresFullScreen For iPhone, and support iPad Multitasking, try this:

要是你需要设置RequiresFullScreen对于iPhone和iPad的支持多任务处理,试试这个:

<key>UILaunchStoryboardName~ipad</key>
<string>LaunchScreenIPad.storyboard</string>
<key>UIRequiresFullScreen</key>
<true/>
<key>UIRequiresFullScreen~ipad</key>
<false/>

enter image description here

在此处输入图片说明

LaunchScreenIPad.storyboardis the name of LaunchScreen for iPad.

LaunchScreenIPad.storyboard是 iPad 的 LaunchScreen 的名称。

iPhone will still use Launch Images Sourcepictures.

iPhone 仍将使用Launch Images Source图片。

Apple Document Ref: Creating Platform- and Device-Specific Keys

Apple 文档参考:创建特定于平台和设备的密钥