xcode 缺少营销图标 - iOS Cordova
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46309992/
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
Missing Marketing Icon - iOS Cordova
提问by peardox
I get this error when uploading to AppStore:
上传到 AppStore 时出现此错误:
iOS Apps must include a 1024x1024px Marketing Icon in PNG format. Apps that do not include the Marketing Icon cannot be submitted for App Review or Beta App Review.
iOS 应用必须包含一个 1024x1024 像素的 PNG 格式营销图标。不包含营销图标的应用无法提交应用审核或 Beta 版应用审核。
回答by ishahak
Based on the other answers here, I believe the complete answer is:
基于这里的其他答案,我相信完整的答案是:
If you did cordova platform update ios
it will bring you the latest stableversion, 4.4.0as of today, which don't knowto add the entry for the app-store icon.
如果你这样做了cordova platform update ios
它会给你带来最新的稳定版本,截至今天4.4.0,它不知道添加应用商店图标的条目。
So, what you need to do is:
所以,你需要做的是:
cordova platform rm ios
cordova platform add [email protected]
and add the above mentioned line into config.xml
with a slight modification - use a JPEGto avoid "The App Store Icon in the asset catalog in 'appname.app' can't be transparent nor contain an alpha channel":
并将上面提到的行添加到config.xml
稍作修改中 -使用 JPEG以避免“'appname.app' 中资产目录中的 App Store 图标不能是透明的,也不能包含 alpha 通道”:
<icon height="1024" width="1024" src="icons/ios/icon-1024.jpg" />
As soon as the stable version will become higher than 4.5.1, do not force that 'old' version!
一旦稳定版本高于 4.5.1,请不要强制使用“旧”版本!
To verify your iOS platform version, look for this line in config.xml
:
要验证您的 iOS 平台版本,请在以下行中查找config.xml
:
<engine name="ios" spec="~4.5.1" />
Important! from 4.5.0 and on, the plugin 'cordova-plugin-console' is not supported and not required. You must remove it in order to build successfully:
重要的!从 4.5.0 开始,插件 'cordova-plugin-console' 不受支持,也不是必需的。您必须删除它才能成功构建:
cordova plugin rm cordova-plugin-console
回答by Shashwat Tripathi
Update to latest cordova-ios version: 4.5.1 and register Marketing icon in config.xml
更新到最新的cordova-ios 版本:4.5.1 并在 config.xml 中注册营销图标
<icon height="1024" width="1024" src="icons/ios/icon-1024.png" />
回答by Yuyang He
For me I did like this.
对我来说,我就是这样做的。
First, change the icon size to 1024x1024, In yourProject/resources/icon.png.
首先,图标大小更改为1024×1024,在yourProject /资源/的icon.png。
Then, running this in your terminal.
然后,在您的终端中运行它。
ionic cordova plugin save
ionic cordova platform rm ios
ionic cordova platform add ios
Finally, IOS platform build successful and auto modifying config.xml successful.
最后IOS平台搭建成功,自动修改config.xml成功。
You will see <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
in your config.xml. Then try upload your project to AppStore again.
您将<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
在config.xml 中看到。然后再次尝试将您的项目上传到 AppStore。
回答by vrgamer
You may need add assets.car file witch is required by ios 11 and you can create it with xcode or online tool http://www.applicationloader.net/appuploader/icontool.php
您可能需要添加 ios 11 需要的 assets.car 文件,您可以使用 xcode 或在线工具http://www.applicationloader.net/appuploader/icontool.php创建它
put assets.car file as asset file or image file .
将 assets.car 文件作为资产文件或图像文件。
回答by Owen
Open Xcode => Drag your appstore icon into Resources/Images.xcassets/Appicon => Remove any transparency from you image => Use only letters for the name. e.g: appstore.png
打开 Xcode => 将您的 appstore 图标拖到 Resources/Images.xcassets/Appicon => 删除图像中的任何透明度 => 仅使用字母作为名称。例如:appstore.png