xcode bundle 无效——Info.plist 中的 CFBundleVersion 和 CFBundleShortVersionString 必须包含更高版本——但它们确实如此

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19367893/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:05:59  来源:igfitidea点击:

bundle is invalid -- CFBundleVersion and CFBundleShortVersionString in Info.plist must contain a higher version -- but they do

iosxcode

提问by Joel Derfner

In trying to validate my app in preparation for submission to the app store, I get the following errors:

在尝试验证我的应用程序以准备提交到应用程序商店时,我收到以下错误:

enter image description here

在此处输入图片说明

But here's a screenshot of my Info.plist, which the error messages claim list version 1.0, showing version 1.4.

但这是我的 Info.plist 的屏幕截图,错误消息声称列表版本为 1.0,显示版本为 1.4。

Info.plist

信息表

What am I doing wrong, and how can I fix this?

我做错了什么,我该如何解决?

采纳答案by Joel Derfner

Turns out this is a duplicate of CFBundleVersion in the Info.plist Upload Error. I followed the advice in the second answer--deleting the archives--and everything turned out fine.

原来这是Info.plist Upload ErrorCFBundleVersion的重复。我遵循了第二个答案中的建议——删除档案——一切都很好。

回答by Kevin

Apple considers each version level (.-separated) as a separate integer, so your old version is major 1, minor 134. That's probably not what you intended (1.1.3.4?), but you're stuck with it. I believe you will need to pick a version with either major > 1 (2.0) or minor > 134 (1.135).

Apple 将每个版本级别(.-separated)视为一个单独的整数,因此您的旧版本是主要 1,次要 134。这可能不是您想要的(1.1.3.4?),但您坚持使用它。我相信您需要选择一个主要 > 1 (2.0) 或次要 > 134 (1.135) 的版本。

1.0 < 1.1 < 1.2 < 1.134 < 1.135 < 1.1234 < 2.0
Major 1
   Minor 0   
   Minor 1   
   Minor 2   
   Minor 134   
   Minor 135
   Minor 1234
Major 2
   Minor 0

回答by Jordan Montel

Change 1.1310by 1.135or a number higher than 1.134(1.1341will work)

更改1.1310通过1.135或数高于1.1341.1341将工作)

You need to have a bundle version higher than the last one. Modify the key Bundle versions string, shortand Bundle version.

您需要有一个比上一个更高的捆绑版本。修改密钥Bundle versions string, shortBundle version

Furthermore, be careful of the first warning and add an Icon with the size 120x120.

此外,请注意第一个警告并添加一个大小为 120x120 的图标。

回答by holierthanthou84

The simple thing is you have to Archive the project again. Products > Archive and then Validate.

简单的事情是您必须再次存档项目。产品 > 存档,然后验证。