xcode ionic3 - 无效的 App Store 图标。'YourApp.app' 中资产目录中的 App Store 图标不能是透明的,也不能包含 alpha 通道
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48459080/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ionic3 - Invalid App Store Icon. The App Store Icon in the asset catalog in 'YourApp.app' can't be transparent nor contain an alpha channel
提问by Yuyang He
My ionic3 project build IOS successed, but when I upload it to itunes connect error showing
我的 ionic3 项目构建 IOS 成功,但是当我将其上传到 iTunes 时连接错误显示
then I try follow this ANSWER, but showing this for me find: convert: No such file or directory
然后我尝试按照这个ANSWER 操作,但是给我看这个find: convert: No such file or directory
EDIT:
编辑:
I installed imagemagick
using npm install imagemagick
not brew install imagemagick
我安装imagemagick
使用npm install imagemagick
不brew install imagemagick
then running find ./resources/ -name "*.png" -exec convert "{}" -alpha off "{}" \;
showing find: convert: No such file or directory
.
然后运行find ./resources/ -name "*.png" -exec convert "{}" -alpha off "{}" \;
显示find: convert: No such file or directory
。
回答by Yuyang He
Error solved!! Because of my ionic3 project contains icon alpha channel
problem. And thanks to @Raptor.
错误已解决!!因为我的 ionic3 项目包含图标alpha channel
问题。并感谢@Raptor。
- I tried to close icon
alpha channel
by photoshop. - Delete
./resources/ios/icon
all icons which inIOS
folder. - Run
ionic cordova resources ios
. - Rebuild ios
ionic cordova build ios --prod
, error solved.
- 我试图
alpha channel
通过photoshop关闭图标。 - 删除文件夹中的
./resources/ios/icon
所有图标IOS
。 - 运行
ionic cordova resources ios
。 - 重建ios
ionic cordova build ios --prod
,错误解决。
If still got error or any problem, just comment here and I will try to help you.
如果仍然有错误或任何问题,请在此处发表评论,我会尽力帮助您。
回答by distante
回答by kloarubeek
If you don't have Photoshop, you can also try it in the free Paint.Net:
如果您没有 Photoshop,也可以在免费的 Paint.Net 中试用:
- Load the file and save it again but select 24 bits in the options.
- You will see in the preview that the image will be rendered against a white background.
- 加载文件并再次保存,但在选项中选择 24 位。
- 您将在预览中看到图像将在白色背景下呈现。
Thanks Midora from https://forums.getpaint.net/topic/30381-removing-the-alpha-channel/
感谢来自https://forums.getpaint.net/topic/30381-removing-the-alpha-channel/ 的Midora
回答by lotfi Raghib
The find command syntax is not correct, this way you get the message, this how you should use find command :
find 命令语法不正确,通过这种方式您会收到消息,您应该如何使用 find 命令:
find . -type f \( -iname \*.png \) -exec convert "{}" -alpha off "{}" \;