iOS 启动屏幕不会停止显示 launchscreen.xib

iOS launch screen will not stop showing the launchscreen.xib

我已经制作了图像,我需要支持的所有设备的资产文件,没有错误说错误大小等。我设置如下:

另外我的资产文件设置如下:

我在这里阅读了大量关于此的指南和问题,但 none 的答案解决了我的问题。无论如何,它只是一直显示设置为灰色的 launchscreen.xib 。我试过重建、清理、重新启动程序,所有的一切,它仍然显示相同的灰色屏幕。

请在 info.plist 中添加键 Launch screen interface file base name 并在其值中输入 LaunchScreen 的名称,希望它能解决您的问题。 作为参考,我附上了以下屏幕截图。

  • 确保您的 Info.plist 中没有 "Launch screen interface file base name" 密钥(与 Aamir 建议的相反)
  • 从 device/simulator 中删除应用程序(如果是模拟器,我也建议 "Reset Content and Settings")
  • 清理构建文件夹(在 Xcode 中,打开 "Product" 菜单,按住 alt 按钮,select "Clean Build Folder..." 选项)
  • 运行 再次