当我尝试向其提交应用程序时,Itunes Connect出现以下错误。
iTunes Store Operation Failed
Error ITMS-90717: "Invalid App Store Icon. The App Store Icon in the asset catalog in 'YourApp.app' can't be transparent nor contain an alpha channel."
当我尝试向其提交应用程序时,Itunes Connect出现以下错误。
iTunes Store Operation Failed
Error ITMS-90717: "Invalid App Store Icon. The App Store Icon in the asset catalog in 'YourApp.app' can't be transparent nor contain an alpha channel."
Answers:
下面的解决方案为我工作
注意:这在Mac OS High Sierra上不起作用,请尝试使用较低版本导出而不使用alpha或使用任何一种图像编辑应用程序,或尝试以下替代方法。
备选方案1 :(使用Sierra或High Sierra和Ionic)
替代方法2:如果重复项不起作用,请尝试在预览中将其打开,然后进行文件导出。我能够在那里取消选择Alpha通道。–由Alejandro Corredor撰写。
我遇到了同样的问题,无法使用Shamsudheen TK提供的解决方案进行修复。Ionic以某种方式为我的图标添加了透明度,即使源图标根本没有任何透明度。最后,我能够通过以下方式解决它:
安装imagemagick(MacOS):
酿造安装imagemagick
从资源文件夹中的所有图像中删除Alpha通道:
查找./resources/ -name“ * .png” -exec转换“ {}” -alpha off“ {}” \;
resources针对iOS版本从PNG自动删除Alpha通道的命令。
find: convert: No such file or directory
convert是的一部分imagemagick。这就是为什么需要安装它的原因。
如果您没有Mac,则可以在Windows上打开“画图”并将其保存为尺寸为1024x1024的PNG
使用此命令在“ Images.xcassets”文件夹中删除Alpha通道,此命令将从.png文件中删除所有Alpha通道,并将背景色设置为白色
for i in `ls *.png`; do convert $i -background white -alpha remove -alpha off $i; done
我还使用ffmpeg对脚本进行了外壳处理,以调整没有alphachannel的图像的大小。它适用于png格式。
# Export ios app icons by ffmpeg scale command
# usage: sh export_ios_icons.sh {path_to_your_img}
# example: sh export_ios_icons.sh ./app_icon.png
# sizes of images
# you can get other size images by editing thisarray
size=(20 40 60 29 58 87 80 120 180 76 152 167 1024)
for i in "${size[@]}"
do
:
ffmpeg -i $1 -vf scale=$i:$i output_$ix$i.png
done
将图标从.png格式更改为.jpg,一切正常。