Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 beta 6 error: Attempt to serialize store access on non-owning coordinator

Tags:

xcode

ios

Anyone getting the following error with Xcode 8 beta 6: Attempt to serialize store access on non-owning coordinator? Any advice how to eliminate it would be greatly appreciated.

like image 648
fivewood Avatar asked Aug 18 '16 04:08

fivewood


1 Answers

I saw the same error on performing performFetch on iOS 10.0.1:

- (void) refreshFetchedResults:(NSFetchedResultsController *)controller {

    [self configureFetchRequest:controller.fetchRequest];

        NSError *error = nil;
        if (![controller performFetch:&error]) {
            DDLogError(@"Unresolved error %@, %@", error, [error userInfo]);
        }
    }
}

As reported here, performing a save on the managedObjectContext associated with the NSFetchedResultsController before executing performFetch stops the warning from appearing. (In my case, there were changes to be saved.)

like image 74
stephent Avatar answered Oct 17 '22 02:10

stephent