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

后端 未结 2 2061
名媛妹妹
名媛妹妹 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:53

    if you are trying to add it using cocoapods just add versions and it will work

    change the pod file to the following:

    pod 'FBSDKCoreKit', '~> 4.17.0'
    pod 'FBSDKLoginKit', '~> 4.17.0'
    pod 'FBSDKShareKit', '~> 4.17.0'
    

提交回复
热议问题