Facebook SDK 3.0.8をダウンロードし、指示に従って使用しています(フレームワークとリソースバンドルをドラッグします)。
認証しようとしましたが、正常に機能します。それから私はします:
FBRequest *me = [FBRequest requestForMe];
[me startWithCompletionHandler: ^(FBRequestConnection *connection,
NSDictionary<FBGraphUser> *my,
NSError *error) {
}];
完了ハンドラー内にはユーザーオブジェクトがあるので、すべてが正しく機能しました。(私はmy.idをNSLogしたので、これを知っています)しかし、その直後に、このスタックトレースで認識されないセレクター例外が発生します。
objc_exception_throw ()
-[NSObject doesNotRecognizeSelector:] ()
___forwarding___ ()
_CF_forwarding_prep_0 ()
-[SBJSON objectWithString:allowScalar:error:]
-[SBJSON objectWithString:allowScalar:error:]
-[SBJSON objectWithString:error:]
-[FBRequestConnection parseJSONOrOtherwise:error:]
-[FBRequestConnection parseJSONResponse:error:statusCode:]
-[FBRequestConnection completeWithResponse:data:orError:]
__68-[FBRequestConnection startWithCacheIdentity:skipRoundtripIfCached:]_block_invoke_0
-[FBURLConnection invokeHandler:error:response:responseData:]
-[FBURLConnection connectionDidFinishLoading:]
これはシミュレーターでは発生せず、私のデバイスでのみ発生します。私は5.1.1を実行しているiPhone4Sを使用しています。