与xcode,uncategorised,pngcrush和copy png文件错误中的图像有奇怪的错误?

dev*_*546 14 xcode objective-c pngcrush

(null): While reading /Users/lewiselliott/Desktop/Final Version/2bm/2bm/static.png pngcrush caught libpng error:
(null): Could not find file: /Users/lewiselliott/Desktop/Final Version/2bm/build/Debug-iphoneos/2bm.app/static.png
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng emitted errors but did not return a nonzero exit code to indicate failure
Run Code Online (Sandbox Code Playgroud)

这是什么意思,为什么它刚刚开始发生,我该如何解决?

Ram*_* G. 79

我有这个问题.为同一图像添加了两个目标.转到项目目标 - >构建阶段 - >复制捆绑资源并搜索您的图像文件名.最有可能有两个条目.删除一个.


And*_*lip 23

我猜这是在设备上测试应用程序时发生的.这是因为你的形象static.png.它不是一个png文件.删除该文件,然后重试.此外,我猜测应用程序没有粉碎,上面提到的图像没有显示它应该在哪里.尝试在photoshop中打开文件并将其另存为png.


小智 12

我也有这个问题.原来我在两个不同的组中有两组具有相同名称的png文件.我删除了所有并加载了一套.然后它工作正常.我的问题是用于启动画面的Default.png文件.


Cha*_*hal 5

我有同样的问题.我检查了所有目标,发现Default-568@2x.png只添加了一次(Default-568@2x.png是导致我问题的文件).我只是取消选中Project中的'压缩PNG文件'选项 - >目标 - >构建设置 - >打包 - >压缩PNG文件,它确实对我有效.