couldnât get XCTAssert(storeCoordinator.removePersistentStore(store, error: &error),
âcouldnât remove persistent store: (error)â) in teardown()
to work in swift 2.0 can anyone help? after upgrading
Copy the code in that method, then reimplement the didChangeObject method, and paste the code in. I just completed the tutorial. There should be no more major bugs that arenât already listed.
Iâm getting the same error after updating the swift version. Can you elaborate fibonnacired on how to resolve the error. I do not see the didChangeObject method implemented anywhere and seems to only be used as a parameter in the controller method. Iâm very new to swift so might be missing something completely obvious. Thanks.
I see now. Rewrite âpublic func controllerâ, tab to autocomplete, then paste in the code. Replaces âdidChangeObject anObject: NSManagedObjectâ with âdidChangeObject anObject: AnyObjectâ Thanks!
How do you test the behaviour of a method that uses internal private access method in its logic ? How to write mock to private method ? Does it make sense ?