Simulator is not working.

Hi, I am a UI designer and a total newbie with coding, so I have been using AI in Xcode to do all my coding for my personal project. Everything was working fine until this morning, when I tried to run my app in the simulator (I didn't even change any code from the last time I ran the simulator) and now the simulator is crashing and freezing and I have been trying to fix it with the AI recommendations, but it seems way too complicated for me to handle even with AI's help. I feel like I need to talk to an expert and guide me out of this hole. Please help. Thank you!

Answered by DTS Engineer in 873805022

Other than what @Tomato said, you can also try to reset the simulator by running the simulator's Device > Restart or Device > Erase all Contents and Settings menu. This helps rule out that the crash is caused due to unintentional changes on the simulator.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

I would (1) delete the entire app folder inside the DerivedData folder inside Users > user > Library > Developer > Xcode and then (2) choose Clean Build Folder under Product in Xcode.

Accepted Answer

Other than what @Tomato said, you can also try to reset the simulator by running the simulator's Device > Restart or Device > Erase all Contents and Settings menu. This helps rule out that the crash is caused due to unintentional changes on the simulator.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

@DTS Engineer I tried Device>Restart and that didn't seem to work, so I tried Device>Erase all Contents and Settings, and now the simulator is showing up at all when I click the Run button. Any advice??

Simulator is not working.
 
 
Q