No such module FBSDKCoreKit error

后端 未结 4 829
别跟我提以往
别跟我提以往 2020-12-19 12:12

I am trying to add the Facebook SDK to my iOS 9.0 Swift app in Xcode. I did the install according to the FB-dev instructions. However, when I add the header to my AppDelegat

相关标签:
4条回答
  • 2020-12-19 12:27

    I solved 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. It's not what Facebook recommends, but 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-19 12:29

    When you are importing the frameworks, Make sure you have selected "Copy if needed" . Version after Xcode 6.3 seem to be giving issues if this part is NOT ticked.

    0 讨论(0)
  • 2020-12-19 12:34

    With CocoaPods, swift 2.1, and iOS 9, I tried adding it to the bridge header and it works fine, for example:

    #ifndef MY_Bridge_Header_h
    #define MY_Bridge_Header_h
    
    #import <FBSDKCoreKit/FBSDKCoreKit.h>
    #import <FBSDKLoginKit/FBSDKLoginKit.h>
    // ... other imports
    
    #endif /* MY_Bridge_Header_h */
    
    0 讨论(0)
  • 2020-12-19 12:44

    I had errors following alongside the AppCoda tutorial which is not fully up to date. I recommend following Facebooks own instructions. The issue for me was that I had to add the frameworks to my project and then add sdk search path. After that I could import without an error.

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