1
我在RestKit是新我使用RKObjectMapping调用服务,但它的崩溃,错误日志是RestKit应用与[NSPathStore2 stringByAppendingQueryParameters:]:崩溃无法识别选择信息
2012-07-20 18:31:58.319 SampleRest[6589:207] -[NSPathStore2 stringByAppendingQueryParameters:]: unrecognized selector sent to instance 0x6d74c20
,这里是我的代码,我采写:
-(void) callService {
RKObjectMapping *rk = [RKObjectMapping mappingForClass:[vo class]];
[rk mapKeyPath:@"id" toAttribute:@"primaryKey"];
[rk mapKeyPath:@"opposing_team_name" toAttribute:@"opp_team_name"];
RKObjectManager *rkManager = [RKObjectManager objectManagerWithBaseURLString: @"http://hercules.softwaytechnologies.com/sportsapp_v3.0"];
[rkManager loadObjectsAtResourcePath:@"/event_games/get?application_id=1" delegate:self];
}
请帮帮忙,我是在做什么错误?
在此先感谢
安装的,我跟着这个链接:https://github.com/RestKit/RestKit /wiki/Installing-RestKit-in-Xcode-4.x – sachin 2012-07-20 13:06:55
这个问题相当频繁地出现。这是您的链接器标志的问题。你需要有-all_load和-ObjC,否则这些类别没有链接,你会得到这个崩溃。 – 2012-07-20 15:10:45
对于我来说,根据文档中的提示'如果您收到与选择器未找到相关的运行时错误,请尝试删除-all_load标志,我得到上述错误并删除了'-all_load'标志解决了我的问题。 – TimDog 2012-09-25 14:15:48