After updating Xcode to version 15.0.1, all files containing UIViewController open with a delay of 30 seconds, regardless of the number of lines. My colleagues have a shorter delay - 15 seconds. In version 15.2 the problem persists. The rest of the files, regardless of the number of lines, are loaded just as quickly (1-2 seconds) as in version 14.3. Please tell me how to solve this problem?
Delay when opening files like ViewControllers on Xcode version 15.0.1 and higher
I have MacBook with Apple M1, 16 GB, macOS 13.6.1
My colleagues and I discovered another feature. The delay in opening the UIViewController file only occurs if the 'guard let' construct is used in it. If you comment it out, the file loads quickly.
Some controllers start to load quickly after the "guard let" instruction has been removed from the code. Some controllers take a long time to load even without using the guard let instruction. But after formatting the file using swiftformatter, which only removes tabs on the delimiting blank lines, the file opens quickly.
Some controllers start to load quickly after the "guard let" instruction has been removed from the code. Some controllers take a long time to load even without using the guard let instruction. But after formatting the file using swiftformatter, which only removes tabs on the delimiting blank lines, the file opens quickly.