8

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

According to this answer, I have to set the "target membership" to "public". However, I can't seem to find this in my inspector.enter image description here

I've already set the "Allow Non-module Includes in Framework Modules" to "Yes" in my build settings. I've also added a "Headers" to Build phase (putting the frameworks to "public"). Still has this compile error.

Note: I'm using 4.0.1, and according to changelogs (https://developers.facebook.com/docs/ios/change-log-4.x) there are no need for bridges anymore...

Community
  • 1
  • 1
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080

1 Answers1

2

I managed to fix this issue today by downloading v4.4.0, setting "Allow Non-module Includes in Framework Modules" to "No" and removing the includes from my bridging-Header.

enter image description here

Make sure to add your imports in the class/ViewController that you want to use the Facebook SDK in.

enter image description here

Swinny89
  • 7,273
  • 3
  • 32
  • 52