3

I'm trying to build a Cocoa Touch Framework in Swift with AFNetworking integrated, among other things... in xCode 6.0.1 I keep getting the "include of non-modular header inside framework module 'MyFrameworkName' when I include the .h file in the MyFrameworkName.h file.

I've already set the "Allow non-modular includes in Framwork modules" to YES, though this keeps happening...

It's going to keep happening

Please advice...

Thanks.

miya
  • 1,059
  • 1
  • 11
  • 20

1 Answers1

1

You need to mark each header your framework will provide as "Public" rather than "Private" or "Project"

Click on the .h file in question and look in the File Inspector on the right side of Xcode (you can bring up the File Inspector from View->Utilities->Show File Inspector)

Then change the dropdown menu from "Project" or "Private"

header included in Framework as a Project header

to "Public"

header included in Framework as a Public header

johnnyclem
  • 3,284
  • 1
  • 17
  • 14
  • This doesn't help. I'm getting the same issue trying to integrate SSZipArchive in Cocoa Touch Framework. Even though The headers are set to Public. – Bruce Jun 15 '15 at 01:04
  • In addition to setting headers public, they have to be added to the umbrella-header for being exposed to Swift. – Felix Lieb Jan 29 '16 at 14:04