I am using Objective-Zip in a mixed Swift/Objective-C project, and I cannot get currentFileInZipInfo()
to work. It isn't available in autocomplete, and if I try to type it manually I get an error Value of type 'ZipFile' has no member 'currentFileInZipInfo'
. I've imported ZipFile.h
into my bridging header, and other methods do appear and compile without error so I'm pretty sure it's all hooked up correctly.
Here's the code in question:
let zipFile = ZipFile(fileName: "myFile.zip", mode: ZipFileModeUnzip)
if let unzippedFile = zipFile, unzippedFile.numFilesInZip() == 1 {
unzippedFile.goToFirstFileInZip()
let info = unzippedFile.currentFileInZipInfo() // error here
}
Why would some of the methods be available, but not others?