文件夹"Images.xcassets"不存在 [英] The folder "Images.xcassets" doesn't exist

查看:250
本文介绍了文件夹"Images.xcassets"不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我以最新的xcode版本打开项目文件时,在两个弹出窗口中出现错误文件夹"Images.xcassets"不存在.我必须多次单击确定"以使弹出窗口消失.我还没有采取任何措施来删除此类文件夹.有谁知道为什么我会得到他们?

When I open the project file in the latest xcode version, I get the error "The folder "Images.xcassets" doesn't exist" in two popups. I have to click OK multiple times to make the popups disappear. I haven't done anything to remove such folders. Does anyone have an idea why I might be getting them?

更新:

我也可以在finder和项目浏览器中看到它.问题仍然存在.

I see it in finder and in my project explorer too. The problem still persists.

推荐答案

您可能已将启动图像设置为要从资产目录中提取(默认情况下为"images.xcassets").如果您不想使用资产目录,请转到应用程序设置并选择不使用资产目录",但是,如果这样做(我建议您确实将资产目录用于应用程序图标"和启动图像"),请单击创建资产目录".如果该选项不可用,请右键单击您的项目,选择新建文件",转到资源",然后选择资产目录.

You have probably set your launch images to be extracted from an asset catalog (which is 'images.xcassets' by default). If you don't want to use asset catalogs, go to your application settings and select 'don't use asset catalogs', but, if you do (I recommend you do use asset catalogs for App Icons and Launch Images), click 'create asset catalog'. If that option isn't available, right click on your project, select 'New File', go to 'Resource', and select Asset Catalog.

这篇关于文件夹"Images.xcassets"不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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