我的应用程序的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;
}
到目前为止,我尝试的是更新 pod 文件并删除一些像这样的错误:
APPNAME [Debug]
目标会覆盖ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
“Pods/Target Support Files/Pods-APPNAME/Pods-APPNAME.debug.xcconfig”中定义的构建设置。这可能会导致 CocoaPods 安装出现问题
但没有成功。有人可以帮我解决这个问题吗?
编辑:这是用 Swift 编写的 FBSDKGraphRequest:
函数 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)