【发布时间】:2013-07-17 06:26:51
【问题描述】:
当我归档应用程序时,我的项目中的所有图像都会出现 CopyPNGerror。我尝试了所有方法删除所有图像,再次添加它们,检查构建阶段(复制捆绑资源)。没有找到重复项。我不明白要做什么做进一步并提交应用程序。当我归档另一个具有相同图像归档的应用程序时成功
CopyPNGFile "/Users/admin/Library/Developer/Xcode/DerivedData/App1-auevnkwujohdqtflzyputmxbvrmt/Build/Intermediates/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App1.app/about2 copy.png" "Classes/../about2 copy.png"
cd "/Users/admin/Documents/App/App (1)"
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/Documents/App/App (1)/Classes/../about2 copy.png" "/Users/admin/Library/Developer/Xcode/DerivedData/App1-auevnkwujohdqtflzyputmxbvrmt/Build/Intermediates/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App1.app/about2 copy.png"
Could not open output file /Users/admin/Library/Developer/Xcode/DerivedData/App1-auevnkwujohdqtflzyputmxbvrmt/Build/Intermediates/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App1.app/about2 copy.pngCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng failed with exit code 1
我应该怎么做才能解决这个错误?
【问题讨论】:
-
about2 copy.png是否已正确添加到您的项目中?请检查一下。这不应该是红色的。然后清理您的项目并重新构建。 -
是的,它添加正确,没有显示任何红色。但是存档不成功。我该怎么办?
-
右键单击此图像并检查 Xcode 将您带到哪里。
-
它带我到项目文件夹
-
表示您只是更改了图像扩展名,而实际上它是其他格式。所以在
preview > File > Export > save it as png中打开它。那就试试吧。