简体   繁体   English

资产目录编译器错误 Xcode 9

[英]Asset Catalog Compiler Error Xcode 9

I'm trying to compile my application using Xcode Version 9.0 (9A235) and got error: "Exception Raised during asset import (2)".我正在尝试使用 Xcode 版本 9.0 (9A235) 编译我的应用程序,但出现错误:“资产导入期间引发异常 (2)”。 Reveal in log gives me only this (see picture) no details at all.日志中的揭示只给了我这个(见图片)根本没有细节。 If I compile the same project in Xcode ersion 8.3.3 (8E3004b) it's just fine.如果我在 Xcode 版本 8.3.3 (8E3004b) 中编译同一个项目就好了。 Any clues?有什么线索吗? 错误

删除派生数据,然后清理并运行您的项目。

I have solved issue.我已经解决了问题。 My @Command AppIcon set had @ in that name, I suppose from Xcode 9 it has been restricted to use special characters in AppIcon set.我的@Command AppIcon 集合在那个名称中有 @,我想从 Xcode 9 开始,它被限制在 AppIcon 集合中使用特殊字符。 I removed it, namet it just Command AppIcon and was abble to compile and run.我删除了它,将它命名为 Command AppIcon 并且能够编译和运行。 Anyway, I did not find any notice about it in Apple documentation, so be aware.无论如何,我没有在 Apple 文档中找到任何关于它的通知,所以请注意。

Issue with some of the images in my project.我的项目中的一些图像有问题。 Deleted all images and renamed them to generic names (ie all characters, no special characters/numbers) and that fixed the issue.删除了所有图像并将它们重命名为通用名称(即所有字符,没有特殊字符/数字)并解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM