Skip to main content
Participant
June 22, 2013
Question

Setting the CFBundleVersion to display revisions properly on iOS

  • June 22, 2013
  • 1 reply
  • 1419 views

The current issue we are having is that we want to track build revision when we post to Testflight, etc.  The format on IOS would ideally be something like 1.0.1 (59) or 1.0.1.59 to indicate that this is rev59 of version 1.0.1.

This is calculated by services like TestFlight or Hockeynet as "CFBundleShortVersionString (CFBundleVersion)" for display.

The issue we are having is that no matter what we set the <versionLabel> key to in the app.xml the adt packager is *always* using the <versionNumber> key to set both the CFBundleVersion and CFBundleShortVersionString in the generated Info.plist on iOS.

The Air docs say that these are both reserved keys in the info.plist.

Is there any way to set those values independently or is this a bug in ADT?

There is another thread on the Flex forums with the same issue:

http://forums.adobe.com/message/4560647

Anyone?

This topic has been closed for replies.

1 reply

Inspiring
October 2, 2013

Did you ever figure this out? I get a similar problem. If I set both versionNumber & versionLabel in the application descriptor file to the same thing, CFBundleVersion will always be something different. For example, if both are set to 3.2.841 in the descriptor file, the CFBundleVersion will be 3.2.99 and the CFBundleShortVersionString will be 3.2.841 in the generated info.plist file. Is this a bug?

Inspiring
October 2, 2013

After running some tests it seems that if the versionNumber contains values that are more than 2 digits, it will produce the behavior I mentioned. I logged it as a bug:

Bug 3645373

https://bugbase.adobe.com/index.cfm?event=bug&id=3645373

bochen667Author
Participant
October 2, 2013

Well - you found out more than I did.  I chalked it up to yet another Air bug.