首页 > 代码库 > 关于coredata存储,出现The operation couldn’t be completed. (Cocoa error 133020.)的错误解决方案

关于coredata存储,出现The operation couldn’t be completed. (Cocoa error 133020.)的错误解决方案


self.context=[[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
    [self.context setPersistentStoreCoordinator:dm.PSC];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mocDidSaveNotification:) name:NSManagedObjectContextDidSaveNotification object:nil];
    [self.context setMergePolicy:NSMergeByPropertyObjectTrumpMergePolicy];//重要!!!


关于coredata存储,出现The operation couldn’t be completed. (Cocoa error 133020.)的错误解决方案