报错信息:
<pre style="box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 8px; font-weight: normal; position: relative; white-space: pre-wrap; overflow-wrap: break-word; overflow-x: auto; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0);">While reading /Users/zhangyanfeng/Desktop/程序/KeyBoardDemo/KeyBoardDemo/keyboard/KerboardResource/emotion/DeleteEmoticonBtn@2x.png pngcrush caught libpng error:
\203\2518\340\203\251^\3023\247X4\377\277\3043\247\374\370僩
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure</pre>
image报错原因:
该文件不是真正的png文件,可能是个jpg文件,实际的文件头信息是不一样的,造成不能识别。
解决方法:
1.重新做一张png图片
2.将文件名后缀改为原来后缀如jpg
网友评论