ios - Firebase facebook 身份验证崩溃
问题描述
我的应用程序的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)
解决方案
推荐阅读
- contiki - 在 TSCH 时间表上分离 RPL 和应用程序时隙 (Contiki-NG)
- python - 遍历一系列以查找值 >= x 然后使用值
- jsp - 将属性从 jsp 传递到 servlet
- php - 如何为 chrome 或 firefox Offline 安装 xdebug 扩展?
- c# - Unity C# - 与圆柱体的碰撞球体 - 不触发圆柱体的侧面
- sql - T-SQL 交叉表计数查询
- python - 将过滤器应用于其父母循环内的孩子
- python - NLP - 检测单词含义的最佳/最准确方法是什么?
- scala - 来自 scala 的 gawk 命令在表达式错误中给出无效字符
- c++ - GLFW lambda 可以接受捕获参数吗?