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


当前回答

错误信息本身是这样的:

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

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

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

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

其他回答

从这里生成应用程序图标https://appicon.co/ 删除资产。Xcassets文件(project->ios->runner) 复制的资产。Xcassets从新生成的图标文件夹和过去这里(项目->ios->runner) 从XCode执行干净的构建文件夹 然后存档并上传新的构建

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

在卡特琳娜解决

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

看看我的截图

我也遇到了同样的问题,但无法用Shamsudheen TK提供的解决方案解决它。Ionic以某种方式为我的图标添加了透明度,即使源图标根本没有任何透明度。最后我用以下方法解决了这个问题:

安装imagemagick (MacOS):

酿造安装imagemagick

从资源文件夹中的所有图像中删除alpha通道:

查找。/resources/ name "*.png" -exec convert "{}" -alpha off "{}" \;

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.

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