I, like many others, have had issues with Xcode 6+ crashing. I get the SourceKit crashes as well as full application crashes. On a whim I figured I\'d try 6.1.1 (developer
There have been many solutions proposed over the years for this kind of bizarre Xcode behavior, so I have included all those steps as well; however, I have added a few of my own that (when done together and in order) have never failed to resolve every weird Xcode issue that I have come across.
PLEASE NOTE: Doing ALL of these steps (in order) can be CRITICAL. I realize that some of them at first glance seem like overkill or like they should not matter, but my experience has shown that each step plays a part in getting Xcode back into proper working order. Therefore, I do NOT recommend skipping any steps or changing their order.
With that said, if you discover the need to tweak the steps below, please do post a comment. Xcode does change constantly so these steps may also need change as well over time.
After Xcode crashes:
If simulator is still running make sure to select IOS Simulator->Reset Content And Settings before closing it.
Close Simulator (CMD-Q)
Window -> Organizer -> Delete derived data
If debugging on ANY devices, delete the app from the device and REBOOT the device completely.
Launch Xcode
Remove All breakpoints
Product -> (hold down Alt/option key) Clean Build Folder
Product -> Clean
Close Xcode again via Xcode->Quit Xcode (NOTE: Must be a GRACEFUL Exit, so Xcode can properly do a complete shutdown/cleanup cycle)
Reboot your Mac
Launch Xcode
If running in simulator, pick a different device to simulate than when it crashed.
Do a test run of your app (with no breakpoints)
If all goes well, start adding a breakpoints (All Exceptions is always a good starting point).
HAIL MARY CLAUSE (a.k.a. "The Corbomite Maneuver"): If doing all the above did not work then re-perform all the above steps again, but insert the following step between steps 9 and 10: 9A) Delete Xcode app and re-install Xcode.