marmelroy / Zip

Swift framework for zipping and unzipping files.
MIT License
2.51k stars 452 forks source link

Zip file created on iOS with password can't be unzip later #170

Open dornaCp opened 5 years ago

dornaCp commented 5 years ago

Hi, I can't open any zip file after zipping it with password. Not on mac or Pc..

RustyKnight commented 5 years ago

Just ran across this issue as well.

let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
let logFiles = ... // A list of files read from the file system
let zipFile = documentsDirectory.appendingPathComponent("ZipFile.zip")
try Zip.zipFiles(paths: logFiles, zipFilePath: zipFile, password: "password") { (progress) in
}

Haven't previously been pass wording the Zip, but moved to secure it before submitting to the App Store

Zip files download from the App (via Files App and Air Drop) can't not be unzipped

dornaCp commented 5 years ago

Just ran across this issue as well.

  • iOS 12.2
  • Swift 5
  • Xcode 10.2.1
let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
let logFiles = ... // A list of files read from the file system
let zipFile = documentsDirectory.appendingPathComponent("ZipFile.zip")
try Zip.zipFiles(paths: logFiles, zipFilePath: zipFile, password: "password") { (progress) in
}

Haven't previously been pass wording the Zip, but moved to secure it before submitting to the App Store

Zip files download from the App (via Files App and Air Drop) can't not be unzipped

I've just replaced the pod with SSZipArchive which works well, i'm using version 2.1.4.

nourahassan commented 5 years ago

Any updates in this issue?

ashleymills commented 4 years ago

This still seems to be a problem in iOS 14.

I've had to revert to SSZipArchive, which is a shame as I was hoping to remove Cocoapods from my app and go all-in with SPM

limfinity commented 4 years ago

Hi @ashleymills! We are facing the same issue. Did you get SSZipArchive working with aes turned on? Would love to hear back. :)

georgbachmann commented 4 years ago

Wanted to do the same as @ashleymills and get rid of one more pod and move to SPM, but I need password protection for my zip files. Would be happy on updates on the issue...