When i was in Xcode 6 i had no problem but now that i've downloaded the 6.1 version my app crashes. I have debugged my app and found that the problem was here:
lazy var managedObjectContext: NSManagedObjectContext? = {
// Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.) This property is optional since there are legitimate error conditions that could cause the creation of the context to fail.
let coordinator = self.persistentStoreCoordinator
if coordinator == nil {
return nil
}
var managedObjectContext = NSManagedObjectContext()
managedObjectContext.persistentStoreCoordinator = coordinator
return managedObjectContext
}()
When my app enter this part of code xcode says:
dyld`dyld_fatal_error:
0x2be220c4: trap //There is a breakpoint here
0x2be220c8: nop
Does anyone knows how to fix this ?