How to unzip/extract 7z compressed files in ios

2019-02-18 11:55发布

问题:

I need to unzip/extract 7z compressed files in ios, Can anyone say the libraries used to do this,where are those libraries available to download.I there any sample project to do this ,let me know

回答1:

7-Zip Lzma SDK - is a multi-language SDK for handling 7-zip files. Mo Dejong has created an example demonstrating how to use the LZMA SDK to decompress 7-zip libraries on iOS devices. You can find the example on his website here.



回答2:

iOS9 comes with LZMA support (encoder until level 6, decoder all levels). Of course this only helps if you just need the compression – if you absolutely need to read the 7z archive / container format you'll need an external library.

https://developer.apple.com/library/prerelease/ios/documentation/Performance/Reference/Compression/index.html