How to Unzip a zip file in objective C??

Discussion in 'Mac Programming' started by rahulvaishnav, Jul 21, 2009.

  1. rahulvaishnav macrumors newbie

    Jul 16, 2009
    Hi all,

    I want to extract a zip file at particular path using Objective C on Mac OS.
    After googling I came to know that ZipArchive is the library someone has provided. But I could not compile it in Mac , I am facing errors while compiling it. Can any one please let me know some solution for Unzipping a zip file.

    I will be very thankful.

    Rahul Vaishnav
  2. lee1210 macrumors 68040


    Jan 10, 2005
    Dallas, TX
  3. pcwiz macrumors member

    May 28, 2008
  4. autorelease macrumors regular

    Oct 13, 2008
    Achewood, CA
    zlib is part of Mac OS X, I see /usr/lib/libz.dylib and /usr/include/zlib.h. It's pretty much the de facto zip/unzip implementation.

    I'm not sure how well-documented it is, you're probably better off forking a process and getting "unzip" to do it for you.

Share This Page