WidgetKit Simulator crush when closing

I'm new to Xcode and have built a simple widget that runs on my macOS. The simulator opens whenever I run the project, and I can see my widget. However, when I close the simulator, it crashes, and I get the error message "WidgetKit Simulator quit unexpectedly".

I run Xcode 16 beta 3

Any ideas?

WidgetKit Simulator crush when closing
 
 
Q