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.

Two things I would try first:

  • Do a Clean Build Folder
  • Look at Issues navigator (on the left panel) and see if you've got any warning to update to new settings. If so, do it.

Having the same issues, but respectfully I wanted to just say '1000 lines or more', like wow!? I didn't know myself until just a few years ago that there are some ideals we should all be heading towards and it's not classes with 1000 lines...check out Uncle Bob on YT, Clean Code, great learnings. Don't worry, when I started making Genesis games a long time ago...it was one source file of 10,000 lines - so have been there and back again! :-) Take care and I hope this helps...and we both find an Xcode solution.

yes, same issue here.

it's a huge bug in Xcode 13.

there was no issue in beta 1. the problem started from beta 4.

i thought it was fixed in the final release as it worked normally for a few hours. but now the same problem came back

I'm re-submitting this bug to Apple.

in the meantime, I'm back to working in Xcode 13 Beta 1 as there's no issue there.

Same boring issue.

I just found making "Show live issues" unchecked will avoid this typing issue for now (this checkbox is located at "General" tab of Xcode preferences).

Also experiencing these issues (slow typing, slow navigation) with XCode13. Albeit, my app is incredibly complex, multiple files, many containing thousands of lines of code. But XCode is a professional tool, and hasn't given me this kind of grief in the decade using it to build for the Apple eco system.

If this continues it may finally push me away from Apple development and move my work to "web applications" instead.

PS Unchecking Preferences->General->Show Live Issues helped but didn't completely solve the slowness issues for me.

Xcode 13.1 has been released, but does it actually address this issue at all?

what helped to me: Right-click on any opened tab, "Close other tabs". would not say it is now ideal, but much better than it was.

Having the same problem on 13.1 too. Regret updating from a perfectly working Xcode 12.

Still not fixed in Xcode 13.2 beta (13C5066c)

Hello there, any news about this bug? I really concern about this. Xcode 13 became unusable and the worst thing is you even can't run xcode12 on Monterey.

Xcode never had reputation as best IDE, but it seems Apple xcode team still trying as hard as possible to worsen it.

Same here, version 13 is unusable at the moment

Xcode 13.1 is an improvement for me, however when switching Schemes, Xcode becomes unresponsive (spinning colour wheel) for 7 minutes.

I am running on macOS Big Sur 11.5.1, and Xcode 13.1 (13A1030d). TYPING on Xcode is lagging behind my key strokes. It is very noticeable.

Our project file statistics are as follows.

github.com/AlDanial/cloc v 1.90  T=10.90 s (633.2 files/s, 119493.9 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Swift                         1423          54225          53795         179861
C++                            718          23035          29356         172582
C/C++ Header                  2318          45285         119736         168614
Objective-C                    795          26029          23481         139493
XML                            544            962            259          88535
C                              390          15042          23232          84013
JSON                           612              1              0          23249
Markdown                        56           6005              0          18062
Objective-C++                   33           1013            811           4091
Bourne Shell                     7            113            126            677
Pascal                           2             87            185            180
HTML                             1              5             12             32
YAML                             1              0              0              5
-------------------------------------------------------------------------------
SUM:                          6900         171802         250993         879394
-------------------------------------------------------------------------------

As you can see, it is a fairly large project. We are using CocoaPods to add dependencies as well (Firebase, Alamofire, GRDB). We are not using SwiftUI. User Interfaces are almost all developed using Storyboards and Nibs.

Xcode has had a few minor issues that didn't directly impacted my productivity. But with the latest version of Xcode, typing is extremely laggy. Almost as if the Autocompletion is running on the UI thread.

Apple please fix this please. If you can't manage the scale of this project, then at least consider opening up the IDE to be more tinkering-friendly. You've closed up the ecosystem and degrade your existing products which questions your values as an organization.

Every major version of Xcode gets slower and slower. Apple wants you to buy its latest computer device. Especially now M1 series computers

Just to make sure this thread gets the attention it deserves. I have the same issue on my brand new Macbook Pro 14" M1 Pro with a rather small and simple project. None of the suggestions above made any noticeable improvement, the only thing that works is to hide my SwiftUI previews...

Project stats:

find . -name '*.swift' | xargs wc -l | awk '{print $1, "***.swift"}'
58 ***.swift
36 ***.swift
40 ***.swift
65 ***.swift
180 ***.swift
70 ***.swift
70 ***.swift
71 ***.swift
147 ***.swift
67 ***.swift
70 ***.swift
35 ***.swift
102 ***.swift
89 ***.swift
194 ***.swift
74 ***.swift
319 ***.swift
115 ***.swift
183 ***.swift
123 ***.swift
84 ***.swift
38 ***.swift
87 ***.swift
22 ***.swift
476 ***.swift
14 ***.swift
30 ***.swift
21 ***.swift
26 ***.swift
27 ***.swift
2933 total

My Macbook's stats:

At this point I'm considering throwing all my iDevices out of the window as well and start a new career as a barista.

Xcode 13 typing is delayed / really slow
 
 
Q