"显示包内容" iPhone的发布版本显示为空白PNG图片? [英] "Show Package Contents" of iPhone build release reveals blank PNGs?

查看:153
本文介绍了"显示包内容" iPhone的发布版本显示为空白PNG图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我成功地完成了我的第一个iPhone发布版本,当我好奇地走到新鲜出炉的.app文件,以显示包内容,我发现所有的PNG图像包含的是空的!他们都设置为合适的分辨率,但是当我打开它们,有什么可看的,但默认的preview.app灰色。

So I successfully completed my first iPhone release build and when I curiously went to "Show Package Contents" of the freshly-baked .app file, I noticed that all the contained PNGs are blank! They are all set to the appropriate resolutions, but when I open them, there's nothing to see but the default Preview.app grey.

我试图打开其他的.app包内容(从OS X应用程序),看看他们的PNG图像是可见的,果然他们。因此,这一切如常为iPhone构建的.app还是我错过的疑难杂症?

I tried opening other .app "package contents" (from OS X apps) to see if their PNGs were visible and sure enough they were. So is this business as usual for an iPhone .app build or did I miss a gotcha?

推荐答案

构建应用程序时,X code可优化的PNG文件 - 这些文件不能在preVIEW应用程序中查看。请参阅的COM preSS PNG文件在你的目标设定(在包装块) - 如果它被设置为YES,那么这样的话

XCode may optimize pngs when building application - those files cannot be viewed in Preview app. See "Compress PNG Files" setting in your target (in Packaging block) - if it is set to YES then that's the case.

P.S。你可以使用pngcrush工具恢复这种优化,请参阅命令行命令为的这里

P.S. you can revert this optimization using pngcrush tool, see command-line command for that here

这篇关于"显示包内容" iPhone的发布版本显示为空白PNG图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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