Firebase Facebook認証が正常に機能するアプリがあります...その後、コードを変更せずにクラッシュし始め、出力にエラーメッセージが表示されません。唯一の手がかりは、ハイライトされた行で、問題。それはこの行です:
return ((Implmentation)originalImplementation)(object, selector, application, url,
sourceApplication, annotation);
FIRAuthAppDelegateProxy.m ファイルで、関数全体は次のとおりです。
- (BOOL)object:(id)object
selector:(SEL)selector
application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
if (object == _appDelegate && [self delegateCanHandleURL:url]) {
return YES;
}
IMP originalImplementation = [self originalImplementationForSelector:selector];
if (originalImplementation && originalImplementation != &noop) {
typedef BOOL (*Implmentation)(id, SEL, UIApplication*, NSURL *, NSString *, id);
return ((Implmentation)originalImplementation)(object, selector, application, url,
sourceApplication, annotation);
}
return NO;
}
私がこれまでに試みたのは、ポッドファイルを更新し、次のようないくつかのエラーを削除することでした:
ターゲットは、「Pods/Target Support Files/Pods-APPNAME/Pods-APPNAME.debug.xcconfig」で定義され
APPNAME [Debug]たビルド設定をオーバーライドします。ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIESこれにより、CocoaPods のインストールで問題が発生する可能性があります
しかし、成功せずに。誰でもこれで私を助けることができますか?
編集: Swift で書かれた FBSDKGraphRequest は次のとおりです。
func fetchProfile() {
if FBSDKAccessToken.current() == nil
{
print("here we are fetching the profile the token was nil")
let parameters = ["fields": "id, email, first_name, last_name, picture.type(normal)"]
FBSDKGraphRequest(graphPath: "me", parameters: parameters).start { (connection, result, error) in
if error != nil
{
print(error!)
return
}
print("here paramateres", parameters)