Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25053] iOS: Add a property to get the CFBundleVersion

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsios
ReporterLuc-Edmond Gaspard
AssigneeUnknown
Created2017-07-03T16:17:46.000+0000
Updated2018-02-28T19:55:21.000+0000

Description

It would be useful to have a property that returns the CFBundleVersion. Sort of like Ti.App.Android.appVersionCode does for Android.

Comments

  1. Hans Knöchel 2017-07-03

    When you specify 1.0.0.3 in your <version /> inside tiapp.xml, doesn't that already give the correct value with Ti.App.getVersion(). The discrepancy between CFBundleShortVersionString and CFBundleVersion should only be that CFBundleVersion is contains the full version (e.g. 1.0.0.3) and CFBundleShortVersionString the readable version (e.g. 1.0.0). During build, when specifying 1.0.0.3 for example, Ti.App.getVersion() will give you that value I guess. Can you try it out and provide feedback?
  2. Luc-Edmond Gaspard 2017-07-04

    I'm using a custom CFBundleVersion, that is not in the x.y.z format.

JSON Source