Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receiving “Include of non-modular header inside framework module” while compiling Swift

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...

like image 539
TIMEX Avatar asked Apr 03 '15 20:04

TIMEX


Video Answer


1 Answers

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

like image 51
Swinny89 Avatar answered Sep 28 '22 02:09

Swinny89