Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Mac freezes while compiling

I recently downloaded the Beta version of Xcode 10. I opened an existing project and wanted to start it on a Simulator. But as soon as the Simulator started, may whole mac just froze. I could not do anything. The only thing that worked was moving the mouse.

After rebooting my Mac I thought the freezing was a beta bug in the Xcode 10 Release. So I went back to Xcode 9.4. But when I was using a small playground file, it happened again, while compiling the playground file. After another reboot I tried to recreate the issue with an existing Xcode project I had (the same I used for Xcode 10) but this time the simulator worked without any problems.

I am using:

  • MacBook Pro 2010
  • 2.2 Ghz Intel Core2Duo Processor
  • 16 Gb RAM
  • SSD Storage

Is my Mac just too old to work properly with Xcode or does anyone of you knows if this is an issue I can resolve?

like image 437
Samuel K. Avatar asked Jun 13 '18 08:06

Samuel K.


1 Answers

I just ran into this (total system freeze, no pointer movement, nothing) with a single project on 10.14.0GM and Xcode 10, 10A255. I'd gone through and manually deleted the DerivedData folder, everything from the UserData folder except my theme, and DocumentationCache. No luck.

I then did a "Show Package Contents" on the project's .xcodeproj file and deleted everything but project.pbxproj and attempted opening again. Success.

I wasn't concerned with losing the auto-generated schemes on this very simple project structure; be aware that you may lose custom schemes and potentially other customizations related to project structure.

like image 90
Joshua Nozzi Avatar answered Oct 16 '22 11:10

Joshua Nozzi