gpt4 book ai didi

iphone - 不是 PNG filCommand copypng 发出错误但未返回非零退出代码以指示失败

转载 作者:IT王子 更新时间:2023-10-29 08:01:45 25 4
gpt4 key购买 nike

在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com