{ "id": "168745", "key": "TIMOB-25053", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-07-03T16:17:46.000+0000", "priority": null, "labels": [ "ios" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:21.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "It would be useful to have a property that returns the CFBundleVersion. Sort of like Ti.App.Android.appVersionCode does for Android.", "attachment": [], "flagged": false, "summary": "iOS: Add a property to get the CFBundleVersion", "creator": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "environment": null, "comment": { "comments": [ { "id": "423411", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "When you specify 1.0.0.3 in your {{}} 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?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-03T19:16:34.000+0000", "updated": "2017-07-03T19:16:34.000+0000" }, { "id": "423453", "author": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "body": "I'm using a custom CFBundleVersion, that is not in the x.y.z format.\r\n", "updateAuthor": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "created": "2017-07-04T15:16:32.000+0000", "updated": "2017-07-04T15:16:32.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }