ASIHTTPRequest构建/链接错误 [英] ASIHTTPRequest build / link error
问题描述
- (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];
}
上述方法(来自 www.raywenderlich.com )由于以下错误而失败:
The above method (from www.raywenderlich.com) fails with the following error:
未定义符号:
"_ OBJC_CLASS _ $ _ ASIHTTPRequest",引用自: FBFunViewController.o中的objc-class-ref-to-ASIHTTPRequest.old:找不到符号collect2:ld返回1退出状态
"_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?
推荐答案
在此处查看说明:
http://allseeing-i.com/ASIHTTPRequest/Setup-instructions
似乎列出的两个步骤之一已被跳过或未正确完成.您是否可能没有将ASIHTTPRequest.m添加到您的项目中?还是没有将其包含在您要建立的目标中?
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?
这篇关于ASIHTTPRequest构建/链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!