在Xcode9 iOS11应用程序版本中缺少CFBundleIconName [英] Missing CFBundleIconName in Xcode9 iOS11 app release

查看:1554
本文介绍了在Xcode9 iOS11应用程序版本中缺少CFBundleIconName的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难使用iOS 11 SDK构建的Xcode 9发布我们的应用程序的新版本。存档和上传二进制文件顺利进行,没有任何问题。构建在活动下的iTunes Connect中显示为正在处理,它将消失,我收到以下电子邮件。


亲爱的开发人员,



我们发现您最近交付的一个或多个问题是
。要处理您的交付,以下问题必须是
更正:缺少Info.plist值 - Info.plist键的值
包中缺少CFBundleIconName''。
在资产目录中提供图标的应用程序还必须提供此Info.plist
键。有关详细信息,请参阅



因此,CFBundleIconName现在应设置为AppIcon(默认值)或您设置的任何值。



仅添加该图像将无法通过iTunes存档上传过程,因此我们需要添加以下尺寸的所有应用图标图像:




  • 20pt 1x,2x,3x

  • 29pt 1x,2x,3x

  • 40pt 1x,2x,3x

  • 60pt 1x,2x,3x

  • 76pt 1x,2x

  • 85.5pt 2x

  • 1024pt 1x



所以,现在呢是时候使用资产目录来指定应用程序图标。


I'm struggling to release a new version of our app using Xcode 9 built with iOS 11 SDK. Archiving and uploading the binary goes well without any issue. The build appears in iTunes Connect under Activity as 'processing' and it gets disappear and I get the following email back.

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 see http://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

The link gives some info about asset bundles. I tried setting a CFBundleIconName key to project name or an image file name and submitted the app again. However, I still get the same email as above.

Any suggestion of help would be highly appreciated.

解决方案

I figured it out that since Xcode 9 iOS 11 builds require iTunes Connect App Icon to be bundled with the binary itself which could have been added to iTunes Connect directly in the earlier versions of Xcode (XCode 8.3.3 ane earlier).

If you distribute your app through the App Store, add the App Store icon to an asset catalog located in the Xcode project. The location of the icon is different depending on the platform.

For iOS and watchOS apps built using Xcode 8.3.3 and earlier, you add the App Store icon in iTunes Connect. For macOS and tvOS apps, you add the App Store icon to the Xcode project but the location in the asset catalog is different than apps built with Xcode 9 and later.

The required App Store icon should be placed in an asset catalog located in the app bundle.

So, the CFBundleIconName should be now set to AppIcon (default value) or any value you set.

Adding only that image will not pass the iTunes Archive upload process so we need to add all the App Icons images of the following sizes:

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

So, now it is time to use asset catalog to specify app icons.

这篇关于在Xcode9 iOS11应用程序版本中缺少CFBundleIconName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆