Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

CFBundleShortVersionString & CFBundleVersion

I have found the documentation for these two keys at: [Property List Key Reference|http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeC onfig/Articles/PListKeys.html#//apple_ref/doc/uid/20001431-102364]

The documentation for CFBundleShortVersionString says:

CFBundleShortVersionString

CFBundleShortVersionString (String) specifies the release version number of the bundle, which identifies a released iteration of the application. The release version number is a string comprised of three period-separated integers. The first integer represents major revisions to the application, such as revisions that implement new features or major changes. The second integer denotes revisions that implement less prominent features. The third integer represents maintenance releases.

The value for this key differs from the value for “CFBundleVersion,” which identifies an iteration (released or unreleased) of the application.


The documenation for CFBundleVersion says:

CFBundleVersion

CFBundleVersion (String) specifies the build version number of the bundle, which identifies an iteration (released or unreleased) of the bundle. This is a monotonically increased string, comprised of one or more period-separated integers. This key is not localizable.


So, let's says that the version of my application is 4.5.3r1045 where the number after the r is the build number.

If I understand the documentation correctly, the recommended way for me to assign the values for these two keys would be:

<key>CFBundleShortVersionString</key>
<string>4.5.3</string>

<key>CFBundleVersion</key>
<string>1045</string>

...correct?

It would not be correct to do:

<key>CFBundleShortVersionString</key>
<string>4.5.3</string>

<key>CFBundleVersion</key>
<string>4.5.3r1045</string>

...correct?

Thank you.

MacBook Pro, Mac OS X (10.5.6)

Posted on Aug 24, 2009 6:34 AM

Reply
3 replies

Aug 24, 2009 11:50 AM in response to K T

So, according to your picture, the correct way to setup the values for these keys would be to do:

<key>CFBundleShortVersionString</key>
<string>4.5.3</string>

<key>CFBundleVersion</key>
<string>1045</string>

This seems to match what TextEdit is doing which has:

<key>CFBundleShortVersionString</key>
<string>1.5</string>

<key>CFBundleVersion</key>
<string>244</string>

and not make CFBundleVersion <string>4.5.3r1045</string>

CFBundleShortVersionString & CFBundleVersion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.