I\'m getting locks in Core Data. I really don\'t understand the reason. Because I\'m creating a background MOC when I\'m processing in a background thread. Below you can see wha
Not totally sure if this applies to you but I was getting similar errors. I solved them by
Using NSPrivateQueueConcurrencyType
not NSConfinementConcurrencyType
to take processing off the main thread.
Putting executeFetchRequest
inside MOC's performBlockAndWait
.
So in CoreDataHelper.m's fetchEntity method you would have something like this:
[context performBlockAndWait:^{
NSError *error = nil;
NSArray *entities = [context executeFetchRequest:request error:&error];
}];