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


当前回答

对于任何从颤振公司得到这个问题的人,像我一样

在你的pubspec.yaml:

flutter_icons:
  android: false. // I already had android icons
  ios: true
  remove_alpha_ios: true
  image_path: 'assets/images/icon.png' // Your image path

跑扑酒吧得到 运行flutter pub Run flutter_launcher_icons:main生成不带alpha的iOS图标。

在我挣扎了几天之后,这个为我解决了问题。是的,我确实尝试了这里建议的所有解决方案。其他方法都不管用。

其他回答

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

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

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

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

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

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

错误信息本身是这样的:

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

所有应用程序图标必须是方形的,不透明或半透明(alpha值!= 1.0)。

提示:应用程序图标可能有圆角。(在这里分享你的应用程序图标)

以下是苹果应用程序图标-人机界面指南

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