最近开发一个项目最初只有Mac版本,新增支持iPhone就各种幺蛾子,发包时报错
Invalid bundle. Because your app supports Multitasking on iPad, you need to include the LaunchScreen.storyboard launch storyboard file in your com.emperinter.pastey bundle. Use UILaunchScreen instead if the app’s MinimumOSVersion is 14 or higher and you prefer to configure the launch screen without storyboards.
解决办法
- 第一种是直接新建一个
LaunchScreen.storyboard
文件并配置设置中的Launch Screen File为LaunchScreen.storyboard,缺点是Mac端发布时又得改一遍配置才能重新发布才行。
- 在
Info.Plist
新增配置项LaunchScreen
,值为Launch screen