我为所有屏幕尺寸准备了背景图片,总共20MB。我将这些图像存储在xcassets中,因为我想这是首选方法。
我认为这个应用程序不应该超过25MB。我发现我的项目中有一些重复引用。我删除了它们,但我的.app文件仍然有89MB!
我做错了什么?我阅读了几篇相关文章,但没有真正帮助到我!
到目前为止,我做了以下工作:
- reduce the size of all pngs
- disable the compress PNG option, as it seems to make the PNGs bigger (lol)
- configured the build settings to run the fastest and smallest build
- Strip Debug Symbols During Copy build setting to Yes (COPY_PHASE_STRIP = YES)
编辑1: 显然Xcode对我的png文件做了一些奇怪的处理。一些原本为2 mb的图片,在.app文件中超过10mb。这是Xcode在做什么?