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


当前回答

如果你在Flutter遇到这个问题,那么你可以去这里。

问题是指示您使用。png作为图像资产。只是尝试将.png替换为.jpg,然后重新构建您的项目!!

使用这个插件。- flutter_launcher_icons: ^0.8.1

flutter_icons:
  android: "ic_launcher"
  image_path_android: "assets/logo_panda.jpg"
  ios: true
  image_path_ios: "assets/logo_panda.jpg"

确保使用.jpg图像扩展名作为图像路径。

这有助于我将应用程序上传到应用程序商店。

其他回答

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

看看我的截图

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

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

如果您在这里并且正在使用Flutter,请尝试此包https://pub.dev/packages/flutter_launcher_icons

然后添加

flutter_launcher_icons:
flutter_icons:
  android: true
  ios: true
  remove_alpha_ios: true
  image_path: "assets/images/logo.png"

去你的酒吧。yaml文件 它帮我解决了自己的问题