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


当前回答

我遇到了这个问题,这是因为我的应用商店图标没有显式地列在config.xml中。一旦我加了一行

src="www/res/icon/ios/icon-1024.png" width="1024" />,

科多瓦没有添加alpha通道就正确复制了。

其他回答

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

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

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

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

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

我尝试了这篇文章中提到的几种方法(除了转换成。jpg格式),都没有成功。我通过在photoshop中打开文件并使用“导出到web”来解决这个问题。在该进程/窗口中有一个用于透明度的复选框。

无效的应用商店图标。在YourApp的资产目录中的应用商店图标。App '不能是透明的,也不能包含alpha通道。

在卡特琳娜解决

复制到桌面 在预览APP中打开图像。 关闭第一个打开的预览 在尝试关闭第二个复制的图像后,它会提示保存在那里,你可以取消勾选AlPHA

看看我的截图