我遇到了一个问题,导致我到目前为止无法发布两个新应用。自WWDC20以来,我在Xcode 12中创建了两个新的SwiftUI项目,均使用SwiftUI构建。默认情况下,它们不包含LaunchScreen.storyboard
,因为您现在可以在info.plist
中设置启动图像。那太过分了,我不喜欢它,所以我在包中添加了LaunchScreen.storyboard
,进行了设置,并在Launch screen interface file base name
中设置了info.plist
的值。
在我的设备和模拟器上进行测试时,启动屏幕看起来非常不错。但是,当尝试上传到App Store Connect时,出现以下错误:
ERROR ITMS-90476: "Invalid Bundle. Your app supports multitasking on iPad, so you must include the launch storyboard file, 'LaunchScreen.storyboard', in your bundle, 'com.companyname.appname.'"
我已经在线搜索过几次,但是所有StackOverflow答案都只说了“选中目标上的需要全屏显示框”-由于我想支持多任务处理,并且自April 2020 multitasking is required for iPad apps.起,完全没有用
我还为所有方向在Supported interface orientations (iPad)
中设置了info.plist
值。
我当然不是最近遇到这个问题的唯一人吗?
答案 0 :(得分:0)
我找到了答案。问题是我将Launch screen interface file base name
设置为LaunchScreen.storyboard
。解决方案是删除扩展名-我只需要提供LaunchScreen
。