How can we zip and unzip a file through coding?
Open the Files app, then find the ZIP file or archive you want to uncompress. Tap the ZIP file or archive. A folder is created containing the files. To change its name, touch and hold on the folder, then tap Rename.
Using this library you can use this line: let unzipDirectory= try Zip. quickUnzipFile(filePath) //to unZip your folder. If you want more help , check the repository.
In iOS 13 and later, Apple's native Files app supports the common ZIP compression format, which means you can now uncompress zipped files downloaded in Safari, or compress several files into one neat zipped package ready for sharing, right on your iOS device. Keep reading to learn how it works.
Importing into XcodeOpen Xcode and select Open Another Project or File, Open. Open the folder you unzipped from your Dropsource download and locate the file with “. xcodeproj” extension in the root directory. Select the file and click Open.
Take a look at this SO questions.
And here is a library ziparchive
ziparchive An Objective C class for zip/unzip on iPhone and Mac OSX
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With