Xcode 11 and SwiftUI issue

Good morning!
I'm having an issue when coding in SwiftUI where the canvas/preview of the iPhone will not showing up and it says that there has been an error.

The error states "Cannot preview this file"

Here's the current software I'm running:

- Xcode 11.0

- macOS 10.15 beta 1

Replies

Does it occur with a new project or when opening an existing one?


There may still be some problems reading existing storyboards.

Good morning Claude!

Thank you for the response, This occurs during both when opening a new project and opening an exisiting one!

You're not the only one.

It also locks up the UI here and attempting to generate a detailed error report causes an OS reboot.


[edit] - Both the simulator and swiftui preview now reliably cause a kernel panic

I had this issue as well. Helps if you build the project in the simulator first. This worked for me.