zhao0 / ipapk-server

Create a HTTPS Server to install iOS ipa and Android apk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extract ipa png icon failed

red3 opened this issue · comments

commented

处理 icon 的时候报错:

/Users/herui/.ipapk-server/icon/46bf9893-685e-40d0-bbcf-8826e57fc867.png : not an -iphone crushed PNG file

应该是 extractIpaIcon 这个函数里面 fs.writeFile报的错。

我的尝试:

  1. 确保 icon 是 png,同时试了上传微信的 ipa 包还是报这个错误
  2. ios-ipa-server 项目是可以成功显示图片的,我看了下,他用的是 fs.writeFileSync,但是也会有报警:libpng warning: Input PNG is not optimized for iPhone OS. Copying source file to destination...

还是说我的 libpng 版本有问题?

commented

普通情况下ipa里面的png图片会经过pngcrush压缩,报错是这个图片没有经过pngcrush压缩,我今天加个处理,没有压缩过就直接解压

commented

按说我在 iTunes 中下载的微信的安装包应该是经过 pngcrush 压缩的才对吧?

commented

不一定是

commented

我查了下,找到这个链接:https://discussions.apple.com/thread/7263918?start=0&tstart=0

可能是这样:
用 xcassets 管理 appicon 后,xcassets 里面 png 文件不会被压缩了吧

commented

这个我不太清楚,我要兼容两种

commented

好的

commented

我更新到0.2.4了,你试一下

commented

👍 可以了,关闭这个 issue 吧

commented

感谢反馈,比心