Why is the XCode 10 IDE so slow?

I've been seeing extremely slow performance trying to use the XCode 10 IDE. For example it sometimes takes 30 seconds or more when I click on a line of code to edit it before the busy cursor goes away and I can acutally edit the text. I've seen it take 30 seconds or more to just change device target from Generic to my iPhone. And then at other times it is reasonably responsive. Any ideas on why it is so slow at times?


I tried deleting XCode 10 and reinstalling. No change in behavior.

How much RAM do you get ? How much disk space ?


Have you awaited that indexing is completed ?


You could try to turn off auto completion option, just to check:

XCode > Pererences > Text Editing >

I'm running a 2 year old Mac Book Pro, the problems started after upgrading to XCode 10


56.7 GB Free Space on 233 GB Drive

16GB Memory

I've waited till indexing is complete

Turning auto completion off had no effect. The endless busy waiting does not necessarily require me to be editing text.


I've looked at the Mac's activity monitor. Nothing is pegged but I do see a warning that XCode is not responding when it is busy waiting. I do see the %CPU entry for Xcode at 100 or above

Did you run Activity Monitor, to check what's happening ?

Yes, XCode 10 is shown using 100%+ of the CPU when it is busy waiting. That doesn't help resolve the issue.

Upgrading my Mac to Mojave fixed the performance issues.


Update: This worked for a while but now my performance issues are back.

Great, happy for you.


Just to know, whcih version of OSX before upgarding to Mojave ?

yes. xcode is so rubbish than app code , or android studio in ide editor 。 it seems they have no developers to do it better 。 or they use children to do it.

I guess it depends on your definition of "better". AppCode at least is not what I would call "exemplary", it's a real PITA, if you want to know. Don't do Android so I can't comment.

Why is the XCode 10 IDE so slow?
 
 
Q