Xcode 15 slow performance and overheating M2

Hi everyone, I facing two issues with Xcode 15:

1- slow performance especially when trying to test the app on simulator or physical device, I tried to used simulator running iOS 16.4, also the preview take a long time to load.

2- I am Beginner and Xcode 15 not catching my mistakes immediately same as Xcode 14

My device is Mac Air M2 8GB (Sonoma 14.1.1)

Xcode 15 slow performance and overheating M2
 
 
Q