CFBundleVersion必须高于以前的版本

Ken*_*and 36 xcode itunesconnect ios

我正在向我的某个应用提交更新.我已经用我开发的许多不同的应用程序完成了这几十次,但是这个应用程序因为一些奇怪的原因而失败了.我存档我的应​​用程序,然后尝试验证存档并获取以下错误消息:

This bundle is invalid. The key CFBundleVersion in the Info.plist file must 
contain a higher version than that of the previously uploaded version.
Run Code Online (Sandbox Code Playgroud)

iTunesConnect显示此应用目前为1.0,我已将其配置为准备上传1.1版(带有应用图标编辑的屏幕截图):

iTunes Connect屏幕截图

这是我的应用目标的摘要信息的屏幕截图,显示版本和短版本都是"1.1":

在此输入图像描述

以下是Bundle Archive中Info.plist的上半部分:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>AppStoreFileSize</key>
    <integer>20859080</integer>
    <key>ApplicationProperties</key>
    <dict>
        <key>ApplicationPath</key>
        <string>Applications/MyApp.app</string>
        <key>CFBundleIdentifier</key>
        <string>com.mydomain.myapp</string>
        <key>CFBundleShortVersionString</key>
        <string>1.1</string>
Run Code Online (Sandbox Code Playgroud)

这是Archive包中应用程序内的相关Info.plist:

<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
    <string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>1.1</string>
Run Code Online (Sandbox Code Playgroud)

我更新的应用程序中的所有版本号都说1.1,iTunesConnect说它预计会有1.1 ......但它抱怨这个数字是错误的.

我错过了什么?

小智 52

仅供参考.Apple认为1.11> 1.2,所以如果你从1.11升到1.2,你需要一直走到1.20.

请享用.

  • @Viktor:1.11*高于1.2.*这些不是数学数字*.每个组件分别进行比较,因此`1 == 1`但是`11> 2`. (30认同)
  • 这类似于"NSNumericSearch" (2认同)
  • @Josh为什么您认为11&gt; 2是愚蠢的?xD (2认同)

Ken*_*and 50

事实证明,我在原始提交中遇到了一些问题,导致用户可见版本为"1.0",但内部捆绑版本为"1.2".所以我将我的新版本改为1.3和1.3并且提交工作正常.

在此输入图像描述


小智 24

同样的事情发生在我身上.我目前的App Store版本是2.03.我试图上传2.1.我所要做的就是把它改成2.10然后就可以了.

  • 发生这种情况是因为忽略了前导零,因此您当前的版本实际上被解析为2.3 (8认同)

Amm*_*eeb 5

增加CFBundleShortVersionString或"Bundle versions string,short"为我做了Job.