Ios RestKit,RKEntityMapping故障与响应描述符

Ios RestKit,RKEntityMapping故障与响应描述符,ios,objective-c,rest,core-data,restkit,Ios,Objective C,Rest,Core Data,Restkit,我正在尝试将RestKit与RKEntityMapping结合使用;( 救命啊 json此处: 错误: Error Domain=org.restkit.restkit.ErrorDomain Code=1001“没有与加载的响应匹配的响应描述符。”UserInfo={NSLocalizedFailureReason=从URL“”加载了一个200响应,该URL未能匹配所有(0)响应描述符:,NSErrorFailingURLStringKey=,NSErrorFailingURLKey=,NS

我正在尝试将RestKit与RKEntityMapping结合使用;( 救命啊

json此处:

错误:

Error Domain=org.restkit.restkit.ErrorDomain Code=1001“没有与加载的响应匹配的响应描述符。”UserInfo={NSLocalizedFailureReason=从URL“”加载了一个200响应,该URL未能匹配所有(0)响应描述符:,NSErrorFailingURLStringKey=,NSErrorFailingURLKey=,NSUnderlyingError=0x1700562f0{Error Domain=org.restkit.restkit.ErrorDomain Code=1001“在搜索的关键路径中未找到可映射的对象表示形式。”UserInfo={NSLocalizedDescription=在搜索的关键路径中未找到可映射的对象表示形式。NSLocalizedFailureReason=映射操作无法在搜索的关键路径中找到任何嵌套对象表示形式: 发现输入到映射器的表示在以下关键路径中包含嵌套对象表示:匹配、responderId、responseData、responseDetails、responseStatus 这可能表示您错误配置了映射的键路径。keyPath=null,DetailedErrors=( )}},keyPath=null,NSLocalizedDescription=没有与加载的响应匹配的响应描述符。}


我忘了添加关系。这对我很有帮助

RKRelationshipMapping *res = [RKRelationshipMapping relationshipMappingFromKeyPath:@"responseData" toKeyPath:@"responseData" withMapping:responseMapping];

 RKRelationshipMapping *matchRelation = [RKRelationshipMapping relationshipMappingFromKeyPath:@"matches" toKeyPath:@"matches" withMapping:matchMapping];


[globalMappig addPropertyMapping:matchRelation];
[globalMappig addPropertyMapping:responseRelation];
RKRelationshipMapping *res = [RKRelationshipMapping relationshipMappingFromKeyPath:@"responseData" toKeyPath:@"responseData" withMapping:responseMapping];

 RKRelationshipMapping *matchRelation = [RKRelationshipMapping relationshipMappingFromKeyPath:@"matches" toKeyPath:@"matches" withMapping:matchMapping];


[globalMappig addPropertyMapping:matchRelation];
[globalMappig addPropertyMapping:responseRelation];