这是错误报告
Crashed: com.apple.main-thread
0 libswiftCore.dylib 0x103c2faa4 swift_getObjectType + 60
1 0x102e3dc58 @objc AppDelegate.application(UIApplication, open : URL, sourceApplication : String?, annotation : Any) -> Bool (AppDelegate.swift)
2 0x102f5e730 -[FIRAuthAppDelegateProxy object:selector:application:openURL:sourceApplication:annotation:] + 4303562544
3 0x102f5d8e4 __47-[FIRAuthAppDelegateProxy initWithApplication:]_block_invoke.199 + 4303558884
4 0x102ee6aa0 -[FIRAAppDelegateProxy application:openURL:sourceApplication:annotation:] + 4303071904
5 UIKit 0x18e064acc __58-[UIApplication _applicationOpenURLAction:payload:origin:]_block_invoke + 880
在Facebook应用程序用户授权访问后,它崩溃并转回我的应用程序。
知道问题可能是什么样的?
答案 0 :(得分:0)
设置此代码.in app delegate
//For Facebook
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool
{
return FBSDKApplicationDelegate.sharedInstance().application(app, open: url, options: options)
}