Unable to Zip ios (objective c )SQLite Database file After Encrypting With SQLCipher

58 views Asked by At

I have to zipped an encrypted file by using many zipped pod file like ZipArchive ,SSZipArchive etc.The simple sqlite file has been zipped by using ZipArchive but the file that is encrypted using SQLCipher has not been zipped i dont know why can anyone tell me here is my code

Code

NSArray* path = 
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString* datbasePath = [path objectAtIndex:0];
NSString* sqlitePath = [datbasePath stringByAppendingPathComponent:@"abc.sqlite"];
NSString* zipPath = [datbasePath stringByAppendingPathComponent:@"abc.zip"];
ZipArchive* zip = [[ZipArchive alloc] init];
BOOL ret = [zip CreateZipFile2:zipPath];
ret = [zip addFileToZip:sqlitePath newname:@"abc.sqlite"];
0

There are 0 answers