XCode 13.2 Freezes When opening Large Swift File

Everytime I am trying to open a large swift file 1 MB XCode freezes for about 15 mins until it finally opens the file?

Have you a lot of frameworks referenced in the file ? Is it a code file ?

It is the swift file with more than 10k Line of code all of them are string properties for translations.

I have the same issue starting with Xcode 13, with Xcode 12 it was working fine

Yeah, that is too big of a file, break it down into extensions and you will make it easier for the indexer. Try getting Xcode 13.2.1

XCode 13.2 Freezes When opening Large Swift File
 
 
Q