facebook sdk crashes in application delegate

后端 未结 3 708
旧时难觅i
旧时难觅i 2021-02-04 17:47

Here\'s how I replicate the bug. So here\'s the code I have for logging in:

@IBAction func FBLoginAction(_ sender: AnyObject) {
    fbLoginManager.loginBehavior         


        
相关标签:
3条回答
  • 2021-02-04 17:48

    I reverted to version 4.17.0 of the Facebook SDK and I no longer get the crash.

    0 讨论(0)
  • 2021-02-04 17:56

    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.

    0 讨论(0)
  • 2021-02-04 18:04

    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.

    0 讨论(0)
提交回复
热议问题