发布于 1年前

Xcode 9添加项目的iOS App图标

Xcode 8及之前的版本是可以直接在iTunes Connect上添加App icon。而Xcode 9则是把App icon放置在项目的asset catalog。

在Info.plist 添加key CFBundleIconName:

<key>CFBundleIconName</key>
<string>AppIcon</string>

在项目的asset catalog添加图标:

需要添加以下尺寸的图标:

  • 20pt 1x, 2x, 3x
  • 29pt 1x, 2x, 3x
  • 40pt 1x, 2x, 3x
  • 60pt 1x, 2x, 3x
  • 76pt 1x, 2x
  • 85.5pt 2x
  • 1024pt 1x

如果没有正确添加iOS App图标,上传到App Store后可能会受到拒绝邮件,大概内容如下:

Dear developer,
We have discovered one or more issues with your recent delivery for "". To process your delivery, the following issues must be corrected: Missing Info.plist value - A value for the Info.plist key CFBundleIconName is missing in the bundle ''. Apps that provide icons in the asset catalog must also provide this Info.plist key. For more information seehttp://help.apple.com/xcode/mac/current/#/dev10510b1f7. Once these issues have been corrected, you can then redeliver the corrected binary. Regards, The App Store team

参考:Add an App Store icon to your project

©2020 edoou.com   京ICP备16001874号-3