ios - "Include of non-modular header inside framework module" in C header of SSZipArchive -


i'm trying use ssziparchive objc library in swift ios project.

what did:

  1. created objective-c "cocoa touch framework"
  2. followed this guide import ssziparchive's objective c , c files it.
  3. changed c headers public per this answer
  4. change build settings allow non-modular includes per this answer

the framework compiles fine. i'd manage use objective c libraries in swift projects using way before guess steps correct?

the problem right when try import sszip in project , try compile, gives "include of non-modular header inside framework module" errors each of c header files of ssziparchive , i've tried possible solutions can find online no success. seems problem centers on zlib.h

screenshot of compilation error

please help.. i'm stuck more week , couldn't find alternatives unzip file in swift.

i got work. need move #includes causes problem out .h file , put them in .c file instead. after clean , recompile , error goes away , works.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -