CFBundleVersion必须高于以前的版本 [英] CFBundleVersion must be higher than previous version

查看:478
本文介绍了CFBundleVersion必须高于以前的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm submitting an update to one of my apps. I've done this dozens of times with the many different apps I've developed, but this one is failing for some weird reason. I archive my app, then attempt to Validate the archive and get the following error message:

This bundle is invalid. The key CFBundleVersion in the Info.plist file must 
contain a higher version than that of the previously uploaded version.

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

iTunesConnect shows this app is currently at 1.0 and I've configured it to be ready to upload version 1.1 (screenshot with app icons redacted):

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

Here's a screenshot of my app target's summary info which shows the version and short version are both "1.1":

此处是来自Bundle Archive的Info.plist的上半部分:

Here is the top half of the Info.plist from the Bundle Archive:

<?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>

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

And here's the relevant piece of Info.plist from within the app within the Archive bundle:

<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>

我更新的应用程序中的所有版本号都说1.1,iTunesConnect表示期待1.1 ......但它正在抱怨数字是错误的。

All version numbers within my updated app say 1.1, iTunesConnect says it's expecting 1.1... but it's complaining that the number is wrong.

我缺少什么?

推荐答案

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

It turns out that I had some problem in my original submission which caused the user-visible version to be "1.0" but the internal bundle version to be "1.2". So I changed my new version to be 1.3 and 1.3 and the submission worked.

这篇关于CFBundleVersion必须高于以前的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆