FBSDKCoreKit/FBSDKCoreKit.h not found error

后端 未结 27 1694
伪装坚强ぢ
伪装坚强ぢ 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

    I got to solve this by deleting the Framework and adding it again by right click on the project->Add files..., then choose the framework and SELECT the option to Copy files if needed. I know it's not what Facebook recommends, but I couldn't make it work doing that, but this way it worked! I'm using v4.6 of FBSDK and Xcode 7 beta 6. Hope it helps you and everyone else who's facing the same problem :)

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-04 11:28

    I have installed react-native-fbsdk and link using react-native-link react-native-fbsdk.

    Follow instruction of following link

    https://developers.facebook.com/docs/react-native/configure-ios

    This provide to link react-native library using ios_setup.js There are following step which i have followed.

    1. Setup on facebook developer account.

    2. Install the file ios_setup.js by executing the following command in a command prompt at your project's root folder.

    curl -O https://raw.githubusercontent.com/facebook/react-native-fbsdk/master/bin/ios_setup.js

    1. Install the plist package, the xcode package, and the adm-zip package, by executing the following command. npm install plist xcode adm-zip
    2. Run the script ios_setup.js by executing the following command, and insert your app's App ID and App Name. If the name of your app is more than one word long, then enclose it between quotation marks.

    node ios_setup.js [App ID] [App Name]

    When run node ios_setup.js it wll automatically link all files in ios.

    0 讨论(0)
  • 2020-12-04 11:28

    Had a same error in FBSDKLoginKit

    If you use multiple pod projects

    install! 'cocoapods',
      :generate_multiple_pod_projects => true
    

    Then you should force cocoapods to put all of FBSDK pods into a same project to make private headers visible

    pod 'FBSDKCoreKit', '5.11.0', :project_name => 'FBSDK'
    pod 'Bolts', '1.9.0', :project_name => 'FBSDK'
    pod 'FBSDKShareKit', '5.11.0', :project_name => 'FBSDK'
    pod 'FBSDKLoginKit', '5.11.0', :project_name => 'FBSDK'
    
    0 讨论(0)
  • 2020-12-04 11:30

    Make sure to follow this step:

    Deselect Copy items into destination group's folder. https://developers.facebook.com/docs/ios/getting-started/

    Also, in your Build Settings, look at this field: "Framework Search Paths" You should have something like this:

    /Users/[username]/Documents/FacebookSDK

    or for a more general config

    ~/Documents/FacebookSDK

    Also, look at Finder and make sure that the framework is actually there

    0 讨论(0)
  • 2020-12-04 11:33

    For Xcode 7.3, the below worked for me. Follow the steps mentioned on FB's guide and additionally do the below:

    step 1. go to Document/FacebookSDK folder

    step 2. Click FBSDKCoreKit.framework

    step 3. In this folder Remove Modules folder and then drag and drop in your Xcode Project.

    References : https://stackoverflow.com/a/29532202

    Thanks

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