2

打包IOS遇到一个报错

 1 year ago
source link: https://www.xuanyusong.com/archives/4988
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

打包IOS遇到一个报错

DXT1 compressed textures are not supported when publishing to iPhone

Resources/unity_builtin_extra

真是坑啊,原来是美术同学使用了一张内置贴图”Default-Checker-Gray”,关键是这个贴图居然只支持DXT1,所以在打包IOS平台时就报错了。 关键是遇到这个错以后根本不知道Default-Checker-Gray图被哪里使用了,因为工程里根本没这个具体的文件,无法查找引用。

在看GUID更是坑,因为只要使用了unity_builtin_extra内置的资源它的GUID都指向了0000000000000000f000000000000000,根本无从查起。

它是如何区分到底使用了那个资源呢?

打包IOS遇到一个报错 - 雨松MOMO程序研究院 - 1

发现GUID在相同的情况下是通过FileID来做的区分, 这样在工程里用工具批量搜索一下 fileID: 10309 就表示使用了Default-Checker-Gray这张图,然后删除它就可以打包了,遇到这个恶心的问题所以记录一下。

作者:雨松MOMO
专注移动互联网,Unity3D游戏开发

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK