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


当前回答

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

其他回答

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

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

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

for i in `ls *.png`; do convert $i -background white -alpha remove -alpha off $i; 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.

如果您在这里并且正在使用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文件 它帮我解决了自己的问题

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

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

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