In my case, I simply removed the 'FBSDKLoginKit' CocoaPod and installed the SPM version from Facebook iOS SDK. It works for me. You can follow the steps in the 'Facebook Login for iOS - Quickstart' guide here: https://developers.facebook.com/docs/facebook-login/ios.