Watch Simulator ( Xcode 16.3)

I have an Watch APP and it's iOS APP .. I want to test it via the Simulator. (with my real Watch I have a lot of Xcode error and an open ticket with Apple)

Xcode 16.2 associates an Iphone16 to the Series 10 Watch simulated. BUT the Watch is not associeted to the iPhone.

WCSession.isSupported is true, but session.isPaired is false on the iPhone.

On the Watch : session.isReachable returns false.

But in its settings the Simulator shows the Watch. And It is the same problem with another model of Watch in the Simulator.

Answered by DTS Engineer in 838497022

Thank you for sharing the post. Could you please provide the error list and the open ticket number with Apple? If you have a project showing the issue, that can be extremely helpful as well.

A focused Xcode project that builds and demonstrates the issue. Ideally this will be a new Xcode project created specifically to demonstrate this issue, and which includes only the minimal code and API necessary to reproduce the issue. This focuses on the important code paths and may require you to perform additional debugging to extract the relevant code. Please do not include any 3rd-party code or frameworks unless they are absolutely required for this targeted test project to run.

We also recommend adding appropriate logging to your focused project. See Technical Note TN2347 - Basic debugging with the NSLog function and the DEBUG preprocessor macro:

https://developer.apple.com/library/content/technotes/tn2347/_index.html

Explicit steps to reproduce the issue. These steps should be everything we need to do to see the issue.

You can provide a link to download the project, or archive into a .zip file and attach as a response to this email.

Albert Pascual
  Worldwide Developer Relations.

Accepted Answer

Thank you for sharing the post. Could you please provide the error list and the open ticket number with Apple? If you have a project showing the issue, that can be extremely helpful as well.

A focused Xcode project that builds and demonstrates the issue. Ideally this will be a new Xcode project created specifically to demonstrate this issue, and which includes only the minimal code and API necessary to reproduce the issue. This focuses on the important code paths and may require you to perform additional debugging to extract the relevant code. Please do not include any 3rd-party code or frameworks unless they are absolutely required for this targeted test project to run.

We also recommend adding appropriate logging to your focused project. See Technical Note TN2347 - Basic debugging with the NSLog function and the DEBUG preprocessor macro:

https://developer.apple.com/library/content/technotes/tn2347/_index.html

Explicit steps to reproduce the issue. These steps should be everything we need to do to see the issue.

You can provide a link to download the project, or archive into a .zip file and attach as a response to this email.

Albert Pascual
  Worldwide Developer Relations.

Thank you for your answer.

The first problem has been solved , since the update of Xcode to 16.3 version: I can now emulate the Watch and the iPhone at the same time.

for the rest , my own Watch (serie 10) has wifi stabilty problems (since the last watchOS update): it loose the connexion : sessionReachabilityDidChange change of value very fast : for example when I type this message, I had 9 change of value . It is the same on 2 different Wifi router at 1.5 or 2 meters from the Watch.

This make the relation between Xcode and this Watch very pain full with a lot of message of connexion Lost, debugger not working, Watch not initilized and others.

The ticket number is FB17176331

Watch Simulator ( Xcode 16.3)
 
 
Q