FBSDKCoreKit and the include of non-modular header inside framework module errors

2.9k Views Asked by At

None of the following threads (and many similar) helped me:

Include of non-modular header inside framework module

XCode6: Receiving error "Include of non-modular header inside framework module"

While trying to install the Facebook SDK in my iOS project via cocoapods, I ran into that error:

Inside the FBSDKCoreKit.h header:

Include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKCoreKit'

enter image description here

As I said, I tried the solutions proposed in the answers above without any success.

It's important to mention that this use to work fine on Xcode 7.

3

There are 3 best solutions below

0
JAL On

Upgrading to the latest version of CocoaPods (1.5.3), the latest Facebook SDK, removing my Pods folder, and doing a fresh pod install fixed this issue for me.

1
Pim de Witte On

enter image description here

Turn on allowing modular headers

0
Murat Yasar On

Just deleted the Swift Package Manager Facebook library and run a pod update