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

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

问题描述

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

<块引用>

亲爱的开发者:

我们发现您最近的交货有一个或多个问题".要处理您的交货,必须解决以下问题更正:缺少 Info.plist 值 - Info.plist 键的值包 '' 中缺少 CFBundleIconName.应用程序在资产目录中提供图标也必须提供这个Info.plist钥匙.有关更多信息,请参阅

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

仅添加该图像不会通过 iTunes Archive 上传过程,因此我们需要添加以下大小的所有 App Icons 图像:

  • 20pt 1x、2x、3x
  • 29pt 1x、2x、3x
  • 40pt 1x、2x、3x
  • 60pt 1x、2x、3x
  • 76pt 1x、2x
  • 83.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
  • 83.5pt 2x
  • 1024pt 1x

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

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

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