There is no such module FBSDKCoreKit error

I am trying to add the Facebook SDK to the iOS 9.0 Swift app in Xcode. I did the installation according to the instructions of FB-dev. However, when I add a header to my AppDelegate.m application file, FBSDKCoreKit, I continue to receive a message with the message "There is no such module" FBSDKCoreKit "."

Based on what I read elsewhere

  • I already cleaned the build and reinstalled Xcode and updated my OS X
  • I double-checked plist and FB files of frame files in the instructions, but nothing went missing.
  • I set "Allow non-modular inclusion in Framework modules" set to YES in the build settings.

Nothing seems to work. I don’t know where to go from here, and have done a lot of research trying to find a solution.

+5
source share
4 answers

When importing frameworks, make sure that you select " Copy as needed ." The version after Xcode 6.3 seems to be problematic if this part is NOT checked.

+8
source

I solved this by deleting the Framework and adding it again, right-clicking on the project-> Add Files ..., then select the framework and SELECT to copy the files if necessary. This is not what Facebook recommends, but it worked! I am using v4.6 from FBSDK and Xcode 7 beta 6. Hope this helps you and everyone who is facing the same problem :)

+6
source

With CocoaPods, swift 2.1, and iOS 9, I tried adding it to the bridge title, 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 */ 
+1
source

I had errors related to the AppCoda tutorial, which is not fully updated. I recommend following your own instructions. The problem for me was that I had to add frameworks to my project and then add the sdk search path. After that I could import without errors.

0
source

All Articles