FBSDKCoreKit/FBSDKCoreKit.h not found error

后端 未结 27 1946
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 11:07

I am implementing FB Login so i Downloaded the SDK from https://developers.facebook.com/docs/ios. then i drag n down FBSDKCoreKit, FBSDKLoginKit a

27条回答
  •  情歌与酒
    2020-12-04 11:28

    For React Native devs:

    Recommended steps to be done :

    1.Make sure that the Facebook SDK frameworks are installed in ~/Documents/FacebookSDK.

    2)Make sure that FBSDK[Core, Login, Share]Kit.framework show up in the Link Binary with Libraries section of your build target's Build Phases.

    3)Make sure Framework Search Path of your build target's Build Settings is

    $(HOME)/Documents/FacebookSDK

    instead of

    ~/Documents/FacebookSDK 
    

    If it still doesn't work for you then:

    1)sudo chmod -R 755 ~/Documents/FacebookSDK

    2) set the path of framework search path of RCTFBSDK.xcodeproj to

      $(HOME)/Documents/FacebookSDK 
    

    (under libraries of your project folder ) set RCTFBSDK framework searchpath as here

    clean your project (command+ shift + k ) and build.

提交回复
热议问题