{ "id": "164176", "key": "TIMOB-24069", "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": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-17T14:09:16.000+0000", "created": "2016-10-24T22:55:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "53820", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "164486", "key": "TIMOB-24136", "fields": { "summary": "iOS: Simulator won't install and launch app using Xcode 8.2 / iOS 10.2", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-12-19T18:43:59.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": "When building using Xcode 8.1, for an iOS sim that has an Apple Watch Series 2 (WatchOS 3.1) sim, I get the below error:\r\n{code}\r\n[ERROR] : An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=161):\r\nUnable to pair devices\r\nAt least one of the requested devices is already paired with the maximum number of supported devices and cannot accept another pairing.\r\n{code}\r\n\r\n*Steps to reproduce issue*\r\n1. Select Xcode 8.1 {{sudo xcode-select -s }}\r\n2. Create a new project and add an Apple Watch App to it\r\n3. Add a team ID to your tiapp.xml\r\n4. Build the project for an iOS sim with Apple Watch Series 2 (v3.1)\r\n\r\n*Expected Results*\r\nThe project builds/installs/runs without issue\r\n\r\n*Actual Results*\r\nThe above error is encountered", "attachment": [ { "id": "61102", "filename": "log.txt", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-16T18:43:49.000+0000", "size": 33030, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Unable to build for Apple Watch Series 2 WatchOS 3.1 sim", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.12 (16A323)\r\nStudio 4.8.0.201610171310\r\nTi SDK 6.0.0.v20161019091022\r\nAppc NPM 4.2.8-9\r\nAppc CLI 6.0.0-63\r\nAlloy 1.9.3\r\nXcode 8.1 (8T61a)\r\nApple Watch Series 2 sim (WatchOS 3.1)", "closedSprints": [ { "id": 771, "state": "closed", "name": "2016 Sprint 25 Tooling", "startDate": "2016-12-03T01:56:30.015Z", "endDate": "2016-12-17T01:56:00.000Z", "completeDate": "2016-12-21T03:17:00.699Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "402939", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Titanium SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8667", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-12-08T00:40:21.000+0000", "updated": "2016-12-08T00:40:21.000+0000" }, { "id": "402943", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, you need to run {{xcrun simctl list}}, then locate all of the device pairs. Do {{xcrun simctl unpair }} for each device pair. CoreSimulator will automatically re-pair specific iOS and watchOS simulators.\r\n\r\nOn my computer, it always pairs a \"iPhone 7 Plus\" sim with a \"Apple Watch Series 2 - 42mm\" watch sim and a \"iPhone 7\" sim with a \"Apple Watch Series 2 - 38mm\" watch sim. To reproduce the problem, you need to pair the \"iPhone 7 Plus\" sim with the \"Apple Watch Series 2 - 38mm\" watch sim. You can also try to pair the \"Apple Watch Series 2 - 42mm\" watch sim with some other iPhone sim such as an iPhone 6s.\r\n\r\nWhat's happening is ioslib will now detect the pair failure try to unpair and re-pair or in worst case will create a new watch sim and use that to pair with the specified iPhone sim.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-12-08T00:45:47.000+0000", "updated": "2016-12-08T00:45:47.000+0000" }, { "id": "403292", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Bug fixes:\r\nTitanium SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8683\r\nTitanium SDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8684", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-12-13T18:58:53.000+0000", "updated": "2016-12-13T18:58:53.000+0000" }, { "id": "403526", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening as error stated in the description still occurs on Xcode 8.2 using the titanium version of the Apple watch series 2 (v3.1)\r\n[^log.txt]", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-16T18:44:21.000+0000", "updated": "2016-12-16T18:46:28.000+0000" }, { "id": "403527", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~smohammed] Please build the app with the {{DEBUG=ioslib:*}} environment var set and attach the new log.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-12-16T18:47:55.000+0000", "updated": "2016-12-16T18:47:55.000+0000" }, { "id": "403548", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "ioslib v1.1.2 PR: https://github.com/appcelerator/ioslib/pull/53", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-12-16T22:16:51.000+0000", "updated": "2016-12-16T22:16:51.000+0000" }, { "id": "403550", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8696\r\nTi SDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8697\r\n\r\nTo test,\r\n\r\n# Make sure you have Xcode 8.1 and Xcode 8.2 installed\r\n# Make sure Xcode 8.2 is your selected Xcode: {{xcode-select -p}} to check, {{sudo xcode-select -s /path/to/xcode8.2}} to change\r\n# Run {code}xcrun simctl list | grep \"Apple Watch Series 2 - 42mm \\[Titanium\\]\"{code} and check if you have a Titanium created watch sim\r\n# If not, run {{xcrun simctl create \"Apple Watch Series 2 - 42mm \\[Titanium\\]\" com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm com.apple.CoreSimulator.SimRuntime.watchOS-3-1}}\r\n# Run {{xcrun simctl list}} and find the \"Apple Watch Series 2 - 42mm \\[Titanium\\]\" UDID\r\n# Check if the Titanium Watch sim is already paired with an iOS sim\r\n# If yes, unpair it: {{xcrun simctl unpair }}\r\n# Find the UDID of the iOS 10.1 iPhone SE sim\r\n# Pair the iOS 10.1 iPhone SE sim with the Titanium Watch sim: {{xcrun simctl pair }}\r\n# Find the UDID of the iOS 10.2 iPhone 7 Plus sim\r\n# Build your Titanium app (that has a watch app): {{DEBUG=ioslib:* appc run -p ios -I 10.2 --log-level trace --device-id --watch-device-id }}\r\n\r\nBy specifying {{-I 10.2}}, it will build with Xcode 8.2 and will unpair the iOS 10.1 sim from the Titanium watch sim, then pair it with the 10.2 sim. Everything should launch, install, and run perfectly.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-16T22:39:46.000+0000", "updated": "2016-12-16T22:54:19.000+0000" }, { "id": "403625", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with the test case mentioned above. Was able to build on Xcode 8.2 with the iOS 10.1 sim being unpaired with the titanium watch sim and then pairing it with the 10.2 sim. \r\n*Environement*\r\n{code:java}\r\nXCode 8.2 and 8.1\r\nTitanium SDK Version: 6.0.1.v20161217061750\r\nAppcelerator studio Version: 4.8.1.201612050850\r\nOperating system: Mac OS X Version 10.11.6\r\nNode.js version: 4.6.0\r\nNPM Version: 4.2.8\r\nCLI Version: 6.10.0\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-19T18:43:43.000+0000", "updated": "2016-12-19T18:43:43.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }