如何解决“缺少营销图标。iOS 应用程序必须包含 1024x1024 像素”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44667434/
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
How to solve "Missing Marketing Icon. iOS Apps must include a 1024x1024px"
提问by Varinder Singh iPhone Dev
采纳答案by Sukeshj
Now onwards we need to add a new icon in our project with the size 1024X1024. Please see below-attached image. This issue was stared from WWDC 2017.
现在我们需要在我们的项目中添加一个大小为 1024X1024 的新图标。请参阅下面的附加图片。这个问题是从 WWDC 2017 开始的。
Note: - Do not upload or use the beta version (mac os or Xcode) for app upload. As per Apple recommendation. I already got mail from Apple about this.
注意: - 请勿上传或使用测试版(mac os 或 Xcode)进行应用上传。按照苹果的建议。我已经收到了来自 Apple 的邮件。
回答by Gaurav Singla
For the XCode 9: we need to drag a new icon with size 1024pt new available icon item named "App Store iOS 1024pt" under AppIcon image set.
对于 XCode 9:我们需要在 AppIcon 图像集下拖动一个大小为 1024pt 的新图标,名为“App Store iOS 1024pt”。
Make sure to use icon in PNG format without alpha/transparency.Thanks to @Hammoudfor sharing transparency experience !
确保使用没有 alpha/透明度的 PNG 格式的图标。感谢@Hammoud分享透明体验!
After doing this stuff, this warning should be gone and you should be able to see something like this.
做完这些事情后,这个警告应该消失了,你应该能够看到这样的东西。
Happy Coding !
快乐编码!
回答by Hammoud
I was stuck at this problem for about 2 hours. I had a icon present in my icon list but it keeps on failing. The problem was that the PNG had alpha channel enabled. Open up photoshop and save your image without alhpa/transparency.
我被这个问题困了大约 2 个小时。我的图标列表中有一个图标,但它一直失败。问题是 PNG 启用了 alpha 通道。打开 Photoshop 并在没有 alhpa/透明度的情况下保存您的图像。
Solution found at: https://forums.developer.apple.com/thread/86829
回答by NukeouT
Tap little grey circle arrow next to App Icons Source to go to the icon drag/drop screen.
点击 App Icons Source 旁边的小灰色圆圈箭头以转到图标拖/放屏幕。
Then go to the bottom and drag your new 1024 icon in the 1024 slot
然后转到底部并将新的 1024 图标拖到 1024 插槽中
Hint: Your [email protected] icon is the same thing as this requirement and you already have it because you already use it in the App Store through iTunes Connect
提示:您的 [email protected] 图标与此要求相同,您已经拥有它,因为您已经通过 iTunes Connect 在 App Store 中使用它
回答by Romantic Nerd
First, follow @Sukeshj 's solution.
首先,遵循@Sukeshj 的解决方案。
If @Sukeshj 's solution doesn't work and you are using CocoaPods for project management, that may be the key point.
如果 @Sukeshj 的解决方案不起作用并且您使用 CocoaPods 进行项目管理,那可能是关键点。
My environment: XCode 9.1 CocoaPods 1.2.1
我的环境:XCode 9.1 CocoaPods 1.2.1
Find {porject}/Pods/Target Support Files/Pods-{porjectname}/Pods-{porjectname}-resources.sh in Xcode, and change the last piece of code like this:
在Xcode中找到{porject}/Pods/Target Support Files/Pods-{porjectname}/Pods-{porjectname}-resources.sh,将最后一段代码改成这样:
before change:
更改前:
printf "%sprintf "%s<platform name="ios">
<icon height="1024" src="res/icon/ios/icon-1024.png" width="1024" />
</platform>
" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-
format human-readable-text --notices --warnings --platform
"${PLATFORM_NAME}" --minimum-deployment-target
"${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --
compress-pngs --compile
"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-
icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-
plist "${BUILD_DIR}/assetcatalog_generated_info.plist"
fi
" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-
format human-readable-text --notices --warnings --platform
"${PLATFORM_NAME}" --minimum-deployment-target
"${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --
compress-pngs --compile
"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
after change:
更改后:
cordova prepare ios --verbose
Try to archive your project and upload it again, hope it helps.
尝试存档您的项目并再次上传,希望它有所帮助。
回答by Varsha Gaikwad
Its mandatory to add app icon of size 1024*1024 in image asset for Xcode 9 or later. Other wise it will give following error after uploading build to app store. So please make sure to add app icon in image asset before uploading app.
必须在 Xcode 9 或更高版本的图像资产中添加大小为 1024*1024 的应用程序图标。否则,将构建上传到应用商店后会出现以下错误。所以请确保在上传应用程序之前在图像资产中添加应用程序图标。
Dear developer, We have discovered one or more issues with your recent delivery for "CarPal". Your delivery was successful, but you may wish to correct the following issues in your next delivery: Missing Marketing Icon - 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. After you've corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.
尊敬的开发者,我们发现您最近交付“CarPal”时存在一个或多个问题。您的交付成功,但您可能希望在下次交付时更正以下问题: 缺少营销图标 - iOS 应用程序必须包含 1024x1024 像素的 PNG 格式营销图标。不包含营销图标的应用无法提交应用审核或 Beta 版应用审核。更正问题后,您可以使用 Xcode 或 Application Loader 将新的二进制文件上传到 iTunes Connect。
回答by Mukesh Chapagain
If you are using Cordova
Framework then:
如果您使用的是Cordova
框架,则:
- Create an icon file with
height=1024px
andwidth=1024px
. You can name the file asicon-1024.png
- Put that icon in folder
res/icon/ios/
Write the following code in your
config.xml
file.<platform name="ios"> <icon height="1024" src="res/icon/ios/icon-1024.png" width="1024" /> </platform>
Open terminal/command-prompt, then
cd
to your project's root directory and run the following command:cordova prepare ios --verbose
- This will copy the
icon-1024.png
file to its proper location (platforms/ios/YourProjectName/Images.xcassets/AppIcon.appiconset/
)
- 使用
height=1024px
和创建一个图标文件width=1024px
。您可以将文件命名为icon-1024.png
- 将该图标放在文件夹中
res/icon/ios/
在您的
##代码##config.xml
文件中写入以下代码。打开终端/命令提示符,然后
##代码##cd
到您项目的根目录并运行以下命令:- 这会将
icon-1024.png
文件复制到其正确位置 (platforms/ios/YourProjectName/Images.xcassets/AppIcon.appiconset/
)
回答by hiproz
i have the same problem, there is my check steps:
我有同样的问题,有我的检查步骤:
- i check all the image of AppIcon ,the other images are ok, but there is a error:
- 我检查了 AppIcon 的所有图像,其他图像都可以,但是出现错误:
ERROR ITMS-90704: "Missing App Icon. An app icon measuring 1024 by 1024 pixels in PNG format must be included in the Asset Catalog of apps built for iOS, iPadOS, or watchOS. Without this icon, apps cannot be submitted for review. For details, see https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/."
错误 ITMS-90704:“缺少应用程序图标。PNG 格式的 1024 x 1024 像素的应用程序图标必须包含在为 iOS、iPadOS 或 watchOS 构建的应用程序的资产目录中。没有此图标,应用程序无法提交以供审核。有关详细信息,请参阅https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/。”
i check the pixel alpha and transparent, those is all ok ,but the same is all the same :(
i create a new asset catalog, and move the AppIcon dir to the new dir:Media.Xcassets. it works!
我检查了像素 alpha 和透明,这些都没问题,但都是一样的:(
我创建了一个新的资产目录,并将 AppIcon 目录移动到新目录:Media.Xcassets。有用!
if u have tried all the above method and have nothing effective, u can try mine, have a good luck!
如果您已经尝试了以上所有方法但没有任何效果,您可以尝试我的,祝您好运!