ASIHTTPRequest 构建/链接错误 [英] ASIHTTPRequest build / link error

查看:27
本文介绍了ASIHTTPRequest 构建/链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

- (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 ld 中的 objc-class-ref-to-ASIHTTPRequest:找不到符号 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆