xcode 错误资产目录编译器错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31505570/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:30:57  来源:igfitidea点击:

Error asset catalog compiler error

iosxcodeswiftassetsxcasset

提问by Naiem Salib

I finished an app and after i finished uploading the app Icon images It doesn't run and i had this error:

我完成了一个应用程序,在我上传完应用程序图标图像后它没有运行,我遇到了这个错误:

asset catalog compiler error distill failed unknown reason

资产目录编译器错误提取失败未知原因

回答by Maxim Firsoff

More simple way is - click right mouse button on the error (on "Distill failed for unknown reasons") and select "Reveal in Log".

更简单的方法是 - 在错误上单击鼠标右键(在“由于未知原因提取失败”)并选择“在日志中显示”。

enter image description here

在此处输入图片说明

回答by Schule

This may be an issue with an image that is saved with the PNG extension that is actually NOT a png file (frequently this happens when using "save as" on a PSD and naming it with .png while forgetting to actually convert the file).

这可能是使用 PNG 扩展名保存的图像的问题,而该图像实际上不是 png 文件(在 PSD 上使用“另存为”并使用 .png 命名而忘记实际转换文件时,经常会发生这种情况)。

This has been answered before here.

这已经在这里之前得到了回答。

回答by Naiem Salib

Ok so here is how i fixed it , i removed all the images and uploaded them one by one until i found this one image , that was .png but there was something wrong with it so i re-did it in photoshop , and poof the error was gone .

好的,这就是我修复它的方法,我删除了所有图像并一张一张地上传,直到我找到了这张图片,那是 .png 但它有问题,所以我在 photoshop 中重新做了它,然后噗错误消失了。

回答by Dániel László Kovács

For me the solution was THIS.

对我来说,解决方案是THIS

(Note: I had no .psd as .png, etc.)

(注意:我没有 .psd 作为 .png 等)