27

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.

JAL
  • 41,701
  • 23
  • 172
  • 300
Malloc
  • 15,434
  • 34
  • 105
  • 192

3 Answers3

4

enter image description here

Turn on allowing modular headers

Pim de Witte
  • 373
  • 2
  • 10
0

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.

JAL
  • 41,701
  • 23
  • 172
  • 300
0

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

Murat Yasar
  • 994
  • 9
  • 24