XCode and Simulator suddenly crashed and froze my Macbook over and over [closed]

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?

enter image description here

  • While it could be an issue since you have an Intel Mac it more than likely called because there is some issue in your code.

    – 

  • About the code, what could the problem be if Im just following the Youtube tutorial?

    – 

  • There is a lot of junk on YouTube, try the Apple SwiftUI tutorials. There are a lot of things that people get wrong about SwiftUI.

    – 




  • I don’t think this is an issue with my code because after building it, it can still run and display smoothly on the Simulator. However, at any random moment when I continue to build or even do nothing, my MacBook completely freezes, and I can’t do anything other than hard restart it 🤔

    – 

  • Well that’s not a programming problem. Try asking on SuperUser or AskDifferent.

    – 

Leave a Comment