FBSDKLoginManager: undefined symbols for architecture x86_64 + linker command failed with exit code 1

后端 未结 2 2066
名媛妹妹
名媛妹妹 2021-02-19 21:14

I just upgraded Facebook iOS SDK to v.4.0.1 and I got these errors:

Undefined symbols for architecture x86_64:
  \"_OBJC_CLASS_$_FBSDKLoginManager\", referenced          


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-19 21:49

    I ran into the same problem. If you're adding Facebook Login to your app (which I presume you are) you also need to drag the FBSDKLoginKit.framework file into your Xcode project in addition to the FBSDKCoreKit.framework file.

    The current instructions on Facebook's SDK Getting Started page forget to mention this. In version < 4 of the SDK, there was just one file to drag in to your project.

提交回复
热议问题