简体   繁体   English

缺少 Info.plist 值 - 缺少 Info.plist 键“CFBundleIconName”的值

[英]Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing

When submitting my app to the App Store I receive this email:将我的应用程序提交到 App Store 时,我收到此 email:

TMS-90713: Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle '...'. TMS-90713:缺少 Info.plist 值 - 捆绑包“...”中缺少 Info.plist 键“CFBundleIconName”的值。 Apps built with iOS 11 or later SDK must supply app icons in an asset catalog and must also provide a value for this Info.plist key.使用 iOS 11 或更高版本 SDK 构建的应用程序必须在资产目录中提供应用程序图标,并且还必须为此 Info.plist 键提供值。 For more information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7 .有关更多信息,请参阅http://help.apple.com/xcode/mac/current/#/dev10510b1f7

I've tried everything in this post: Missing CFBundleIconName in Xcode9 iOS11 app release我已经尝试了这篇文章中的所有内容: Xcode9 iOS11 应用程序版本中缺少 CFBundleIconName

  • I have an Asset from the beginning of the project (it was a Template).我从项目开始就有一个资产(它是一个模板)。
  • The bundle key is in the info.plist.捆绑包密钥在 info.plist 中。
  • The value of the key is the same that the name of the catalog.键的值与目录的名称相同。
  • I have the asset selected in building settings.我在建筑设置中选择了资产。
  • I have the Target Membership checked.我检查了目标会员资格。

I'm using XCode 13.1 and MacBook Air M1 2020我正在使用 XCode 13.1 和 MacBook Air M1 2020

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述 在此处输入图像描述

As matt mentioned in comments:正如马特在评论中提到的:

In Xcode 13 this is configured with a build setting, not by editing the Info.plist file directly.在 Xcode 13 中,这是使用构建设置配置的,而不是通过直接编辑 Info.plist 文件。

I had it set in both locations due to the instructions in this post: Missing CFBundleIconName in Xcode9 iOS11 app release由于这篇文章中的说明,我在两个位置都设置了它: Xcode9 iOS11 应用程序版本中缺少 CFBundleIconName

I removed the info.plist key 'CFBundleIconName' and keep only the Build Settings and I could upload the archive with out any error.我删除了info.plist键 'CFBundleIconName' 并只保留了构建设置,我可以上传存档而不会出现任何错误。

I tried most of the answers like我尝试了大多数答案,例如

But none of the got worked, So what I did was, I just upgraded the react-native version from 0.68.1 -> 0.68.2 and also created a new react-native app using the same project name and copied the ios folder blindly.但是没有任何工作,所以我所做的是,我只是将 react-native 版本从 0.68.1 -> 0.68.2 升级,还使用相同的项目名称创建了一个新的 react-native 应用程序,并盲目地复制了 Z9E304D4E8DF1B74CFAZAB009928 文件夹。 This fixed my issue and later I applied the custom changes from the previous code.这解决了我的问题,后来我应用了之前代码的自定义更改。

During the copy, I found the following changes in ios/<project_name>.xcodeproj/project.pbxproj file.在复制过程中,我在 ios/<project_name>.xcodeproj/project.pbxproj 文件中发现了以下变化。 These changes made the fix for me这些更改为我解决了问题

ios/<项目名称>.xcodeproj/project.pbxproj

ios/<项目名称>.xcodeproj/project.pbxproj

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM