ASIHTTPRequest build / link error

牧云@^-^@ 提交于 2019-12-20 05:13:20

问题


- (void)getFacebookProfile {
    NSString *urlString = [NSString stringWithFormat:@"https://graph.facebook.com/me?access_token=%@", [_accessToken stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
    NSURL *url = [NSURL URLWithString:urlString];
    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
    [request setDidFinishSelector:@selector(getFacebookProfileFinished:)];

    [request setDelegate:self];
    [request startAsynchronous];
}

The above method (from www.raywenderlich.com) fails with the following error:

Undefined symbols:

"_OBJC_CLASS_$_ASIHTTPRequest", referenced from: objc-class-ref-to-ASIHTTPRequest in FBFunViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status

What is the problem? Can someone help?


回答1:


Check the instructions here:

http://allseeing-i.com/ASIHTTPRequest/Setup-instructions

It seems likely one of the two steps listed has been skipped or not done correctly. Is it possible that you've not added ASIHTTPRequest.m to your project? or it's not been included in the target you're building?



来源:https://stackoverflow.com/questions/3742775/asihttprequest-build-link-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!