OS X 项目、研究

unzip with lzfse support

By @sskaje

LZFSE is a compression library introduced by Apple.

LZFSE is a Lempel-Ziv style data compression algorithm using Finite State Entropy coding. It targets similar compression rates at higher compression and decompression speed compared to deflate using zlib.


Apple uses LZFSE compressing its ipa packages.
I downloaded an ipa directly from appstore, named like pre-thinned xxx .thinned.signed.dpkg.ipa, e.g. pre-thinned12345678.thinned.signed.dpkg.ipa

I tried to decompress this ipa, with unzip, 7-Zip on windows, many many other archiver management tools, all failed.

unsupported compression method 99

I integrated lzfse into unzip based on unzip-6.0.

1 Build and install lzfse

2 Build unzip-lzfse

3 test

Tested under macOS 10.12.6

unzip with lzfse support by @sskaje:

Incoming search terms: