SQLCipher iOS Deadlock on setKey

75 views
Skip to first unread message

John Ryan

unread,
Feb 10, 2016, 1:22:48 PM2/10/16
to SQLCipher Users
After modifying my project to enable modules and also use_frameworks! in cocoapods, i've all of a sudden had an issue with the fmdb setKey method.

NSString *databasePath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]      stringByAppendingPathComponent:@"datbase.db"];

FMDatabase *db = [FMDatabase databaseWithPath:databasePath]; 

BOOL success = [db open];

NSLog(success ? @"SUCCESS" : @"FAIL");

//logs success

success = [db setKey:@"TEST"];

//DEADLOCK...

NSLog(success ? @"SUCCESS" : @"FAIL");

I've attached a screenshot of the stack trace, any suggestion as to why these changes might cause this would be greatly appreciated.


Thanks!

John

Screen Shot 2016-02-10 at 11.04.02 AM.png

John Ryan

unread,
Feb 10, 2016, 1:40:39 PM2/10/16
to SQLCipher Users
Also here's a simple project demonstrating the issue:


Thanks,
John
Reply all
Reply to author
Forward
0 new messages