Xcode iPhone retina 4英寸发布图像出错

Xcode iPhone retina 4英寸发布图像出错,xcode,image,launch,iphone-5,Xcode,Image,Launch,Iphone 5,这是我的问题。 我在我的项目中添加了一个新的图像,为iPhone5发布了一个图像。它被命名为Default-568@2x.png根据需要 我已将此图像放置在我的项目目录中,然后通过拖放将其添加到我的项目中。我选择了选项:“将项目复制到目标组的文件夹(如果需要)”和“添加到目标:myProject” 当我选中Builphase->copybundle Resources时,我的图像只显示一次,路径良好 但在构建项目时,我有以下错误: While reading /Users/admin/Deskt

这是我的问题。 我在我的项目中添加了一个新的图像,为iPhone5发布了一个图像。它被命名为Default-568@2x.png根据需要

我已将此图像放置在我的项目目录中,然后通过拖放将其添加到我的项目中。我选择了选项:“将项目复制到目标组的文件夹(如果需要)”和“添加到目标:myProject”

当我选中Builphase->copybundle Resources时,我的图像只显示一次,路径良好

但在构建项目时,我有以下错误:

While reading /Users/admin/Desktop/Projets tests/myProject/Resources/build/Default-568h@2x.png pngcrush caught libpng error:   Not a PNG file
Could not find file: /Users/admin/Library/Developer/Xcode/DerivedData/myProject-fjnhmdxkawhvkgecsmmrbgcwqaxk/Build/Products/Debug-iphoneos/myProject.app/Default-568h@2x.png
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

我做错了什么?

默认设置-568h@2x.png不是有效的png文件。无论您的设计师只是将任何jpeg文件重命名为png文件,还是您自己将其重命名为此文件

所以只需删除这个png文件并重新添加一个有效的默认值-568h@2x格式和尺寸正确