I am getting an exception with MagicalRecord version 2.0.7
whenever I launch the app, it crashes with this exception:
*** Assertion failure in +[NSManagedObjectContext MR_defaultContext]
I ma configuring coredata like this:
In appdelegate didFinishLaunchingWithOptions method:
In appdelegate applicationWillTerminate:
I noticed the crash is caused by this statement where I try to remove all records on an entity:
NSManagedObjectContext *localContext = [NSManagedObjectContext MR_contextForCurrentThread];
Am I missing something? Thanx
@mal3k, can you try this with a more recent release of Magical Record? 2.2 is the current release at the time of this reply.
Also, are you saving the changes to the context, or just working with them in memory?
Given the age of this issue, and the volume of issues we have to work through, I've decided to close this alongside a number of other older issues.
If you can still replicate the issue under the latest in-development version of MagicalRecord (3.0 at the time of writing), please feel free to re-open and one of @magicalpanda/team-magicalrecord will take another look. Thanks!