1

I have a project in which I need to add the ZipArchive files and unzip a file I download but every time I try to do that i get this errors after i set everything(adding zlib in the linker and everything needed for the files to work). I add all the imports needed and I just drag the ZipArchive in the folder structure that is needed into my project. Any help on getting rid of these errors? i've been trying for a few days and cant find the problem. I have Xcode 4.6.3 and this is the final error i'm getting:

Apple LLVM Compiler 4.2 Error Too many errors emitted ,stopping now

enter image description here enter image description here

enter image description here

Cœur
  • 37,241
  • 25
  • 195
  • 267
Eli Braginskiy
  • 2,867
  • 5
  • 31
  • 46
  • Is the code you added Objective-C or C? – Wain Jul 17 '13 at 17:01
  • @Wain both, in ZipArchive there are obj-c files and in the miniZip folder inside zipArchive there are c files – Eli Braginskiy Jul 17 '13 at 17:14
  • Possible duplicate of [How do you include SSZipArchive for IOS 5?](https://stackoverflow.com/questions/9005097/how-do-you-include-ssziparchive-for-ios-5) – Cœur Jul 19 '17 at 17:23

1 Answers1

4

It looks like you're including Objective-C headers when compiling C code. This is probably as a result of your .pch file. Remove Objective-C imports from the .pch file or ensure that they are wrapped in an ifdef to prevent them from being processed during C compilation (#ifdef __OBJC__).

Wain
  • 118,658
  • 15
  • 128
  • 151
  • 1
    I literally spent days trying to solve this and i didnt know ALL of my obj-c imports should be warpped so i moved all of them and i really love you for this answer. – Eli Braginskiy Jul 17 '13 at 17:26