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


当前回答

如果你没有mac,在windows上你可以打开Paint并保存为正确尺寸1024x1024的PNG

其他回答

我还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

不管你用什么方法,你都需要像我一样把它上传到app connect上进行测试,以确保它能正常工作,节省你宝贵的时间

如果您正在使用Sierra或更高版本

导航到AppIcon。appiconset文件夹在您的Runner文件夹 使用预览打开应用程序图标图像。 在屏幕的左上方,选择File its beside edit。 在文件下拉列表中选择export。 取消选择alpha列表项。 将取消选中的alpha图像替换为旧的。

在Assets.xcassets中复制所有应用程序图标图像

使用Alpha通道移除器。它可以让你把图标拖到应用程序中,它会消除透明度。

从这里下载:http://alphachannelremover.blogspot.com

更新:这不是我的网站

我使用的是Windows,所以在我的情况下,我使用的是paint.net。

打开有问题的图标并单击Ctrl+S 将弹出一个保存配置对话框。 选择24位深度

在这个图标被接受之后。

附: 另一个同事建议的选择是简单地用ms paint打开并保存它,因为paint不支持透明,但我还没有测试过。