[TIMOB-18843] CLI: Watchkit build flags in not picking up
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-28T22:14:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.0.0 |
Components | iOS |
Labels | cli, extension, ioslib, watchkit |
Reporter | Mads Moller |
Assignee | Chris Barber |
Created | 2015-04-20T10:12:33.000+0000 |
Updated | 2015-09-01T22:55:36.000+0000 |
Description
I cannot get the watchkit PR to work:
https://github.com/jonalter/ioslib/commit/5538c3f63eaca61c54566dd1b0efbf36a8ba012a
It 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
Im using this command:
ti build --platform=ios --target=simulator --device-family=iphone --launch-watch-app -C ?
Ive manually added a debug statement to get all options in the console in ioslib simulator.js line 419.
emitter.emit('log-debug', JSON.stringify(options));
which shows the watchkit flags are not there:
{
"appName": "MYAPP",
"appPath": "/Titanium/MYAPP/build/iphone/build/Debug-iphonesimulator/MYAPP.app",
"focus": true,
"logFilename": "838180a4-7cff-48f8-8bdb-294b35e941be.log",
"killIfRunning": true
}
Im not sure if im missing a step, but I cannot get this to work.
Side note:
It works if I hardcode a flag in the ioslib simulator.js file - thats all good.
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.
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.
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. Tested on: Appc CLI NPM: 4.2.0-1 Appc CLI Core: 5.0.0-33 Arrow: 1.2.52 SDK: 5.0.0.v20150901105514 Node: v0.10.38 OS: Yosemite (10.10.5) Xcode: 7 beta 6 Device: iphone simulator 6 (9.0), watchkit simulator (42mm)