iOS启动屏幕资产目录无效 [英] iOS Launch Screen Asset Catalog not working

查看:87
本文介绍了iOS启动屏幕资产目录无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信我犯了一个愚蠢的错误。但我无法弄明白。

I believe I am making a silly mistake. But I cannot figure it out.

我有一个名为Default.png的图片,我已添加到我的项目中。现在当我转到General然后启动Images时,我将Default.png拖放到我的应用程序的2x窗口。当我去构建项目并尝试它时,我收到此错误:

I have an image named Default.png that I have added to my project. Now when I go to General and then Launch Images I drag and drop this Default.png to the 2x window for my app. When I go to build the project and try it, I get this error:

名为LaunchImage的启动图像集没有任何适用的内容。

"The launch image set named "LaunchImage" did not have any applicable content."

这里有什么问题?我也看到只需拖放Default.png即可,但我认为这适用于旧版本。

What's the problem here? I've also seen that simply dragging and dropping the Default.png should do it, but I think that's for older versions.

任何想法?

谢谢

推荐答案

在.plist文件中搜索LaunchImage关键字并删除它。然后,尝试通过之前的拖动再次分配图像...

Search for LaunchImage keyword in your .plist file and delete it. Then, try assigning the image again by dragging as you already did before...

这篇关于iOS启动屏幕资产目录无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆