Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18843] CLI: Watchkit build flags in not picking up

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-07-28T22:14:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelscli, extension, ioslib, watchkit
ReporterMads Moller
AssigneeChris Barber
Created2015-04-20T10:12:33.000+0000
Updated2015-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.

Comments

  1. Ingo Muschenetz 2015-05-05

    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.
  2. Chris Barber 2015-07-28

    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.
  3. Wilson Luu 2015-09-01

    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)

JSON Source