Xcode makes my Mac crash

I have a 2014 Mac Mini with 8Gb ram running macOS 12.6 and Xcode version 14.0.


I only have Google Chrome (where my tutorial is) and Xcode open and my Mac is freezing up and becoming completely unresponsive. I am forced to hold in the power button to turn it off.


This is becoming very frustrating because I’m very much trying to focus on app development right now and I’m nowhere near financially ready to purchase a new computer.


Can I do something to get better performance? Am I just wasting my time with this old Mac? If it is able to get the newest software why is it crashing?


Any help would be greatly appreciated.


David

Mac mini, macOS 12.6

Posted on Sep 20, 2022 6:25 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 20, 2022 8:41 AM

8 GB and an HDD (assumed) is going to be very slow for normal use, and Xcode is not known for being lightweight.


If you do have an HDD, it’s the same issue as this: Why is my hard disk drive iMac so slow? - Apple Community


You can shut off the continuous compilation feature (it’s been discussed before around here, not that I immediately remember the location of the switch) to lighten the load of Xcode, and can switch from what is likely an internal HDD to booting from and using an external SSD.


Maybe Xcode > Preferences > Source Editing > Editing > Code Completion > [all off] ?


The Google apps are not known for sipping system resources, either. Remove those.


Options: clean off everything you absolutely don’t need including the Google apps, any add-on VPN apps, add-on anti-malware apps, add-on cleaner apps, etc., switch off continuous compilation, switch your boot device to an SSD (see link), and see whether this Mac distantly approaches adequate performance.


Similar questions

8 replies
Question marked as Top-ranking reply

Sep 20, 2022 8:41 AM in response to MrDJ26

8 GB and an HDD (assumed) is going to be very slow for normal use, and Xcode is not known for being lightweight.


If you do have an HDD, it’s the same issue as this: Why is my hard disk drive iMac so slow? - Apple Community


You can shut off the continuous compilation feature (it’s been discussed before around here, not that I immediately remember the location of the switch) to lighten the load of Xcode, and can switch from what is likely an internal HDD to booting from and using an external SSD.


Maybe Xcode > Preferences > Source Editing > Editing > Code Completion > [all off] ?


The Google apps are not known for sipping system resources, either. Remove those.


Options: clean off everything you absolutely don’t need including the Google apps, any add-on VPN apps, add-on anti-malware apps, add-on cleaner apps, etc., switch off continuous compilation, switch your boot device to an SSD (see link), and see whether this Mac distantly approaches adequate performance.


Oct 10, 2022 10:25 AM in response to MrDJ26

MrDJ26 wrote:

This is becoming very frustrating because I’m very much trying to focus on app development right now and I’m nowhere near financially ready to purchase a new computer.

Unfortunately, that computer is woefully inadequate for a modern version of Xcode.

Can I do something to get better performance? Am I just wasting my time with this old Mac? If it is able to get the newest software why is it crashing?

To be honest, you are wasting your time with that particular machine. It is notoriously slow. You didn't specify what kind of hard drive you have in it. In addition to having a particularly slow processor, it has an exceptionally slow mechanical hard drive. To add insult to injury, it is one of first modern non-upgradable models. 8 years later, this model keeps on giving - pain.


It doesn't even support Thunderbolt 3, so if you wanted an external boot SSD, you are limited to USB 3.0 and Thunderbolt 2.


Plus, the newer models are quite inexpensive. Don't be fooled by just comparing numbers. You could probably get an external, 256GB SSD for about $75. That would be noticeably faster than what you have now. But it would also be 50-100 times slower than a new Mac mini. For $1099 US, you can get a 16 GB mini with 500 GB SSD. How much is each hour of suffering worth?

Oct 10, 2022 8:56 AM in response to MrHoffman

Yea I actually installed an SSD in the Mac when I got it so it’s already using SSD. I’ll look into turning off continuous compilation as well as what that does so I’ll know what I’m losing.


And I’ve about had it with Google in general. Recently I couldn’t ‘sign in with Google’ because I wouldn’t allow ‘app ad tracking’ so I have no problem removing those applications. And I can run Google chrome on my windows laptop hooked up to a monitor nearby if I need to.


thanks for the suggestions. Although I’ve been running into some other issues recently but I’ll probably create a new post about that. I wish I had someone I could call and ask simple questions about what the heck is going on sometimes.

Oct 11, 2022 6:31 PM in response to etresoft

I have installed a Samsung SSD 870 EVO 500GB in the machine and yes it is non-upgradeable as far as ram which is unfortunate.


Unfortunately $1099 is very from from attainable as I’m on medical leave from my job right now. I have no income really at all and I’m in pain all the time because of vascular TOS and I’ll need surgery soon….. So unless you want to donate a machine to me I’m stuck with this. :) But thanks for your honesty.


I just erased the hard drive and reinstalled macOS and am only putting Xcode on it. Hopefully that will make it usable enough to continue learning to code until I can get a new Mac.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode makes my Mac crash

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.