{ "id": "147090", "key": "TIMOB-18843", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-28T22:14:15.000+0000", "created": "2015-04-20T10:12:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cli", "extension", "ioslib", "watchkit" ], "versions": [], "issuelinks": [ { "id": "47348", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "145360", "key": "TIMOB-18633", "fields": { "summary": "iOS: Allow launching WatchKit apps on the simulator", "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": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-09-01T22:55:36.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I cannot get the watchkit PR to work:\r\nhttps://github.com/jonalter/ioslib/commit/5538c3f63eaca61c54566dd1b0efbf36a8ba012a\r\n\r\nIt seems that no matter if I add a --launch-watch-app flag this block of code is never used: https://github.com/appcelerator/ioslib/blob/master/lib/simulator.js#L420-L434\r\n\r\nIm using this command:\r\n{code}\r\nti build --platform=ios --target=simulator --device-family=iphone --launch-watch-app -C ?\r\n{code}\r\n\r\nIve manually added a debug statement to get all options in the console in ioslib simulator.js line 419. \r\n{code:js}\r\nemitter.emit('log-debug', JSON.stringify(options)); \r\n{code}\r\nwhich shows the watchkit flags are not there:\r\n\r\n{code:json}\r\n{\r\n \"appName\": \"MYAPP\",\r\n \"appPath\": \"/Titanium/MYAPP/build/iphone/build/Debug-iphonesimulator/MYAPP.app\",\r\n \"focus\": true,\r\n \"logFilename\": \"838180a4-7cff-48f8-8bdb-294b35e941be.log\",\r\n \"killIfRunning\": true\r\n}\r\n{code}\r\n\r\nIm not sure if im missing a step, but I cannot get this to work.\r\n\r\nSide note: \r\nIt works if I hardcode a flag in the ioslib simulator.js file - thats all good. ", "attachment": [], "flagged": false, "summary": "CLI: Watchkit build flags in not picking up", "creator": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "environment": "CLI 4.0.0-beta7, ioslib 2.0.15, Ti SDK 4.0.0.Beta3", "closedSprints": [ { "id": 450, "state": "closed", "name": "2015 Sprint 14 Tooling", "startDate": "2015-07-06T16:27:05.971Z", "endDate": "2015-07-18T01:27:00.000Z", "completeDate": "2015-07-20T17:26:13.268Z", "originBoardId": 121 }, { "id": 455, "state": "closed", "name": "2015 Sprint 15 Tooling", "startDate": "2015-07-20T16:26:19.926Z", "endDate": "2015-08-08T01:26:00.000Z", "completeDate": "2015-08-03T20:10:37.386Z", "originBoardId": 121 }, { "id": 442, "state": "closed", "name": "2015 Sprint 13 Tooling", "startDate": "2015-06-22T16:14:06.086Z", "endDate": "2015-07-04T01:14:00.000Z", "completeDate": "2015-07-07T18:27:38.223Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "351713", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is incorrectly marked as this work is currently happening on master. However, we will backport it to 4.0.0 if it is completed before GA.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-05T22:37:02.000+0000", "updated": "2015-05-05T22:37:02.000+0000" }, { "id": "358461", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The flags are working now, but there are some other bugs with watchkit apps: TIMOB-19270, TIMOB-19267, TIMOB-19271, TIMOB-19267, TIMOB-19272. I'm resolving this ticket.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-07-28T22:14:12.000+0000", "updated": "2015-07-28T22:14:12.000+0000" }, { "id": "362004", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified that the {{--launch-watch-app}} flag does launch the watch app on the watchkit simulator along with the iphone simulator.\r\n\r\nTested on:\r\n\r\nAppc CLI NPM: 4.2.0-1\r\nAppc CLI Core: 5.0.0-33\r\nArrow: 1.2.52\r\nSDK: 5.0.0.v20150901105514\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.5)\r\nXcode: 7 beta 6\r\nDevice: iphone simulator 6 (9.0), watchkit simulator (42mm)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-01T22:55:31.000+0000", "updated": "2015-09-01T22:55:31.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }