问题描述
我正在提交对我的一个应用程序的更新.我已经用我开发的许多不同的应用程序做了几十次,但由于某种奇怪的原因,这个失败了.我存档我的应用程序,然后尝试验证存档并收到以下错误消息:
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:
此捆绑包无效.Info.plist 文件中的关键 CFBundleVersion 必须包含比之前上传的版本更高的版本.
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 必须高于之前的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!