Objective c RestKit 0.20映射问题

Objective c RestKit 0.20映射问题,objective-c,xcode,http,core-data,restkit,Objective C,Xcode,Http,Core Data,Restkit,当我发出请求并试图将响应放入核心数据时,会出现以下错误 Performing managed object mapping with a nil managed object cache: Unable to update existing object instances by identification attributes. Duplicate objects may be created. 我设置了identifactionAttributes,并使用对象管理器配置请求操作。

当我发出请求并试图将响应放入核心数据时,会出现以下错误

Performing managed object mapping with a nil managed object cache:
Unable to update existing object instances by identification attributes. Duplicate objects     may be created.
我设置了identifactionAttributes,并使用对象管理器配置请求操作。我仍然收到“无法更新现有对象实例…”


我没有配置与对象管理器的核心数据集成。如果您有同样的问题,您应该这样做:

NSManagedObjectModel *managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];
RKManagedObjectStore *managedObjectStore = [[RKManagedObjectStore alloc] initWithManagedObjectModel:managedObjectModel];
NSString *path = [RKApplicationDataDirectory() stringByAppendingPathComponent:@"Store.sqlite"];
[managedObjectStore addSQLitePersistentStoreAtPath:path fromSeedDatabaseAtPath:nil withConfiguration:nil options:nil error:nil];
[managedObjectStore createManagedObjectContexts];

你收到的信息只是一个警告。你只是想摆脱这个警告吗?还是你有更大的问题?数据库中根本没有存储对象吗?数据库中没有存储对象。。。
NSManagedObjectModel *managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];
RKManagedObjectStore *managedObjectStore = [[RKManagedObjectStore alloc] initWithManagedObjectModel:managedObjectModel];
NSString *path = [RKApplicationDataDirectory() stringByAppendingPathComponent:@"Store.sqlite"];
[managedObjectStore addSQLitePersistentStoreAtPath:path fromSeedDatabaseAtPath:nil withConfiguration:nil options:nil error:nil];
[managedObjectStore createManagedObjectContexts];