I'm trying to integrate the facebook login into my swift app by following this tutorial.
I got to step 5, everything runs without errors so far. (i downloaded the SDK, added the core and login frameworks to my project, changed the info.plist file) I created the bridging file (at this point still compiles without errors) then I import the headers in my bridging file:
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
and now I get the following errors:
Could not build module FBSDKCoreKit
Could not build module FBSDKLoginKit
as well as
Failed to import Bridging Header
Things I have tried so far:
The FB libraries are linked.
I checked that the Objective-C Bridging Header has the correct path to my bridging header path.
Changed the "Always Search User Paths" key from build settings->search paths to yes.
I set the "User Header Search Paths" to my project root path.
I have also tried solutions to similar questions I have found but nothing worked and now I am really stuck.
Any help would be greatly appreciated!
EDIT:
Still didn't manage to solve this problem but I might have found a way to work around it. In the stated case I was using the fb sdk for iOS until I found one specific for Swift which I installed using cocoapods. (and, yes it works now)