当我尝试向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时错误仍然存在。


当前回答

我还shell脚本使用ffmpeg调整图像大小没有阿尔法通道。它适用于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

其他回答

I also tried exporting without alpha it did not work for me but I figured it out that why I was getting error. I create an AppIcon using Figma & Sketch, but I tried to make a 2D geometry shape to 3D viewable. So I assume that I can achieve it by using some shadows & the same geometry but with lower alpha-like %70. After that, I got the AppIcon and export it without Alpha ticking but the problem was the main source of the image includes a container with lower alpha-like I did. So I change it to another graphical shape without alpha and it worked.

愚蠢的错误从我的部分,没有存档应用程序后删除alpha。只是不断提交我的旧存档应用程序,并发现相同的alpha/透明度错误。希望它能帮助到别人。

这里有一个解决方案,对我在High Sierra工作

在预览应用程序(默认的OSX图像查看器)中打开应用商店图标(1024*1024)。 从菜单栏单击“文件”菜单并选择“导出”。 查看截图 取消选中Alpha,选择您想要导出图像的位置,然后单击保存按钮。查看截图 将当前的App Store图标替换为新导出的图标图像。 验证并上传。

我可以通过复制文件来解决Mac Sierra OS的问题,将新文件拖到桌面上,在预览中打开,然后单击导出选项(在文件菜单中),然后出现不带“alpha”的保存选项

使用Images文件夹中的命令删除alpha通道。Xcassets ',这个命令将从你的。png文件中删除所有alpha通道,并将背景颜色设置为白色

for i in `ls *.png`; do convert $i -background white -alpha remove -alpha off $i; done