使用 Xcode 4 构建应用程序 - 它总是显示有关 PNG 图像的一些错误 [英] Build app with Xcode 4 - it always show some error about PNG image

查看:18
本文介绍了使用 Xcode 4 构建应用程序 - 它总是显示有关 PNG 图像的一些错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 Xcode 4 构建我的应用程序时,它总是显示此错误消息:

When I build my app with Xcode 4 it always show this error message:

CopyPNGFile /Users/michaelchen/Library/Developer/Xcode/DerivedData/iMusicBox-boeawugacmhacbdtyymnprzfobyq/ArchiveIntermediates/iMusicBox/InstallationBuildProductsLocation/Applications/iMusicBox.app/list_cell.png Images/list_cell.png
    cd /Volumes/WORK/Works/iMusicBox
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    "/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng" -compress "" /Volumes/WORK/Works/iMusicBox/Images/list_cell.png /Users/michaelchen/Library/Developer/Xcode/DerivedData/iMusicBox-boeawugacmhacbdtyymnprzfobyq/ArchiveIntermediates/iMusicBox/InstallationBuildProductsLocation/Applications/iMusicBox.app/list_cell.png

在/Volumes/WORK/Works/iMusicBox/Images/list_cell.png 检查 alpha 时,pngcrush 发现 libpng 错误:图片数据不足

While checking alphas in /Volumes/WORK/Works/iMusicBox/Images/list_cell.png pngcrush caught libpng error: Not enough image data

但是 Xcode 3.2 没问题 - 为什么?

but It's OK with Xcode 3.2 - why?

推荐答案

找到了!!

您必须将 PNG 文件保存为 NOT INTERLACED.尝试在 photoshop(或类似软件)中打开文件,另存为,然后选择不隔行扫描".

You have to save your PNG files as NOT INTERLACED. Try to open the file in photoshop (or similar), save as, and select "Not interlaced".

它在我的情况下有效

希望能帮到你

这篇关于使用 Xcode 4 构建应用程序 - 它总是显示有关 PNG 图像的一些错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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