Cannot Preview View When Target is IOS And Watch Extension

When adding a swift view as a target to both IOS and Apple Watch, preview fails.

If the scheme is IOS, there's no problem.
If the target is only watch, there's no problem.

But if the scheme is Apple Watch, and the target is both IOS and the Apple Watch extension, then preview fails:

HumanReadableNSError: The run destination iPhone 12 Pro Max is not valid for Running the scheme 'WatchYakTrack (Complication)'.

IDEFoundationErrorDomain (1)
Sorry to hear you are having problems getting previews working in some situation. Probably best next step will be to file a feedback with diagnostics.
We will need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering.
  1. When you get an error in Xcode Previews, an error banner appears in the canvas

  2. Click the "Diagnostics" button in that banner

  3. In the sheet that appears, click "Generate Report" in the bottom left of the sheet

  4. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)

Bonus points for including a sample project to reproduce with!
Cannot Preview View When Target is IOS And Watch Extension
 
 
Q