老工程要更新SDK,运行一下报错了,报错如下:
Showing Recent Messages
: While reading /Users/xx/Documents/workspace/ios/xx-ios/xx/Icon/AppIcon60x60@3x.png pngcrush caught libpng error:
Showing Recent Messages
: Could not find file: /Users/xx/Documents/workspace/ios/xx-ios/DerivedData/xx/Build/Products/Debug-iphonesimulator/xx.app/AppIcon60x60@3x.png
Showing Recent Messages
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure
问题就出在这张图片不是PNG格式。
最终解决方法找到 AppIcon60x60@3x.png 图片 使用mac自带图片预览工具打开导出PDF,再从PDF导成PNG格式。
网友评论