So after looking in several threads I assume that there is a problem with older hardware (specially the gpu) and Monterey / newer Xcode versions. I don't know which gpu you are using but older ones have problems with OpenCL (which looks like Xcode is using). If you have a discrete and internal gpu try the following:
-Open the Simulator or launch it
-Under File/GPU Selection choose "Prefer integrated GPU" (this will only use the internal gpu of your Mac.)
-Close Simulator and Xcode and try it again with newer Simulators like 13.4 or above. (But be aware that the performance is lower than with the external gpu)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: