这是我的问题。我已经在我的项目中添加了一个新图像,以获取 iPhone 5 的启动图像。根据需要将其命名为 Default-568@2x.png。
我已将此图像放在我的项目目录中,然后通过拖放将其添加到我的项目中。我选择了选项:“将项目复制到目标组的文件夹(如果需要)”和“添加到目标:myProject”。
当我检查Builphase -> Copy Bundle 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
我究竟做错了什么?