EI-01
EI-01

Reputation: 1095

Failed to import bridging header facebook sdk

Hello guys I got this error when attempting to compile my file in swift: enter image description here

I have added the frameworks: FSBDKCoreKit, FBSDKLoginKit, FBSDKShareKit, and Bolt to my root folder and not my xcodeprojectworkspace. But I'm receiving these errors. Please I need some assistance.

Also i added the frameworks in DealsApp-Bridging-Header: enter image description here

Upvotes: 1

Views: 214

Answers (2)

toiavalle
toiavalle

Reputation: 434

I had the same problem some days ago. Couldn't find why but when I tried to install the sdk with cocoa pods instead of just dragging the files it just worked. Give this a try: https://edbinx.com/apple/ios/use-facebook-fbsdk-swift-cocoapods-ios-9-13369.html

Upvotes: 1

seeyoulater
seeyoulater

Reputation: 11

From Errors, I think you need to add

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>

in your file "DealsApp-Bridging-Header.h"

Upvotes: 0

Related Questions