{ "id": "120622", "key": "TIMOB-15411", "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": [ { "id": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-03T07:21:20.000+0000", "created": "2013-09-30T14:52:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "cli", "module_cli", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-07-31T18:27:37.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" } ], "attachment": [], "flagged": false, "summary": "CLI: 3.2.0 version doesn't take the arguments in account if the sdk in config is different from the one in tiapp.xml", "creator": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium CLI 3.2.0 \r\nTitanium SDK 3.2.0.v20130927153242", "comment": { "comments": [ { "id": "274097", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I'm aware of the issue and have fixed it, but the PR is pending. You may want to wait on using the master 3.2 branch until it becomes more stable.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-07T23:01:33.000+0000", "updated": "2013-10-07T23:01:33.000+0000" }, { "id": "275835", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:40:39.000+0000", "updated": "2013-10-19T01:40:39.000+0000" }, { "id": "279008", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-11T20:37:52.000+0000", "updated": "2013-11-11T20:38:38.000+0000" }, { "id": "279117", "author": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "body": "I am not sure why this is closed. Although the app launched on device the SDK used is not correct, IMO\r\n\r\n~~~\r\ntiapp.xml set to 3.1.3.GA, but current Titanium SDK set to 3.2.0.v20131110134044\r\n[INFO] Forking correct SDK command: \"/usr/local/bin/node\" \"/usr/local/bin/ti\" \"build\" \"--sdk\" \"3.1.3.GA\"\r\n~~~\r\n\r\nsurely the CLI argument i.e. --sdk \"3.2.0 v20131110134044\" should override the tiapp.xml value.", "updateAuthor": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-12T11:30:45.000+0000", "updated": "2013-11-12T11:30:45.000+0000" }, { "id": "279158", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ndastur] did not mean to close it. keep watching :)\n{code}\n ti config\n{code}\n{code}\napp.sdk = \"3.1.3.GA\nsdk.selected = \"3.2.0.v20131111174605\"\n{code}\n{code}\nInstalled SDKs:\n 3.2.0.v20131111174605 [selected] /Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131111174605\n{code}\n{code}\nti build -p android --target device\n{code}\n{code}\n[INFO] Packaging application: /Users/oromero/Documents/Android/android-sdk-macosx/build-tools/19.0.0/aapt \"package\" \"-f\" \"-m\" \"-J\" \"/Users/oromero/Documents/Titanium_Studio_Workspace2/wils/build/android/gen\" \"-M\" \"/Users/oromero/Documents/Titanium_Studio_Workspace2/wils/build/android/AndroidManifest.xml\" \"-A\" \"/Users/oromero/Documents/Titanium_Studio_Workspace2/wils/build/android/bin/assets\" \"-S\" \"/Users/oromero/Documents/Titanium_Studio_Workspace2/wils/build/android/res\" \"-I\" \"/Users/oromero/Documents/Android/android-sdk-macosx/platforms/android-19/android.jar\" \"-I\" \"/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131111174605/android/titanium.jar\" \"-F\" \"/Users/oromero/Documents/Titanium_Studio_Workspace2/wils/build/android/bin/app.ap_\"\n{code}\n\n{code}\n[INFO] Signing apk: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jarsigner \"-sigalg\" \"MD5withRSA\" \"-digestalg\" \"SHA1\" \"-keystore\" \"/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131111174605/android/dev_keystore\" \"-storepass\" \"*******\" \"-signedjar\" \"/Users/oromero/Documents/Titanium_Studio_Workspace2/wils/build/android/bin/wils.apk\" \"/Users/oromero/Documents/Titanium_Studio_Workspace2/wils/build/android/bin/app-unsigned.apk\" \"tidev\"\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-12T18:23:23.000+0000", "updated": "2013-11-12T18:23:23.000+0000" }, { "id": "281561", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] let me know if any changes made. Thanks.\nCLI 3.2.0-alpha3\n\nSame result as an original report.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T00:09:26.000+0000", "updated": "2013-11-27T00:09:26.000+0000" }, { "id": "282076", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Changing this back to fixed. --sdk does NOT override the tiapp.xml's . The --sdk specifies the Titanium SDK being used to bootstrap the build, not the actual build. The in the tiapp.xml ALWAYS wins. Maybe someday we'll add a --sdk-version command line option, but until then, this is working as designed.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-03T07:21:20.000+0000", "updated": "2013-12-03T07:21:20.000+0000" }, { "id": "282098", "author": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "body": "Chris, thanks for the clarification. But I think this might be \"bad\" design in that case. Maybe I don't understand the build process well enough. But what is the point of bootstrapping to a different SDK version.\r\n\r\nAlso without the CLI override for the build SDK the user has to do a sed (or equivalent) on tiapp.xml in order to use different SDKs. Surely this makes testing with RCs etc all the more difficult and in the long run means Appcelerator lose out on valuable feedback because they have made the process difficult?", "updateAuthor": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "created": "2013-12-03T10:52:22.000+0000", "updated": "2013-12-03T10:52:22.000+0000" }, { "id": "282143", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~ndastur] It's not bad design. With Titanium 3, we introduced a central \"titanium\" entry point that didn't exist before. Pre-3.0, you would directly invoke the builder.py. Now that we have the Titanium CLI as the global entry point, it cannot be responsible for knowing how to build an app.\n\nSo you must select a Titanium SDK that knows how to build an app as well as determine if it's the right version to be used to build the app. For example, if 3.2.0 is your selected SDK, then when you build a 3.1.3.GA app, the 3.2.0 build script will read the tiapp.xml and determine it doesn't know how to build it, so it subprocesses a 3.1.3 build.\n\nThe second we expose a command line override of we will introduce potential issues. If you have a team working on an app written in 3.1.3, but one of the devs keeps building the app with 3.0.0, it's entirely possible they could encounter old bugs causing longer development times and less stable apps.\n\nThe way things are right now, it's easy for a team to be on the same page and tie your product to a Titanium SDK version that it was designed to run on.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-03T17:51:24.000+0000", "updated": "2013-12-03T17:51:24.000+0000" }, { "id": "303637", "author": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified as FIXED using :\r\nMac :10.9.2\r\nAppcelerator Studio, build: 3.3.0.201405011408\r\nSDK - 3.3.0.v20140505115416\r\nacs-1.0.14\r\nalloy-1.4.0-dev\r\nnpm-1.3.2\r\ntitanium-3.3.0-dev\r\ntitanium-code-processor-1.1.1\r\nXcode :5.1.1\r\n\r\n--sdk does NOT override the tiapp.xml's Hence closing this ticket as FIXED.", "updateAuthor": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-06T11:04:24.000+0000", "updated": "2014-05-06T11:04:24.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }