Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CFBundleVersion must be higher than previous version

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

iTunes Connect Screenshot

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

enter image description here

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>

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>

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.

What am I missing?

like image 381
Kenny Wyland Avatar asked Mar 17 '12 23:03

Kenny Wyland


4 Answers

FYI. Apple thinks 1.11 > 1.2, so if you are going from 1.11 to 1.2 you need to go all the way to 1.20.

Enjoy.

like image 102
Michael Wilson Avatar answered Nov 20 '22 00:11

Michael Wilson


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.

enter image description here

like image 30
Kenny Wyland Avatar answered Nov 19 '22 22:11

Kenny Wyland


Same thing happened to me. My current App Store version was 2.03. I attempted to upload 2.1. All I had to do was change it to 2.10 and it worked.

like image 24
John MacAdam Avatar answered Nov 19 '22 23:11

John MacAdam


Increasing the CFBundleShortVersionString or "Bundle versions string, short" did the Job for me.

like image 5
Ammar Mujeeb Avatar answered Nov 19 '22 22:11

Ammar Mujeeb