Project: titanium
Issue TIMOB-23636: Failed watchOS pairing will silently fail appc run without error
Changing watch pairings within Xcode result in orphaned watchOS simulators which are still being reported as available by ioslib. When trying to build an app and run it on the simulator, `appc run` just silently fails, without reporting any error. h4. Steps to reproduce 1. *appc new --classic* 2. Enter project root 3. *appc new -t applewatch* 4. Open Xcode and change the watch pairing for an iOS device under Window > Devices (e.g. remove the existing watch and add a new one) 5. *appc run -p ios -I 10.0 --launch-watch-app -l trace* h4. Expected result App launches successfully with both iOS and watch simulators h4. Actual result appc run exits without any error and no simulators are being launched {code} ~/Development/appc/pairing-test ❱❱❱ appc run -p ios -I 10.0 --launch-watch-app -l trace ... [INFO] Finished building the application in 1m 3s 751ms [INFO] Launching iOS Simulator [TRACE] [ioslib] Found watchOS 3.0 app: com.appcelerator.pairing-test.watchkitapp [TRACE] [ioslib] Selected iOS Simulator: iPhone SE [TRACE] [ioslib] UDID = AD4CB766-B439-4E20-B441-8EA281CC3658 [TRACE] [ioslib] iOS = 10.0 [TRACE] [ioslib] Selected WatchOS Simulator: Apple Watch - 42mm [TRACE] [ioslib] UDID = B3649832-4484-4A43-8468-BC7D8931F4D0 [TRACE] [ioslib] WatchOS = 3.0 [TRACE] [ioslib] Autoselected Xcode: 8.0 [TRACE] [ioslib] Removing old log file: /Users/jvennemann/Library/Developer/CoreSimulator/Devices/AD4CB766-B439-4E20-B441-8EA281CC3658/data/Containers/Data/Application/539F97C1-5E55-410E-A070-0AA2F1BC7913/Documents/bc3ea531-50b4-4fa1-9555-691fdc9b8133.log [TRACE] [ioslib] Unpairing iOS and watchOS simulator pair: B8AAE696-D6C8-43E8-AD2E-C9F703406C49 [TRACE] [ioslib] Running: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/simctl unpair B8AAE696-D6C8-43E8-AD2E-C9F703406C49 [TRACE] [ioslib] Pairing iOS and watchOS simulator pair: B3649832-4484-4A43-8468-BC7D8931F4D0 -> AD4CB766-B439-4E20-B441-8EA281CC3658 [TRACE] [ioslib] Running: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/simctl pair B3649832-4484-4A43-8468-BC7D8931F4D0 AD4CB766-B439-4E20-B441-8EA281CC3658 ~/Development/appc/pairing-test ❱❱❱ {code}
Story points: 5