【发布时间】:2013-10-01 21:23:23
【问题描述】:
我正在使用 xCode5 在我的一个通用项目中添加启动图像。
当我为iPhone Non-Retina (iOS 6.1 or prior) 添加初始图像时,xCode 要求我将图像重命名为 Default.png(足够好)
我为 iPhone 添加所有其他图像。
当我为iPad Portrait Non-Retina (iOS 6.1 or prior) 添加初始图像时,xCode 再次要求我将文件重命名为 Default.png 并将其放在子目录中。
现在,当我尝试构建项目时,由于文件名相同,它会出现 PNG Crush 错误。
这是确切的错误:
While reading /Volumes/iosWorkspace/projectName/projectName/Default@2x.png pngcrush caught libpng error:
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure
【问题讨论】:
-
“PNG Crush”是您爱上图像文件的现象的名称。您要查找的词是“crash”。
-
不,在这种情况下。粉碎=使东西变小|把东西打碎。
-
@H2CO3 lolz .. 当我第一次看到这个错误时,我也是这么想的:D