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:
- created objective-c "cocoa touch framework"
- followed this guide import ssziparchive's objective c , c files it.
- changed c headers public per this answer
- 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
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
Post a Comment