Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19272] iOS build selects invalid simulator when building with watch app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-08-03T17:23:18.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsiOS, Tooling
Labelsqe-5.0.0, watchkit
ReporterChris Barber
AssigneeChris Barber
Created2015-07-28T22:11:10.000+0000
Updated2015-09-03T23:32:18.000+0000

Description

When building an app with a WatchKit 1 app (and probably WatchKit 2) with iOS 8.4 or 9.0 and ios.autoSelectDevice=true, it picks a simulator that doesn't support watch apps.
ti build -p ios -I 8.4 --launch-watch-app --force
[INFO]  Launching iOS Simulator
[TRACE] [ioslib] Found watchOS 1.0 app: com.appcelerator.testapp3.watchkitapp
[TRACE] [ioslib] Validating iOS Simulator UDID 222FCF0F-210B-4532-BA9A-6A2A2CE6CDD7
[TRACE] [ioslib] Found iOS Simulator UDID 222FCF0F-210B-4532-BA9A-6A2A2CE6CDD7
[ERROR] Error: Selected iOS Simulator with the UDID "222FCF0F-210B-4532-BA9A-6A2A2CE6CDD7" does not support watch apps.
This logic is performed in the iOS build.

Comments

  1. Chris Barber 2015-08-03

    PR: https://github.com/appcelerator/titanium_mobile/pull/7003
  2. Wilson Luu 2015-09-03

    Closing ticket as fixed. Verified that I launch a watch app, a valid iphone simulator will be launched as well. Tested on: Appc CLI NPM: 4.2.0-1 Appc CLI Core: 5.0.0-33 Arrow: 1.2.52 SDK: 5.0.0.v20150903152310 Node: v0.10.38 OS: Yosemite (10.10.5) Xcode: 7 beta 6 Devices: iphone simulator 6 (9.0), 42 mm watch simulator

JSON Source