XCode and Simulator suddenly crashed and froze my Macbook over and over! 🤯

I am using a MacBook Pro 13-inch 2020 (i5, 8GB RAM, 256GB SSD) and using Xcode and Simulator to build my first app. However, when I run the Simulator, my MacBook freezes, and I can't do anything other than performing a hard restart (my project is very simple because I'm just learning Swift and SwiftUI). Has anyone encountered a similar issue, and how did you resolve it?

I've been using Xcode from version 13 up to the current version (14.3.1), and this issue continues to happen. Could it be that my MacBook is too old to build Swift projects?

Not too old but may be not enough memory (8 GB is small for Xcode). How much storage available on Disk ?

You should try:

  • to close all other applications
  • Open Debug navigator (7th tool icon) to inspect resources use

  • You can also use Monitor for further seach.

I have about 50GB of disk space remaining, but I think the issue may be related to RAM. Let me try closing all my apps.

Perhaps switching to VSCode with React Native can solve the freezing issue when building the mobile app?

XCode and Simulator suddenly crashed and froze my Macbook over and over! 🤯
 
 
Q