system freeze while swiftui canvas builds preview

Hello,


Running: 10.15.4 with Xcode 11.5 on MacBook Pro (16-inch, 2019)


Even extremely simple "Hello world" SwiftUI apps occasionally freeze the entire machine while generating canvas previews with SwiftUI. Searching around on the internet has lead me to disable "Paralellize Builds" in the Scheme and this helps, but does not eliminate the problem. Also, similar full system freezes have occured when running the app without the appropriate simulator device already up and running, but this is less reproducible.


Has anyone seen similar problems? I basically can't use previews with SwiftUI with this problem.


Thanks for any thoughts.

Actually, the problem seems to extend to launching the Simulator app also. Sometimes just launching one of the iOS devices in simulator will freeze the entire machine, and other times it works okay.

system freeze while swiftui canvas builds preview
 
 
Q