1
- (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];
}

上記の方法 ( w​​ww.raywenderlich.comから) は、次のエラーで失敗します。

未定義のシンボル:

「_OBJC_CLASS_$_ASIHTTPRequest」、参照先: FBFunViewController.o ld の objc-class-ref-to-ASIHTTPRequest ld: シンボルが見つかりません collect2: ld が 1 つの終了ステータスを返しました

何が問題ですか?誰か助けてくれませんか?

4

1 に答える 1

4

こちらの手順を確認してください。

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

リストされている 2 つの手順のいずれかがスキップされたか、正しく実行されていないようです。プロジェクトに ASIHTTPRequest.m を追加していない可能性はありますか? それとも、あなたが構築しているターゲットに含まれていませんか?

于 2010-09-19T00:47:40.487 に答える