How to compile minitar (libarchive) on iOS?

I need to unpack .tar.gz. Unfortunately, there is no built-in tool for that in iOS.


Is it possible to copile a minitar example from libarchive (https://github.com/libarchive/libarchive/tree/master/examples/minitar) as a standalone library? I don't want to include the entire libarchive, due to it's size and complexity.

The gz part is just gzip. zlib is available. Tar is a very simple format.

So you recommend to use zlib for "gz" and handle "tar" with my own code?

How to compile minitar (libarchive) on iOS?
 
 
Q