Can't Preview SwiftUI Views in Xcode 12

Hello, I can't preview SwiftUI previews in Xcode 12, it gives me the error:

PreviewAgentError: Statically rendering previews is not supported on iOS simulators

Someone can help me?
Hi there. Could you please list all the steps you took to get to this error? Also, can you please open a feedback assistant issue for this? Please make sure you run sudo sysdiagnose and also xcrun simctl diagnose and attach both resulting files to the feedback assistant so we can take a look at what's going on. Could you also please report back here with the FB number once you do that? Thank you!
I just logged FB7793239 with the same issue as OP. I've attached as much as I could to the report, including the two commands you asked for.
This happens both on existing projects, and on new projects, I'm open a feedback assistant anyway
Thanks iiDevid! Can you please comment back here when you get a chance and list the FB number so we can follow up on this?
When filing a feedback for a preview issue please also:
  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 the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)

Hey, I had the same issue.

Ive added .previewContext(WidgetPreviewContext(family: .systemLarge)) to my preview and it worked.

Hope it helps
Can't Preview SwiftUI Views in Xcode 12
 
 
Q