Zip icon indicating copy to clipboard operation
Zip copied to clipboard

Setting password then fails to unzip on Mac

Open helloniklas opened this issue 6 years ago • 9 comments

So, all works fine with password set to nil. Setting a simple password it zips fine, but when unarchiving on the Mac, password field pops up, but it then doesn't accept the password I set.

I'm using

                try Zip.zipFiles(paths: zipURLs, zipFilePath: zipFilePathURL, password: "pass", progress: { (progress) -> () in

helloniklas avatar Mar 14 '18 14:03 helloniklas

Hi. I've the same problem. I can zip file with password, but when I try to unzip that file with used password, it doesn't allow to unzip and ask the password again and again. Please help me with this. Thanks.

techguruCD avatar Mar 22 '18 04:03 techguruCD

I ended up using a different library. But even so. It’s seems the unzip on a Mac doesn’t work with the native built in unzip tool. Whereas if you install a 3rd party one from the AppStore it does manage to unzip with password.

helloniklas avatar Mar 22 '18 10:03 helloniklas

I did that with another library - SSZipArchive from pod. And it's working well for me. So I'm recommend it if any developer want to zip / unzip file by Swift. Thank you.

techguruCD avatar Mar 22 '18 10:03 techguruCD

I have the same issue that I cannot unzip a password protected .zip file on OSX. I tried a few 3rd party unzipper apps from the App Store, but no dice :(. Which specific app is known to work? (I tried SSZipArchive, but it conflicts with some of my other pods who have some internal zip-support as well.) Thx!

Rodge73 avatar Jul 06 '18 10:07 Rodge73

Same issue here although out of 20 or so tests I was able to open 1 file with a password on mac os 10.13.6.

richschonthal avatar Sep 17 '18 17:09 richschonthal

same issue. please fix it.

Fateee98 avatar Nov 03 '18 04:11 Fateee98

Same

vccabral avatar Nov 04 '18 03:11 vccabral

Same issue :( I tried 5 different unarchivers, none of them work... I have absolutely no idea about zipping, so I can't help here... but would be great if somebody who knowns could have a look... I mean aren't we most likely all developing iOS apps on our Macs?

georgbachmann avatar Nov 16 '18 08:11 georgbachmann

I did that with another library - SSZipArchive from pod. And it's working well for me. So I'm recommend it if any developer want to zip / unzip file by Swift. Thank you.

I ran into this problem as well and ultimately used SSZipArchive. This library's API is a bit nicer, but I need password support.

n8tr avatar Nov 27 '18 20:11 n8tr