Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode suddenly becomes very slow

My Xcode speed has come down to a crawl. I have no idea why. CPU activity is very low on both cores, gobs of memory.

It's almost as if it's waiting for something but I have no idea what. I have disconnected all USB and FireWire devices but it helped only a little bit.

Any ideas?

like image 286
John Smith Avatar asked Oct 14 '10 02:10

John Smith


People also ask

Why does Xcode build take so long flutter?

One long-standing issue with Cloud Firestore is that Flutter Xcode builds take a long time, especially on CI environments. This is because the Firestore iOS depends on 500k lines of mostly C++ code, that are compiled from scratch as part of the Xcode build.

Can I delete iOS device support Xcode?

Yes, Xcode keeps device support files for old devices and it's safe to delete them.


2 Answers

First thing I'd look at is the HDD. Is it constantly being accessed? If so, it would indicate several possible things - memory shortage and lots of swapping, hard drive free space shortage cause it to hunt for space, heavy fragementation etc.

If thats not it, perhaps Xcode is running something in the background. Do you have any custom scripts you have added which could have done something?

have you rebooted?

like image 126
drekka Avatar answered Oct 23 '22 04:10

drekka


It sounds like you have predictive compilation turned on in the Xcode preferences.

like image 41
Peter Hosey Avatar answered Oct 23 '22 06:10

Peter Hosey