Objective-Zip
Objective-Zip copied to clipboard
Password not valid when opening zip file
Hello all,
I am using Objective-zip library in my project However when I create zip file with password I am not able to open it. It always says that password is not valid. This is my code:
OZZipFile *zipFile= [[OZZipFile alloc] initWithFileName:fullPath mode:OZZipFileModeCreate]; uint32_t crc= [errorLogData crc32]; NSError* myerror = nil; OZZipWriteStream *zipWriteStream = [zipFile writeFileInZipWithName:baseNameLog fileDate:[NSDate date] compressionLevel:OZZipCompressionLevelBest password:@"bla" crc32:crc error:&myerror];
I have printed value of myerror, which is nil and crc which is not zero. I think this is a problem in the library. Could you check it? I am using macOS 10.12.6 for development Regards