I’m using zipArchive library in Xcode to integrate into my project to do unzip operation. And I got following compile error message. my question is how can i resolve this compile issue?
What steps will reproduce the problem?
- download ziparchive from http://code.google.com/p/ziparchive/:
- create a new xcode project (just use single view template), select ios4.3 simulator
- drag the download unzipped folder to project, and select “copy item…” ,”create group”, and check the “add to targets”
What is the expected output? What do you see instead?
Compiled error with error message : invalid deployment target for -stdlib=libc++ (requires iOS 5.0 or later)
What version of the product are you using? On what operating system?
mac, xcode4.5.1, iphone4.3 simulator (it’s OK in iOS6)
The file
ZipArchive.mmfrom the ziparchive project has the suffix.mmfor Objective-C++ files. However, the file does not seem to contain any C++ code. After renaming it toZipArchive.mI could compile it even for iOS 4.3 deployment target.A different solution of the problem can be found in the Xcode 4.5 Release Notes: