[英]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. 现在重新存档。
You should also be able to change the version string by going to the General tab of your target in Xcode. 您还应该能够通过在Xcode中转到目标的“常规”选项卡来更改版本字符串。
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.