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)
这是什么意思,为什么它刚刚开始发生,我该如何解决?
And*_*lip 23
我猜这是在设备上测试应用程序时发生的.这是因为你的形象static.png.它不是一个png文件.删除该文件,然后重试.此外,我猜测应用程序没有粉碎,上面提到的图像没有显示它应该在哪里.尝试在photoshop中打开文件并将其另存为png.
我有同样的问题.我检查了所有目标,发现Default-568@2x.png只添加了一次(Default-568@2x.png是导致我问题的文件).我只是取消选中Project中的'压缩PNG文件'选项 - >目标 - >构建设置 - >打包 - >压缩PNG文件,它确实对我有效.
| 归档时间: |
|
| 查看次数: |
12589 次 |
| 最近记录: |