I\'m writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app\'s Documents folder.<
I took a different approach by building libarchive and bz2lib as a static library for iOS. You can find it here:
libarchive
bz2lib
http://github.com/davepeck/iOS-libarchive/