Pairing Apple watch series 9 with Xcode version 15.4

Hi, I am trying to pair an Apple watch series 9 with Xcode version 15.4. I followed the following steps and the Apple watch does not appear as an available device in the list of run destinations in the drop down menu at the top of the Xcode window.

  1. I switch developer mode on for the iPhone 15.
  2. I was able to pair my Apple watch series 9 with the iPhone 15 following instructions on the iPhone.
  3. I turn on the 'Associated Domains Development' and 'WidgetKit Developer Mode' modes in the Settings -> Developer menu of the Apple watch.
  4. I connect the iPhone with the Macbook running Xcode using a cable and pair the two devices.
  5. The iPhone appears as an available iOS device.
  6. However, when I change the target to a watchOS app, the Apple watch does not appear as an available device.

I am able to install and run an App developed in Xcode on the iPhone. Can step by step instructions for installing and running a watchOS App on an Apple watch series 9 be shared. Thank you.

It sounds like you missed the critical step of turning on developer mode on your watch (Settings -> Privacy & Security -> Developer Mode).

Ensure you pair your watch with the host Mac.

You can develop with the watch over your network (no need to hop through the phone) as long as your network does not disable bonjour traffic.

Pairing Apple watch series 9 with Xcode version 15.4
 
 
Q