{ "id": "161777", "key": "TIMOB-23636", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "18164", "name": "ioslib 0.12.0", "archived": false, "released": true, "releaseDate": "2016-06-23" }, { "id": "18239", "name": "ioslib 0.13.0", "archived": false, "released": true, "releaseDate": "2016-08-04" }, { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-29T14:05:17.000+0000", "created": "2016-07-13T22:00:48.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "18164", "name": "ioslib 0.12.0", "archived": false, "released": true, "releaseDate": "2016-06-23" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-08-06T17:49:31.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "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. \r\n\r\nh4. Steps to reproduce\r\n1. *appc new --classic*\r\n2. Enter project root\r\n3. *appc new -t applewatch*\r\n4. 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)\r\n5. *appc run -p ios -I 10.0 --launch-watch-app -l trace*\r\n\r\nh4. Expected result\r\nApp launches successfully with both iOS and watch simulators\r\n\r\nh4. Actual result\r\nappc run exits without any error and no simulators are being launched\r\n\r\n{code}\r\n~/Development/appc/pairing-test ❱❱❱ appc run -p ios -I 10.0 --launch-watch-app -l trace\r\n...\r\n[INFO] Finished building the application in 1m 3s 751ms\r\n[INFO] Launching iOS Simulator\r\n[TRACE] [ioslib] Found watchOS 3.0 app: com.appcelerator.pairing-test.watchkitapp\r\n[TRACE] [ioslib] Selected iOS Simulator: iPhone SE\r\n[TRACE] [ioslib] UDID = AD4CB766-B439-4E20-B441-8EA281CC3658\r\n[TRACE] [ioslib] iOS = 10.0\r\n[TRACE] [ioslib] Selected WatchOS Simulator: Apple Watch - 42mm\r\n[TRACE] [ioslib] UDID = B3649832-4484-4A43-8468-BC7D8931F4D0\r\n[TRACE] [ioslib] WatchOS = 3.0\r\n[TRACE] [ioslib] Autoselected Xcode: 8.0\r\n[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\r\n[TRACE] [ioslib] Unpairing iOS and watchOS simulator pair: B8AAE696-D6C8-43E8-AD2E-C9F703406C49\r\n[TRACE] [ioslib] Running: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/simctl unpair B8AAE696-D6C8-43E8-AD2E-C9F703406C49\r\n[TRACE] [ioslib] Pairing iOS and watchOS simulator pair: B3649832-4484-4A43-8468-BC7D8931F4D0 -> AD4CB766-B439-4E20-B441-8EA281CC3658\r\n[TRACE] [ioslib] Running: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/simctl pair B3649832-4484-4A43-8468-BC7D8931F4D0 AD4CB766-B439-4E20-B441-8EA281CC3658\r\n\r\n~/Development/appc/pairing-test ❱❱❱\r\n{code}", "attachment": [ { "id": "59786", "filename": "appc-info.txt", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-13T21:50:11.000+0000", "size": 7837, "mimeType": "text/plain" }, { "id": "59787", "filename": "simctl-list.txt", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-13T21:50:05.000+0000", "size": 5096, "mimeType": "text/plain" } ], "flagged": false, "summary": "Failed watchOS pairing will silently fail appc run without error", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Xcode 8.0 Beta\r\nLatest Titanium SDK master\r\nappc-cli 5.3.1-9\r\nappc-npm 4.2.7-2", "closedSprints": [ { "id": 681, "state": "closed", "name": "2016 Sprint 15 Tooling", "startDate": "2016-07-16T00:19:13.868Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:41:26.446Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "391896", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "PR: https://github.com/appcelerator/ioslib/pull/38", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-07-28T21:42:49.000+0000", "updated": "2016-07-28T21:42:49.000+0000" }, { "id": "391927", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looks good, it now won't quit silently anymore. It still initially selects a non existing watchOS sim, though. I found out that calling {{simctl delete}} will not remove the sim directory for watchOS sims, BUT indeed will do so for iOS sims. I know you said the simctl tool is hardly worked on, but nevertheless i filed a bug report with Apple. Let's see what happens there :)", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-29T02:43:03.000+0000", "updated": "2016-07-29T02:43:03.000+0000" }, { "id": "393558", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Unable to validate this ticket until TIMOB-23614 is resolved.", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-18T23:53:27.000+0000", "updated": "2016-08-18T23:53:27.000+0000" }, { "id": "394116", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Followed the test steps and encountered the following on build:\r\n{code:java}\r\n[TRACE] ** BUILD SUCCEEDED **\r\n[INFO] Finished building the application in 1m 16s 764ms\r\n[INFO] Launching iOS Simulator\r\n[TRACE] [ioslib] Found watchOS 3.0 app: com.appc.watchTestv3.watchkitapp\r\n[TRACE] [ioslib] Selected iOS Simulator: iPhone SE\r\n[TRACE] [ioslib] UDID = AAB1D702-339D-4E12-970D-CC983D7B4AFC\r\n[TRACE] [ioslib] iOS = 10.0\r\n[TRACE] [ioslib] Selected WatchOS Simulator: Apple Watch - 42mm\r\n[TRACE] [ioslib] UDID = 2CD3C9CD-3780-4221-A24A-71F9C2FF2AD3\r\n[TRACE] [ioslib] WatchOS = 3.0\r\n[TRACE] [ioslib] Autoselected Xcode: 8.0\r\n[TRACE] [ioslib] Removing old log file: /Users/harrybryant/Library/Developer/CoreSimulator/Devices/AAB1D702-339D-4E12-970D-CC983D7B4AFC/data/Containers/Data/Application/14F0A05A-C691-4CDE-9468-1C9B7C52BAF3/Documents/8cee0a82-6c67-4dbb-9666-27d3eff34c1e.log\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl list pairs --json\r\n[TRACE] [ioslib] Unpairing iOS and watchOS simulator pair: 4B8043CF-E1BD-434B-9D07-FA6749C797D1\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl unpair 4B8043CF-E1BD-434B-9D07-FA6749C797D1\r\n[TRACE] [ioslib] Pairing iOS and watchOS simulator pair: 2CD3C9CD-3780-4221-A24A-71F9C2FF2AD3 -> AAB1D702-339D-4E12-970D-CC983D7B4AFC\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl pair 2CD3C9CD-3780-4221-A24A-71F9C2FF2AD3 AAB1D702-339D-4E12-970D-CC983D7B4AFC\r\n[ERROR] Invalid device: 2CD3C9CD-3780-4221-A24A-71F9C2FF2AD3\r\n{code}\r\n\r\nThe question is whether this is an expected result when you delete an existing watch pairing and create a new one, or should it build successfully? \r\n\r\nTested On:\r\niPhone 6S (10.0) Simulator\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.5.0.v20160822000355\r\nAppc Studio: 4.7.1.201608190732\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.5.0-5\r\nVersion 8.0 beta 6 (8S201h)\r\nNode v4.4.7\r\n\r\n\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-24T16:53:44.000+0000", "updated": "2016-08-24T16:53:44.000+0000" }, { "id": "394130", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Hmm, this doesn't sound right. It says it found the Watch sim {{2CD3C9CD-3780-4221-A24A-71F9C2FF2AD3}}, but then the pair failed?\r\n\r\nThe output shows the unpair and pair commands. You should manually unpair and re-pair to see if you can reproduce the problem outside of Titanium.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T18:04:43.000+0000", "updated": "2016-08-24T18:04:43.000+0000" }, { "id": "394287", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "If i remember correctly this was because of the way ioslib initially detects all available simulators. It manually scans {{~/Library/Developer/CoreSimulator/Devices}} for device folders. When you delete a watch sim with Xcode or {{simctl}} the corresponding device folder will not get deleted and ioslib still detects the simulator. Running {{appc info}} vs {{xcrun simctl list}} should show the differences.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-24T20:56:35.000+0000", "updated": "2016-08-24T20:56:35.000+0000" }, { "id": "394292", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Yeah, that's a good point. I created TIMOB-23821 to switch to {{simctl}}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T21:20:16.000+0000", "updated": "2016-08-24T21:20:16.000+0000" }, { "id": "440204", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:31.000+0000", "updated": "2018-08-06T17:49:31.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }