【发布时间】:2020-07-24 01:14:05
【问题描述】:
我看到了一些类似的主题和可能的解决方案,但它们都是 1 年以上的,我认为与更新版本无关。
我使用的是 swift 5,以及与 FBSDKLoginKit (~> 5.0) 兼容的 FirebaseUI 8.4.2。 (也使用 ios 12.2)
我的 info.plist 包括 fbauth2 并且我已经包括了应用程序传输安全设置 --> 允许任意加载 = YES,这是为 ios 9 添加的。
在我的 appDelegate 中有
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FirebaseApp.configure()
let db = Firestore.firestore()
//facebook login
//ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
FBSDKCoreKit.ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
let handled = ApplicationDelegate.shared.application(app, open: url, options: options)
return handled
}
感觉我已经用尽了其他线程中的所有解决方案,所以如果有人有更新的解决方法,请在下面发布。
点击登录按钮后收到此消息:
【问题讨论】:
标签: ios swift facebook facebook-login swift5