归档时,Assets.car比实际Images.xcassets文件夹大6倍 [英] Assets.car is 6 times larger than actual Images.xcassets folder when archived

查看:1055
本文介绍了归档时,Assets.car比实际Images.xcassets文件夹大6倍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在重新设计期间将XCode项目切换为使用资产目录。我们需要几个大的背景图像,我们将其包含在资产目录中。这些图像最初是JPEG,我们将其重命名为PNG以节省空间。磁盘上的映像大小为19.1MB,但是当我们归档应用程序时,生成的 Assets.car 文件比它大6倍。我尝试过使用PNG并压缩它们,但尺寸仍然很大。我不知道我还能做些什么。

We switched our XCode project over to use the Asset Catalog during a redesign. We needed several large background images, which we included in the asset catalog. The images were originally JPEGs that we renamed to PNGs to save space. The size of the images on disk is 19.1MB, but when we archive the app the Assets.car file that is generated is 6 times larger than that. I have tried using PNGs and compressing them, but the size is still huge. I'm not sure what else I can do.

推荐答案

事实证明,无论原始格式是什么转换,任何图像在归档过程中进入png。我将图像移动到使用图像的旧格式,应用程序大小恢复正常。

It turns out that any image no matter what the original format is converted into a png during the archiving process. I moved the images to the old format of using images and the app size returned to normal.

这篇关于归档时,Assets.car比实际Images.xcassets文件夹大6倍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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