{ "id": "114387", "key": "TIMOB-13869", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-03-30T21:22:15.000+0000", "created": "2013-05-15T11:36:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ft" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "41227", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "80536", "key": "TIMOB-5349", "fields": { "summary": "Packaged applications have bundle ID appended to version number.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-30T21:23:07.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "If specifying a version including a build number as well, ie in tiapp.xml:\r\n{code:xml}1.2.3.1000{code}\r\n\r\nWhen building the project with 'titanium build', the Info.plist that gets generated will only contain a maximum of 3 groups, ie:\r\n{code:xml}CFBundleShortVersionString\r\n1.2.3\r\nCFBundleVersion\r\n1.2.3{code}\r\n\r\nIn fact the resulting plist should contain something like:\r\n{code:xml}CFBundleShortVersionString\r\n1.2.3\r\nCFBundleVersion\r\n1.2.3.1000{code}\r\n\r\nThis is useful to identify the build number in the final installed app.\r\n\r\nThis can be fixed in: iphone/cli/commands/_build.js\r\n{code:javascript}plist.CFBundleVersion = appc.version.format(this.tiapp.version, 3, 3);{code}\r\n\r\nshould in fact be:\r\n{code:javascript}plist.CFBundleVersion = appc.version.format(this.tiapp.version, 3, 4);{code}", "attachment": [], "flagged": false, "summary": "CLI: Version in tiapp.xml is stripped to a maximum of 3 dot separated groups", "creator": { "name": "mihaibojin", "key": "mihaibojin", "displayName": "Mihai Bojin", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "mihaibojin", "key": "mihaibojin", "displayName": "Mihai Bojin", "active": true, "timeZone": "Europe/London" }, "environment": "3.0.2, 3.1.0", "comment": { "comments": [ { "id": "256172", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@Mihai, we strip the version to 3 numbers based on the requirements defined by Apple. They explicitly state:\n\n{quote}\nThe build version number should be a string comprised of three non-negative, period-separated integers with the first integer being greater than zero. The string should only contain numeric (0-9) and period (.) characters. Leading zeros are truncated from each integer and will be ignored (that is, 1.02.3 is equavalent to 1.2.3). This key is not localizable.\n{quote}\n\nLink: https://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-102364-TPXREF106\n\nI could add a CLI config setting that allows you to override this or possibly just allow it for non-distribution/production builds, but I guess I don't fully understand why it matters setting it in the CFBundleVersion. You can set whatever version you want in the tiapp.xml and it'll show up identically in the Ti.app.version property.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-06-05T17:50:11.000+0000", "updated": "2013-06-05T17:50:11.000+0000" }, { "id": "277574", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Awaiting better guidance on how to solve this. Bumping to 3.2.1.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-31T21:25:56.000+0000", "updated": "2013-10-31T21:25:56.000+0000" }, { "id": "302774", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Out of bandwidth for 3.3.0. Bumping to next version.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-28T19:54:51.000+0000", "updated": "2014-04-28T19:54:51.000+0000" }, { "id": "318130", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] believes this might be fixed with 3.3.0. Can we confirm?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-12T03:46:25.000+0000", "updated": "2014-08-12T03:46:25.000+0000" }, { "id": "319484", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "With 3.3.0.GA, the CFBundleVersion preserves the four version parts. Here's what I did:\r\n\r\n1. Used {{ti create}} to create a new Classic project\r\n2. Edited the tiapp.xml to set version number to 1.2.3.1000\r\n3. Built for the iOS simulator\r\n4. Opened build/iphone/Info.plist, which shows:\r\n\r\n{code}\r\nCFBundleVersion\r\n1.2.3.1000\r\nCFBundleShortVersionString\r\n1.2.3\r\n{code}\r\n\r\n", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-08-20T15:25:14.000+0000", "updated": "2014-08-20T15:25:14.000+0000" }, { "id": "416390", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T21:21:20.000+0000", "updated": "2017-03-30T21:22:52.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }