Xcode exits unexpectedly

My machine is MacBook Pro (Retina, 15-inch, Mid 2015). The system is big sur 11.0.1. Sometimes Xcode exits unexpectedly after the program is compiled successfully. What is the reason?
You give too little information. Please detail the context more.

Did you get the crash report (the one you can send to Apple) ? If so, copy it all and paste in a text editor before sending or dismissing.

And report most important parts.
I reported it to Apple, but I didn’t get a reply from Apple
Xcode exits unexpectedly
 
 
Q