无法对iOS项目进行归档

3
似乎 PNG 图像(图标和默认截图)出现了某种问题。尝试在 Photoshop 中重新保存,复制粘贴等操作。有时候会改变图片的数量,但它们仍然存在。
以下是我遇到的错误:

1

CopyPNGFile "/Users/admin/Library/Developer/Xcode/DerivedData/dotLang-hfjdkwzpxfuyaibhmihjxdyzyzqx/Build/Intermediates/ArchiveIntermediates/dotLang/InstallationBuildProductsLocation/Applications/dotlang.app/Default@2x.png" "dotLang/Default@2x.png" cd "/Users/admin/Desktop/newCode 2 3 2 2 2 2/dotLang" 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/admin/Desktop/newCode 2 3 2 2 2 2/dotLang/dotLang/Default@2x.png" "/Users/admin/Library/Developer/Xcode/DerivedData/dotLang-hfjdkwzpxfuyaibhmihjxdyzyzqx/Build/Intermediates/ArchiveIntermediates/dotLang/InstallationBuildProductsLocation/Applications/dotlang.app/Default@2x.png"

䏰\216\346\217ﮚ@A\346\217\320Command /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

2

CopyPNGFile "/Users/admin/Library/Developer/Xcode/DerivedData/dotLang-hfjdkwzpxfuyaibhmihjxdyzyzqx/Build/Intermediates/ArchiveIntermediates/dotLang/InstallationBuildProductsLocation/Applications/dotlang.app/Default-568h@2x.png" "dotLang/Default-568h@2x.png" cd "/Users/admin/Desktop/newCode 2 3 2 2 2 2/dotLang" 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/admin/Desktop/newCode 2 3 2 2 2 2/dotLang/dotLang/Default-568h@2x.png" "/Users/admin/Library/Developer/Xcode/DerivedData/dotLang-hfjdkwzpxfuyaibhmihjxdyzyzqx/Build/Intermediates/ArchiveIntermediates/dotLang/InstallationBuildProductsLocation/Applications/dotlang.app/Default-568h@2x.png"

The command "copypng" has emitted errors but did not return a nonzero exit code to indicate failure.

3

CopyPNGFile "/Users/admin/Library/Developer/Xcode/DerivedData/dotLang-hfjdkwzpxfuyaibhmihjxdyzyzqx/Build/Intermediates/ArchiveIntermediates/dotLang/InstallationBuildProductsLocation/Applications/dotlang.app/Default-568h@2x.png" "Default-568h@2x.png" cd "/Users/admin/Desktop/newCode 2 3 2 2 2 2/dotLang" 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/admin/Desktop/newCode 2 3 2 2 2 2/dotLang/Default-568h@2x.png" "/Users/admin/Library/Developer/Xcode/DerivedData/dotLang-hfjdkwzpxfuyaibhmihjxdyzyzqx/Build/Intermediates/ArchiveIntermediates/dotLang/InstallationBuildProductsLocation/Applications/dotlang.app/Default-568h@2x.png"

我做错了什么?

(What am I doing wrong?)

这里涉及到一个名为 CopyPNGFile 的命令行工具,它可以将 PNG 文件复制到指定位置并进行压缩。由于路径或文件名错误,该命令导致了错误,但是没有返回非零的退出码来表明失败。

1个回答

0

尝试在Xcode的摘要屏幕上右键单击图标,然后删除任何先前的图标,进行清理并重新构建。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接