iOS用のfacebook SDK 3.5をセットアップしようとしています。正常に動作するようになりましたが、現在クラッシュしています。クラッシュは、ユーザーがデフォルトの iOS facebook 設定 (アプリ ストアの facebook アプリケーションではなく AKA) を使用してログインした場合にのみ発生するようです。Facebook の「ログイン」ビューがタップされると、特にアプリがクラッシュします。
クラッシュは次のとおりです: エラー: [NSError fberrorShouldNotifyUser]: 認識されないセレクターがインスタンスに送信されました。
私はいくつかの調査を行い、一部の人々は -Objc を「他のリンカーフラグ」に配置することを提案しています。私はそれを正確には持っていませんが、似たようなものを持っていると思います。他のライブラリには他のオプションが必要でした。ここに私のオプションがあります:
これが問題の原因であるかどうか、誰にも教えてもらえますか? そうでない場合、クラッシュの原因を本当に知っている人はいますか? ありがとう!
編集
最初の「if」でこのメソッドでエラーが発生しているようです
- (void)loginView:(FBLoginView *)loginView
handleError:(NSError *)error {
NSString *alertMessage, *alertTitle;
if (error.fberrorShouldNotifyUser) // CRASH HERE {
// If the SDK has a message for the user, surface it. This conveniently
// handles cases like password change or iOS6 app slider state.
alertTitle = @"Facebook Error";
alertMessage = error.fberrorUserMessage;
} else if (error.fberrorCategory == FBErrorCategoryAuthenticationReopenSession) {
// It is important to handle session closures since they can happen
// outside of the app. You can inspect the error for more context
// but this sample generically notifies the user.
alertTitle = @"Session Error";
alertMessage = @"Your current session is no longer valid. Please log in again.";
} else {
// For simplicity, this sample treats other errors blindly.
alertTitle = @"Unknown Error";
alertMessage = @"Error. Please try again later.";
NSLog(@"Unexpected error:%@", error);
}
}