Samuel K.
Samuel K.

Reputation: 61

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:

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?

Upvotes: 6

Views: 2673

Answers (2)

Joshua Nozzi
Joshua Nozzi

Reputation: 61228

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.

Upvotes: 3

Jordan Wood
Jordan Wood

Reputation: 2899

I'm seeing the same problem using Xcode 10.0 on a Mac mini (Late 2012) with 16 MB RAM and 2.3 GHz Intel Core i7.

I was using one simulator (an iPhone Xs Max) just fine for a couple of days, but when I changed to an iPhone 7 Plus (iOS 12), my whole computer froze with only the mouse pointer working. Switching back to the Xs Max simulator did not make the problem go away. Since I'm not using Playgrounds, switching to running on a real device instead of the simulator "fixed" the issue for me. Its not a real solution, but it keeps me from grinding to a halt until new versions of Xcode and Simulators come out.

Upvotes: 0

Related Questions