Edith
Edith

Reputation: 51

Failed to import bridging header FBSDKCoreKit/FBSDKCoreKit.h file not found

I am trying to add the Facebook login using Parse with swift and I have been following the iOS Developers guide. However it states swift compiler error: failed to import bridging header FBSDKCoreKit/FBSDKCoreKit.h file not found and the issue was found in the Test section on Xcode. Please can someone please help me to rectify this. Thank you very much.

Upvotes: 3

Views: 1160

Answers (2)

gkgn
gkgn

Reputation: 1

I've had the same problem. I CHECKED the option "Copy items if needed" and build succeeded.

works for XCode 7.1 , Facebook SDK 4.7.1

Upvotes: 0

DccBr
DccBr

Reputation: 1249

I just solved this exact problem by actually copying the Facebook desired frameworks (in my case CoreKit, LoginKit and ShareKit) from the ~/Documents/FacebookSDK folder to the project folder.

To achieve that, I just dragged the frameworks into the project folder on XCode, but I CHECKED the option "Copy items if needed".

After that, everything worked in the first build.

I'm using Facebook SDK 4.7 and XCode 7.1.

Upvotes: 1

Related Questions