![](/img/trans.png)
[英]Error: The Info.plist in the package must contain the CFBundleIdentifier key
[英]Receiving a very strange error stating “The Info.plist in the package must contain the CFBundleShortVersionString key.”
构建并压缩要提交供Apple审查的应用程序时,显示警告:
The Info.plist in the package must contain the CFBundleShortVersionString key.
这没有包含在我的Info.plist中。 任何有关如何解决此问题的帮助?
Info.plist中的CFBundleShortVersionString
标识应用程序的版本字符串,例如1.0或3.5.1。 如您的错误所示,在Info.plist中是必需的。
只需打开项目的Info.plist,选择Add Row,然后输入CFBundleShortVersionString
,它可能会变为“ Bundle version string,short”。 将类型设置为字符串,将值设置为应用程序的版本标识符; 如果是第一个版本,请使用1.0。 现在重新存档。
您还应该能够通过在Xcode中转到目标的“常规”选项卡来更改版本字符串。
我遇到了类似的问题,事实证明Xcode清除了我创建的应用扩展程序中的内部版本号。 如果您有任何应用程序扩展名,请确保存在版本和内部版本号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.