压缩构建设置中缺少的 Png 文件 [英] Compress Png Files missing from build settings

查看:56
本文介绍了压缩构建设置中缺少的 Png 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个包含大量图像的应用程序,因此我使用 ImageOptim 将它们全部粉碎以帮助减小我的 .IPA 的大小.我的应用程序的大小根本没有改变.

I am building an app which has quite a few images in, therefore I have crushed them all using ImageOptim to help decrease the size of my .IPA. How ever the size of my app has not changed at all.

我查看了他们的网站,他们说在打包下的构建设置中关闭 Compress Png Files.但是,该选项不存在.我尝试将其手动添加到我的 project.pbxproj 中,但它列在用户定义"部分下并且没有将其关闭.

I have looked on their website and they say to turn off Compress Png Files in the Build Settings under Packaging. However that option is not there. I have tried manually adding it into my project.pbxproj but it gets listed under the User Defined section and does not turn it off.

我也尝试在构建设置中搜索(我的主要目标被选中).

I have also tried searching in the Build settings (My main target is selected).

所以我的问题是...如何将 Compress Png Files 添加到我的构建设置中?

So my question is... how can I add Compress Png Files into my build settings?

推荐答案

这听起来可能令人兴奋,但请阅读到最后.

It might sound mind blowing, but please read it to the very end.

  1. 尝试将一个虚拟 png 文件拖放到您的项目中导航器,然后选择添加,如果需要复制"和选项将出现在包装"部分.但是,我想,这不是你的情况.
  2. 看起来您的所有 png 都包含在资产目录中,而不仅仅是散布.对于这种情况,我想,你可能想玩这个:

这篇关于压缩构建设置中缺少的 Png 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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