Invalid Bundle Error - “requires launch storyboard”

末鹿安然 提交于 2019-11-26 18:45:17

问题


I keep getting this error when I try to submit my app to the store using Xcode:

ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch storyboard in bundle 'com.companyname.appname.'"

Anyone know what this error really means?


回答1:


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:




回答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.




回答3:


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.




回答4:


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

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

On your .plist file.




回答5:


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




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

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.




回答7:


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




回答8:


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



来源:https://stackoverflow.com/questions/32557783/invalid-bundle-error-requires-launch-storyboard

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