objective-c - 与 xcode 中的图像、未分类、pngcrush 和复制 png 文件错误有关的奇怪错误?

标签 objective-c xcode 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

这是什么意思,为什么它才刚刚开始出现,我该如何解决?

最佳答案

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

关于objective-c - 与 xcode 中的图像、未分类、pngcrush 和复制 png 文件错误有关的奇怪错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12180675/

相关文章:

objective-c - 将首选项 Pane 添加到应用程序

ios - 线程 1 : Fatal error: Unexpectedly found nil while unwrapping an Optional value when testing cocoapod

xcode - TableView 单元格连接 View Controller 不起作用(Swift)

xcode - 使用 pngcrush 工具的 PNG 优化问题

ios - KeyboardWillShowNotification 调用两次 ios 9

ios - 是否可以从共享扩展执行 API 调用

objective-c - 使用 Objective-C 宏访问 Swift 中的 UIView 帧测量

iphone - 在设备上进行测试时向SIGABRT发出信号,它可在模拟器上运行。简易代码

xcode - 在 Windows 上使用 pngcrush 恢复 XCode 压缩?