作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
在 iPad 上运行项目时添加图像时出现以下错误。它在所有图像的模拟器上运行良好,但在 iPad 上运行但不显示图像。
CopyPNGFile /Users/user/Library/Developer/Xcode/DerivedData/RImageGallery-cmwaittvclhwgxfpcoarddipyliv/Build/Products/Debug-iphoneos/RImageGallery.app/Default.png PhotoBrowserDemo/Default.png
cd /Users/user/Desktop/Demo
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng -compress "" /Users/user/Desktop/Demo/PhotoBrowserDemo/Default.png /Users/user/Library/Developer/Xcode/DerivedData/RImageGallery-cmwaittvclhwgxfpcoarddipyliv/Build/Products/Debug-iphoneos/RImageGallery.app/Default.png
Not a PNG filCommand /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
(null): While reading /Users/user/Desktop/Demo/PhotoBrowserDemo/Default.png pngcrush caught libpng error:
(null): Could not find file: /Users/user/Library/Developer/Xcode/DerivedData/RImageGallery-cmwaittvclhwgxfpcoarddipyliv/Build/Products/Debug-iphoneos/RImageGallery.app/Default.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
最佳答案
我的答案:
我遇到了这个问题。为同一张图片添加了两个目标。 转到项目目标 -> 构建阶段 -> 复制捆绑资源并搜索您的图像文件名。
很可能有两个条目。删除一个。
通过这样做我解决了我的问题。这对我有用:) :)
乐于提供帮助 :) :)
关于iphone - 不是 PNG filCommand copypng 发出错误但未返回非零退出代码以指示失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13679710/
在 iPad 上运行项目时添加图像时出现以下错误。它在所有图像的模拟器上运行良好,但在 iPad 上运行但不显示图像。 CopyPNGFile /Users/user/Library/Develope
我是一名优秀的程序员,十分优秀!