简体   繁体   English

收到一个非常奇怪的错误,指出“程序包中的Info.plist必须包含CFBundleShortVersionString键。”

[英]Receiving a very strange error stating “The Info.plist in the package must contain the CFBundleShortVersionString key.”

When I built and compressed my app for submitting for Apple's review, I am displayed with the warning: 构建并压缩要提交供Apple审查的应用程序时,显示警告:

The Info.plist in the package must contain the CFBundleShortVersionString key.

This is not contained in my Info.plist. 这没有包含在我的Info.plist中。 Any help on how I can fix this? 任何有关如何解决此问题的帮助?

The CFBundleShortVersionString in your Info.plist identifies the version string for your app, such as 1.0 or 3.5.1. Info.plist中的CFBundleShortVersionString标识应用程序的版本字符串,例如1.0或3.5.1。 As your error implies, it is required in the Info.plist. 如您的错误所示,在Info.plist中是必需的。

Simply open your project's Info.plist, choose Add Row, and enter CFBundleShortVersionString , which may change to "Bundle versions string, short". 只需打开项目的Info.plist,选择Add Row,然后输入CFBundleShortVersionString ,它可能会变为“ Bundle version string,short”。 Set the type to String and the value to a version identifier for your app; 将类型设置为字符串,将值设置为应用程序的版本标识符; use 1.0 if it's the first version. 如果是第一个版本,请使用1.0。 Now re-archive. 现在重新存档。

Info.plist条目

You should also be able to change the version string by going to the General tab of your target in Xcode. 您还应该能够通过在Xcode中转到目标的“常规”选项卡来更改版本字符串。 目标>常规>版本

Swift3 迅捷3

Add Bundle versions string, short to info.plist like this Image: Bundle versions string, short添加到info.plist如下图所示:

在此处输入图片说明

I had a similar problem and it turns out that Xcode wiped out the build number in an app extension I created. 我遇到了类似的问题,事实证明Xcode清除了我创建的应用扩展程序中的内部版本号。 If you have any app extensions make sure that the version and build number are present. 如果您有任何应用程序扩展名,请确保存在版本和内部版本号。

暂无
暂无

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

相关问题 错误:包中的 Info.plist 必须包含 CFBundleIdentifier 键 - Error: The Info.plist in the package must contain the CFBundleIdentifier key 错误ITMS-90642:“缺少Info.plist密钥。 您应用的info.plist必须包含“MSMessagesExtensionStoreIconName”键。“ - ERROR ITMS-90642: “Missing Info.plist Key. Your app's info.plist must contain the 'MSMessagesExtensionStoreIconName' key.” Info.plist 文件中的密钥 CFBundleShortVersionString [3.0.0] 的值必须包含比先前批准的版本更高的版本 - The value for key CFBundleShortVersionString [3.0.0] in the Info.plist file must contain a higher version than that of the previously approved version 错误 ITMS-90513:缺少 Info.plist 键。 您的应用程序的 Info.plist 必须包含“TVTopShelfImage.TVTopShelfPrimaryImageWide”键 - ERROR ITMS-90513: Missing Info.plist Key. Your app's Info.plist must contain the 'TVTopShelfImage.TVTopShelfPrimaryImageWide' key Phonegap - 包中的 Info.plist 必须包含 CFBundleVersion 键 - Phonegap - The Info.plist in the package must contain the CFBundleVersion key bundle无效 - Info.plist中的CFBundleVersion和CFBundleShortVersionString必须包含更高版本 - 但它们确实 - bundle is invalid — CFBundleVersion and CFBundleShortVersionString in Info.plist must contain a higher version — but they do info.plist 中的 CFBundleShortVersionString 必须高于 1.0 - CFBundleShortVersionString in info.plist must be higher than 1.0 应用程序的 Info.plist 必须包含 NSMotionUsageDescription 键 - The app's Info.plist must contain an NSMotionUsageDescription key 应用的 Info.plist 必须包含一个 NSContactsUsageDescription 键 - The app's Info.plist must contain an NSContactsUsageDescription key 错误ITMS-90363“无效的Info.plist密钥。 …包中的密钥“ CFBundleIcons〜iPad无效。” - ERROR ITMS-90363 “Invalid Info.plist key. The key 'CFBundleIcons~iPad in bundle … is invalid.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM