13
votes

I'm running Xcode 8 beta 5. My app has a watch extension. I cannot pair the iPhone simulator with the watch simulator. I've followed the instructions for pairing (Xcode, Window, Devices) but there are no watch simulators listed there, nor are any listed when I select any of the iPhone simulators. I've tried variations of Add Simulator, but I only get more iPhone simulators -- I never see a watch simulator or a pairing there. The watch simulator exists -- I can launch the simulator, but it isn't paired. I've tried deleting Xcode and re-installing. Same issue with beta 4.

How do I get the watch simulator to appear when I select an iPhone simulator in Device?

UPDATE: To be clear, these are Apple's instructions for "Pairing Apple Watch Simulators to iPhone Simulators" (https://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/PairingWatchestoiPhoneSimulators/PairingWatchestoiPhoneSimulators.html)

  1. In the Devices window under Simulators, select an iPhone 5 and later simulator.

  2. Under the Paired Watches table, click the Add button (+).

I never see the "Paired Watches table" so there's no Add button.

I do see that in Xcode 7, like this: Paired Watched table (Xcode 7) UPDATE 2: In Xcode 8 beta 6, the Paired Watches table appears in the Devices window, but the pairing still fails with a "Simulator Not Paired" dialog.

1
What's the output of 'xcrun simctl list'? Do you see your pairs listed there? Try pairing your devices with 'xcrun simctl pair ...'Jeremy Huddleston Sequoia
There's a mass of output, but no pairings. And if I have the Xcode 8 sims running, the xcrun command crashes. How do I get it to use the Xcode 8 versions, and how do I specify the sims to pair?Jeff
Can you send me the crash log (pastebin, etc)? -- You can create a pair with the 'pair' subcommand. Eg: 'xcrun simctl pair <UDID> <UDID>'Jeremy Huddleston Sequoia
Jeremy: I was able to successfully pair the watch, but I had to create a new watch simulator with a unique name, pair that in Xcode Devices, then select it in the watch's Hardware, Device menu. The watch's Hardware, Device list was full of many "Apple Watch - 42mm" (the default pairings) so I thought it was correct. Other than your comment here, there's no mention of having to match the devices, and find the EXACT device in the long list of many with the same name -- it should be more automatic. Thank you for your help.Jeff
@Jeff thank you, recreating the simulator was the only way to fix it on my build, was using xcode 8 (GM seed) - could be the accepted answer?josh527

1 Answers

18
votes

I found two ways to deal with the multiple, identically-named simulators:

  1. Xcode Devices window: Create a new watch simulator for a particular iPhone device and give it a unique name (e.g., "test3"). When you launch the watch simulator, select that simulator in the watch's Hardware, Device menu.

Xcode Device's window

  1. Xcode: Select and Run the iPhone app in Xcode's Active Scheme dropdown menu, then select and Run the WatchKit App in the Active Scheme, too. Each of those actions will launch the correctly-paired simulators, even if the names are ambiguous.

Xcode Active Scheme menu (iPhone app)Xcode Active Scheme window (WatchKit App)