Xcode 13 typing is delayed / really slow

I just updated Xcode to the newest Version (13.0 13A233). And what I immediately recognized was that when I was typing in a large class (1000 Lines or more) the typing was delayed like 1 or 2 seconds. This makes it really hard to type or even do anything with my project. It works perfectly fine in smaller projects with only 100 Code Lines per File, but it is really hard to type in bigger projects with over 30 files and 3000 Code Lines per File. This always happens when I use Xcode, whether I run the app on a real device or a simulator.

Things that could cause the issue in my case:

  • I removed the contents of ~/Library/Developer/Xcode/iOS DeviceSupport, because it took the device previously too long to launch, but I don´t think that this should have an effect on my Xcode typing performance.

I would really appreciate any help, because this issue makes my work impossible and really concerns me a lot.

I can report that Xcode 13.3 is still terrible for our large project. Almost unusable, and people are still having to develop using 12.5.1, which is going to become a real issue when 13 becomes a requirement for submission very soon.

This issue is making development very cumbersome and unpleasant. How has this still not been solved Apple?

I ended up fixing this with the most unexpected solution from Stack exchange but it worked for me (unrelated to Xcode and does not apply to all models). I have an 2017 Intel MacBook Pro, and any Xcode would always have extremely delayed typing, no matter the size of the project that I opened. Then I realized that kernal_task CPU usage was very high.

Apparently charging the MBP through the left Thunderbolt port can cause it to overheat and then throttle the CPU. External monitors also make this worse. Using the right-side port to charge fixed it. My CPU usage quickly decreased, and eventually I could type using Xcode again.

Unfortunately it seems like many of you have M1 machines (which should not have this thermal throttling problem), so this would not be a solution for that.

More info here: https://apple.stackexchange.com/questions/363337/how-to-find-cause-of-high-kernel-task-cpu-usage

my xcode was same, slow typing , no autoComplete and etc . but in my case updating to latest OS figured out this situation.

me too. Specifically enter/delete to add/remove new empty lines is really slow

My solution: Issue was with adding/removing new lines being reeeeeeeeeealy slow (like 2 second delay after hitting ENTER) It's is helped massively by closing all other open tabs. Obviously this is a pretty lame solution as the tabs are really handy.

It's June 2024, 2.5 years after this issue was reported and this issue still exists in Xcode 15.4! I know it is the same issue because closing the tabs like it was recommenced here solved it for me.

This is a big disgrace for Apple that a bug in the most basic functionality of their editor which affects productivity of all of the developers does not get the priority it deserves. Xcode is already a can of bugs but this is a new level of pissing on its users.

I just tried the suggested tab closing which didn't fix it for me. Then I tried to close the minimap and it fixed the issue.

Xcode 13 typing is delayed / really slow
 
 
Q