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 countless other header files are all having parsing issues!
I've included a screenshot of my workspace
and the errors...
Some more details about the project.
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 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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With