"SourceKitService Terminated" when working in multiple Swift projects?

286 Views Asked by At

I'm trying to set up a CocoaTouch Framework project for iOS using Swift, but any time I add another project it freaks out and throws a "SourceKitService Terminated" error and the editor window goes black and white.

Here's what I'm able to do to reproduce the problem in XCode 6 Beta 4:

  • Create a new "CocoaTouch Framework" for iOS, named "Testing" with the organization "Test" (I've tried it with other names/organizations, it doesn't seem to be related to that).
  • Create a new Swift file within the "Testing" folder called "File.swift". I didn't add any code besides the "import Foundation" that the template comes with
  • Create another "CocoaTouch Framework" project, leaving all the defaults but changing the name to "TestTwo."
  • Add a "File.swift" file to the TestTwo folder, then start typing "class" or something else underneath "import Foundation".
  • The editor crashes with a "SourceKitService Terminated" error

Can anyone else reproduce this, or is it something wrong with my installation? I've tried reinstalling, but it doesn't seem to fix the problem.

Thanks,

Matthew

1

There are 1 best solutions below

2
On

Dear Matthew

I had the same problem although the problem is in your code , I know Xcode 6 beta is not very polished but this is the very simple code I wrote for this project:

override func override func touchesMoved(touches: NSSet!, withEvent event: UIEvent!) { for touch: AnyObject in touches {

    }
}

My brand new iMac freaked out. So this is probably not the best answer although I hope it helps. You have probable tried doing a new file but the problem is in that code somewhat . If I were you I would take the override functions first and see what happens because they are what have been causing trouble on my part.

Hope it helps,

Jules Olds