Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 6 GM: Constantly freezing / locking while editing Swift code

Since installing XCode 6 GM, it has been freezing and locking, showing the spinning wheel of death while I attempt to edit code that has syntax errors. Has anyone else seen this, and are there any known work-arounds?

I foolishly abandoned my cautious strategy of saving the previous version (Beta 7) and it appears that Beta 7 is no longer available for download. Are there any known archives of / for the link?

I have also posted to the dev forums and will follow up with a bug report, but it is hard to pin down the exact circumstances.

Edit:

Additonal Notes:

CPU: SourceKit Service is generally around 100%, but that has seem to have been the norm for the flavors of XCode, and the CPU seems to properly drop off when it finishes recompiling.

RAM: SourceKit is no longer exhibiting the memory leaks that used to cause it to halt and catch fire, memory does not appear to be a factor, and there are several ~ 5+ gigs to spare.

Environment:

Late 2012 Mac Mini, 16GB RAM OS X 10.9.4 (to be fair, this was new today as well, driven by the requirements of XCode 6 GM).

That said, only the software changed today.

Update

Apple claims that this bug is fixed in Beta 6.1, for what it's worth.

like image 990
Chris Conover Avatar asked Oct 31 '22 17:10

Chris Conover


1 Answers

You should look if you have any imports missing in your bridging header file. Sometimes even commented out imports will cause this behaviour. For me it was commented out Pixate Freestyle Cocoa Pod. I had to remove pod completely from my project to stop SourceKitService from crashing.

https://stackoverflow.com/a/25173389/527539

like image 169
pasevin Avatar answered Nov 08 '22 14:11

pasevin