Xcode启动图像源 [英] Xcode Launch Image Source
问题描述
我有一个非常愚蠢的问题,我的xcode项目没有设置启动图像源,我已经将启动屏幕图像添加到 Images.xcassets-> LaunchImage ,但在我的项目目标常规->应用图标和启动图像中没有设置启动图像源
I have a very silly question, my xcode project doesn't have setting for Launch Image Source , I have already added my splash screen image to Images.xcassets -> LaunchImage , but in my project target General -> App Icon and Launch Images doesn't have setting for Launch Image Source
推荐答案
我正面临着用这种方法解决的同一问题:
I was facing the same issue which I solved this way:
- 在项目导航器中选择目标,然后找到构建设置部分
- 搜索资产目录编译器选项
- 转到资产目录启动映像设置名称选项,并将其值设置为您创建的iOS启动映像的名称.如果使用默认名称,则此值将只是 LaunchImage .
- Select your target in the project navigator and find the Build Settings section
- Search for the Asset Catalog Compiler options
- Go to the Asset Catalog Launch Image Set Name option and set its value to the name of the iOS launch image you created. If you went with the default name, then this value would simply be LaunchImage.
如果未显示新的启动屏幕,则可能有助于删除您的应用并重新安装.
If the new launch screens do not show, it might help to delete your app and install it again.
还要确保目标的常规设置"中的启动屏幕文件"选项为空白.
Also make sure the Launch Screen File option in your target's General Settings is blank.
这篇关于Xcode启动图像源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!