I\'m attempting to add ZipArchive to my project following the WikiPage. I\'ve added it to my project and attempted to build, but now NSObjRuntime.h, NSObject.h and countles
So I finally got it figured out. Instead of adding groups and then adding the files to those groups, I dragged and dropped the ZipArchive folder into the project. In the dialog that pops up...I chose the "Create folder references for any added folders".
This gave me BLUE folders within my workspace, and everything compiles fine now.
Though, now I need to figure out the difference between folder references and group references.
The issue is probably caused by Objective-C in your C files. This could be caused by imports in your PCH. You need to wrap these in a #ifdef __OBJC__
i.e.
#ifdef __OBJC__
#import "SomeObjecitveCFile.h"
#endif
Dragging and dropping the ZipArchive folder into the project did not work for me. Instead, I dragged and dropped the minizip folder into the same folder where I added ZipArchive.h and ZipArchive.m files seperately. I chose the "Create folder references for any added folders". Reason: In ZipArchive.h file we do
#include "minizip/zip.h"
#import "AppDelegate.h"
#include "minizip/unzip.h"
The solution we found is to change the File Type for all .c file in folder minizip from C-Source to Objective-C source in the Identity and Type tab on the right-side.
It works for us.
Good luck