Info.plist 上传错误中的 CFBundleVersion [英] CFBundleVersion in the Info.plist Upload Error
问题描述
"您上传的二进制文件无效.Info.plist 文件必须包含比之前上传的版本."
"The binary you uploaded was invalid. The key CFBundleVersion in the Info.plist file must contain a higher version than that of the previously uploaded version."
我在上传应用程序时遇到此错误.
I’m getting this error when I come to upload my application.
我在 iTunes Connect 上将更新版本设置为 1.2,并将 .plist
文件更新为 1.2.
I set the updated version to 1.2 on iTunes Connect and have also updated the .plist
file to 1.2.
我不明白为什么会收到此错误.任何帮助,将不胜感激.谢谢.
I don’t understand why I am getting this error. Any help would be appreciated. Thanks.
推荐答案
Apple 的上传服务器中至少有 1 个已知 bug 超过 12 个月没有修复.注意事项:
There's at least 1 known bug in Apple's upload server that they've not fixed for more than 12 months. Things to beware of:
- Apple 删除版本号内的所有前导零;即整个字符串"不被视为数字,而是点之间的位被视为单独的数字.例如Apple 将1.02"视为1.2".所以,对于 Apple 来说,1.02 比 1.1 大
- Apple 有时会感到困惑",并且似乎会将您上传的应用与您之前上传的不同应用的版本进行比较.很多人都遇到过这种情况,我自己也见过几次
- Apple 应该比较CFBundleVersion"(即Bundle 版本"而不是Bundle 版本字符串,短");不要混淆.
- 通常,唯一可行的解决方案是增加前面的数字(例如,2.4"中的2"——将其增加到3")
- 您上传的版本号与 iTunes 中显示的版本号无关 - 您可以在其中放置任何您想要的内容,这就是您的用户将看到的内容
- ...除了,如果您还在应用程序中报告实际"版本号,用户将看到 CFBundleVersion(通常取决于您如何编码),而不是 iTunes 版本(我认为 - 不能可从您的应用内部访问)
这篇关于Info.plist 上传错误中的 CFBundleVersion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!