Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25738] iOS: Apple watch simulator not launching

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-02-05T13:07:23.000+0000
Affected Version/sRelease 7.0.2
Fix Version/sRelease 7.0.2
ComponentsiOS
Labelsn/a
ReporterVictor Vazquez Montero
AssigneeChris Barber
Created2018-01-31T21:25:33.000+0000
Updated2018-02-07T16:34:25.000+0000

Description

Running watch apps in the simulator doesn't work in Titanium 7.0.2 RC. Adding the --launch-watch-app option to an appc run command is supposed to launch a watch simulator with the watch app, but the watch simulator never launches. Below is the output; you can see the watch simulator is named null. This is increasingly urgent for us; we have been waiting for 7.0.2 to even be able to package the watch app. We haven't been able to ship an update to our app for many weeks now. We can't afford to have this drag out, so any workaround would be appreciated.
[INFO] Launching iOS Simulator 
[TRACE] [ioslib] Found watchOS 4.2 app: com.stinkbot.iphone.newsoverwireless.wral.watchapp 
[TRACE] [ioslib] Selected iOS Simulator: iPhone X 
[TRACE] [ioslib] UDID = 20EA5051-FC74-4466-988A-935CBE842658 
[TRACE] [ioslib] iOS = 11.2 
[TRACE] [ioslib] Selected watchOS Simulator: Apple Watch Series 2 - 38mm 
[TRACE] [ioslib] UDID = 2EA7ABC8-A547-4AFC-8ECF-A48F7B70BFB8 
[TRACE] [ioslib] watchOS = 4.2 
[TRACE] [ioslib] Autoselected Xcode: 9.2 
[TRACE] [ioslib] iOS and watchOS simulators already paired and active 
[TRACE] [ioslib] Checking if the simulator /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator is already running 
[TRACE] [ioslib] Simulator is running (pid 65469) 
[TRACE] [ioslib] Waiting for simulator to boot... 
[TRACE] [ioslib] Simulator is booted! 
[TRACE] [ioslib] iPhone X Simulator already running with the correct UDID 
[TRACE] [ioslib] Tailing iPhone X Simulator system log: /Users/ian/Library/Logs/CoreSimulator/20EA5051-FC74-4466-988A-935CBE842658/system.log 
[TRACE] [ioslib] Checking if the simulator null is already running 
[TRACE] [ioslib] Simulator is not running 
[TRACE] [ioslib] Tailing Apple Watch Series 2 - 38mm Simulator system log: /Users/ian/Library/Logs/CoreSimulator/2EA7ABC8-A547-4AFC-8ECF-A48F7B70BFB8/system.log 
[TRACE] [ioslib] Running: null -CurrentDeviceUDID 2EA7ABC8-A547-4AFC-8ECF-A48F7B70BFB8

Comments

  1. Eric Merriman 2018-01-31

    [~ewieber] Can you try to reproduce this?
  2. Eric Wieber 2018-01-31

    I am able to reproduce this issue with the same logs as provided. [~fmiao], this is the ioslib issue we encountered
  3. Chris Barber 2018-02-01

    ioslib 1_6_X PR: https://github.com/appcelerator/ioslib/pull/74 Xcode 9 combined both the iOS Simulator and Watch Simulator into a single "Simulator" app. It runs each simulator in a different window, each simulator with their own system.log file. Furthermore, the system.log files do not appear to include any installation messages so we can't tail for when the app is installed, however the call to simctl install just happens to be blocking until the app is installed in both the iOS simulator and the Watch simulator, so now we don't have to wait for the app to be installed, just wait for simctl install to finish.
  4. Chris Barber 2018-02-01

    Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/9792 Ti SDK 7_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/9793
  5. Eric Wieber 2018-02-02

    FR Passed. I am able to launch projects with watch apps without issue. Tested by creating several different projects with watch apps, building them with different options, and seeing that each launched as expected
  6. Eric Wieber 2018-02-07

    Verified in SDK builds 7.0.2.v20180205145048 & 7.1.0.v20180205203710

JSON Source