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