{ "id": "167605", "key": "TIMOB-24691", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-13T03:49:46.000+0000", "created": "2017-05-12T21:25:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-05-15T18:04:27.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": "10207", "name": "Tooling" } ], "description": "When you run a build where the selected SDK differs from the one in the tiapp.xml, it forks the correct sdk build command. However, if you specify the platform as {{\\-p}} instead of {{\\-\\-platform}}, it doesn't define {{platform}} and thus the platform is never injected into the forked command arguments.\r\n\r\nSince Studio always passes in {{\\-\\-platform}}, this really only affects CLI users. When {{\\-\\-platform}} is not set in the forked command args, it will simply prompt for the platform (or error and exit if prompting is disabled).", "attachment": [], "flagged": false, "summary": "Forked correct SDK command args doesn't resolve platform when using short flag", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 890, "state": "closed", "name": "2017 Sprint 10 Tooling", "startDate": "2017-05-08T00:27:34.394Z", "endDate": "2017-05-22T00:27:00.000Z", "completeDate": "2017-05-22T02:42:47.719Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "419642", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/9059\r\nTiSDK 6_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/9060", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-05-12T21:45:21.000+0000", "updated": "2017-05-12T21:45:21.000+0000" }, { "id": "419702", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test:\r\n\r\n1. Set the selected SDK to the version containing this fix\r\n2. Set the {{}} in the {{tiapp.xml}} to any other version\r\n3. Run {{appc run \\-p ios}} or any other platform (the key is you MUST use the {{\\-p}} switch instead of {{\\-\\-platform}})\r\n\r\nNear the top of the output you should see \"Forking correct SDK command:\" followed by the command and its arguments about to be spawned. Notice that {{\\-p}} will have been replaced with {{\\-\\-platform }}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-05-15T17:46:39.000+0000", "updated": "2017-05-15T17:47:36.000+0000" }, { "id": "419708", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Node Version: 6.10.1\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.2-master.7\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK Select version: 6.0.4.GA\r\nTitanium SDK tiapp.xml version: 6.1.0.v20170514022959\r\nXcode 8.3.2\r\n\r\nI followed the instructions in Chris Barber's comment, and validated the fix. I did see \"Forking correct SDK command\", and saw the --platform printed in the output.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-15T18:04:12.000+0000", "updated": "2017-05-15T18:04:12.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }