Invalid Bundle Error - “requires launch storyboard”

China☆狼群 提交于 2019-11-27 16:46:44

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

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.

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

For the iPad you need to support all 4 orientations.

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.

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

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

On your .plist file.

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

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?)

Update: you can also use the cordova-plugin-ipad-multitasking, which seems to also prevent another issue (ITMS-90474)

Update: this should now be fixed using Cordova tools 5.4 without the need for these plugins.

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

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

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

LaunchScreenIPad.storyboard is the name of LaunchScreen for iPad.

iPhone will still use Launch Images Source pictures.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!