With second line something wrong, what?
let modelURL = NSBundle.mainBundle().URLForResource("xxx", withExtension: "momd");
let managedObjectModel = NSManagedObjectModel.init(contentsOfURL: modelURL)
With second line something wrong, what?
let modelURL = NSBundle.mainBundle().URLForResource("xxx", withExtension: "momd");
let managedObjectModel = NSManagedObjectModel.init(contentsOfURL: modelURL)
In my case I had imported missing files in bridged header. After I deleted it the error notification gone.
the issue is the ";"
letter end of the first line, I removed it, and now it works, no popup anymore, that was an interesting side effect
In my case, I created about 6+ swift files for one or two targets and SourceKit Service Failure errors occurred. I found I was importing Frameworks that I was not using. So I deleted many of the import lines across the .swift files. For me, it was helpful; I am getting (much) less error.
Hope this helps.
KW
I run across this every once in a while too. As near as I can tell, it's an issue that occurs when you try to do something that the type checker doesn't think is valid - I run across it a lot when writing for-in loops. You should file a bug report, detailing what code, exactly, produces the error.
For now, you'll probably have to play with it until you find a combination that doesn't make the realtime-compiler angry.
Set the target to 7.1 fix my issue. Hope this helps you.
Update: I have a working solution here, works for me:
Error Xcode 6 --> Error SourceKit terminated. Editor functionality temporarily limited
Hope can help