FBSDKCoreKit/FBSDKCoreKit.h not found error

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

    I had this problem when upgrading to Xcode 8 and was able to solve it by changing

    #import <FBSDKCoreKit / FBSDKCoreKit.h>

    to

    #import <FBSDKCoreKit/FBSDKCoreKit.h>

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

    I have the same issue.I use Facebook SDK version 4.10.0.
    I known my solution is not good but worked for me. I changed the Facebook source code. Changed the import file path from #import <FBSDKCoreKit/FBSDKCoreKit+Internal.h> to #import <FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h>

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

    I had a similar issue, and could not resolve the compiler error anyway.

    I followed and performed the exact integration steps a few times, until I noticed that I have a copy of the FBSDKCoreKit.framework inside my project folder (happened probably by a mistake). In addition the Framework Search Paths already contains $(PROJECT_DIR) besides /Users/{username}/Documents/FacebookSDK.

    So I've removed the copy of the FBSDKCoreKit.framework from the project's directory and now everything works fine.

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

    For people moving from Carthage to Cocoapods make sure to remove the Carthage references of the FBSDKCoreKit from the Link Binary With Libraries under Build Phases option.

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

    Change the /Users/[username]/Documents/FacebookSDK/ directory to Documents/FacebookSDK like so:

    xcode

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

    I had to move FacebookSDK path in Framework Search Paths above $(PROJECT_DIR)

    $(SRCROOT)/../../../Documents/FacebookSDK
    $(inherited)
    $(PROJECT_DIR)
    
    0 讨论(0)
提交回复
热议问题