I’m getting error when creating a DB in CBL 2.0. In the if statement it always returns false.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSError *error;
NSString *dbName = @"db";
_database = [[CBLDatabase alloc] initWithName:dbName error:&error];
if (! _database) {
NSLog(@"Cannot open the database: %@", error);
return NO;
}
}