Here\'s how I replicate the bug. So here\'s the code I have for logging in:
@IBAction func FBLoginAction(_ sender: AnyObject) {
fbLoginManager.loginBehavior
I reverted to version 4.17.0 of the Facebook SDK and I no longer get the crash.
If you are using version 4.18.0 of the Facebook SDK, then update it to 4.19.0 or to the current version and you won't get the crash.
Make sure you have no restricted versions of FBSDK
in your Podfile
, like so:
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
Then do the pod update
. Don't put a --no-repo-update
to let your local specs repos be updated.
Latest local specs repositories will let you be able to download the latest version of FBSDK
, which is the 4.19.0
.