iOS app update - CFBundleShortVersionString and CFBundleVersion

You must Login before you can answer or comment on any questions.

My currect iOS app in Appstore market has follwing bundle Versions.

CFBundleVersion 10301 CFBundleShortVersionString 1.3.0

Im going to update my app this week and my version # are

CFBundleVersion 2.1.7 CFBundleShortVersionString 2.1.7

My doubt here is

Current CFBundleVersion 10301 New CFBundleVersion 2.1.7

is this correct?

Can I change the format of CFBundleVersion in my new version?

1 Answer

If you want a quick and dirty fix, in Tiapp.xml, make your version 20107.

In the TiApp.py file of the SDK version you are currently using, around line 460 or so, change:

app_version_ = CFBundleShortVersionString.split('.')

to

app_version_ = CFBundleShortVersionString.split('0')

That will split your nonstandard build number on the 0 instead of on the . (which, btw does not match Apple's own recomendations regarding CFBundleVersion

Your client used a non-standard, large value in a previous submission.

— answered 10 months ago by Stephen Feather
answer permalink
2 Comments
  • in 2.1.1GA will be lines 544, and 553 if it works.

    Other option, is to make the lines that look like this:

    CFBundleShortVersionString = app_version_[0]+'.'+app_version_[1]+'.'+app_version_[2]

    into this

    CFBundleShortVersionString = '2.1.7'

    to get it released.

    — commented 10 months ago by Stephen Feather

  • This code snippet in tiapp.xml will solve your problem with 2.1.1GA (tested). Anyone else reading, this is a unique fix to his situation. It splits the 5 char numeric on the ZEROS to build his required CFBundleShortVersionString

    CFBundleShortVersionString = self.properties['version']
    app_version_ = CFBundleShortVersionString.split('0')
    if(len(app_version_) > 2):
        CFBundleShortVersionString = app_version_[0]+'.'+app_version_[1]+'.'+app_version_[2]
    plist = st + CFBundleShortVersionString + fn
    Remember you are editing python, and its picky about its spacing.

    — commented 10 months ago by Stephen Feather

Your Answer

Think you can help? Login to answer this question!