升级到Xcode 9.3后,IOS Facebook登录不起作用
在将Xcode升级到9.3并更新iPhone之后,我的应用程序最近开始崩溃。不幸的是,当它崩溃时,它给我的信息很少 我已经设置了断点,我知道它正好在我调用loginManager.login()的那一行崩溃 有没有其他人在Facebook登录正常的情况下体验过这个/升级到9.3?感谢您的帮助升级到Xcode 9.3后,IOS Facebook登录不起作用,ios,swift,facebook,facebook-graph-api,facebook-login,Ios,Swift,Facebook,Facebook Graph Api,Facebook Login,在将Xcode升级到9.3并更新iPhone之后,我的应用程序最近开始崩溃。不幸的是,当它崩溃时,它给我的信息很少 我已经设置了断点,我知道它正好在我调用loginManager.login()的那一行崩溃 有没有其他人在Facebook登录正常的情况下体验过这个/升级到9.3?感谢您的帮助 干杯您是否尝试更新Facebook登录SDK?当更新Xcode并卸载和安装Facebook SDK时,我也遇到了问题…@Felipe Ferri感谢您的建议,我一定会尝试! /** Defines wha
干杯您是否尝试更新Facebook登录SDK?当更新Xcode并卸载和安装Facebook SDK时,我也遇到了问题…@Felipe Ferri感谢您的建议,我一定会尝试!
/**
Defines what should happen when the sign in with facebook button is tapped.
If an error ocurrs, a hud is displayed to the user. If facebook authentication
is sucessful, firebase authentication is attempted.
*/
@objc func handleSignInWithFBonTapped() {
hud.textLabel.text = "Signing in with Facebook..."
hud.show(in: view, animated: true)
let loginManager = LoginManager()
loginManager.logIn(readPermissions: [.publicProfile, .email], viewController: self) { (result) in
switch result {
case .success(grantedPermissions: _, declinedPermissions: _, token: _):
self.signIntoFirebase()
case .failed(let err) :
print(err)
Service.dismissHud(self.hud, text: "Error", detailText: "Failed to retrieve user with error: \(err).", delay: 3)
case .cancelled :
Service.dismissHud(self.hud, text: "Cancelled", detailText: "Facebook login cancelled", delay: 1)
}
}
}