You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
//VY 03
// some other crap to load
// vy - create a shared instance of CBLManager
CBLManager *manager = [CBLManager sharedInstance];
// create a database
NSError *error;
//!!!!!!!!!!!!!!!!!!! the next LINE will CRASH !!!!!!!!!!!!!!!!!
// this is where the app crashes... I am thinking that perhaps it can not createDataBaseNamed , perhaps I need to have this DB vydb02 already... or perhaps I have a syntax error... but this is the bug line... I was trying to follow along with your online documentation...
///http://docs.couchbase.com/couchbase-lite/cbl-ios/#connecting-to-an-existing-database
self.database = [manager createDatabaseNamed:@"vydb02" error:&error];
// In short... you asked for some feed back...
//You should also add appropriate error checking code after each call.
//If either call fails, you might need to display an error message and exit.
//The legal characters for the database name are:
//lowercase letters [a-z], digits [0-9], and special characters [$_()+-/].
return YES;
}
The text was updated successfully, but these errors were encountered:
and I am running into a problem...
I document my issues in the code...
//
// AppDelegate.m
// cblite02
//
// Created by vy on 10/10/13.
// Copyright (c) 2013 vy. All rights reserved.
//
import "AppDelegate.h"
@implementation AppDelegate
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
//VY 03
// some other crap to load
// vy - create a shared instance of CBLManager
CBLManager *manager = [CBLManager sharedInstance];
// create a database
NSError *error;
//!!!!!!!!!!!!!!!!!!! the next LINE will CRASH !!!!!!!!!!!!!!!!!
// this is where the app crashes... I am thinking that perhaps it can not createDataBaseNamed , perhaps I need to have this DB vydb02 already... or perhaps I have a syntax error... but this is the bug line... I was trying to follow along with your online documentation...
///http://docs.couchbase.com/couchbase-lite/cbl-ios/#connecting-to-an-existing-database
self.database = [manager createDatabaseNamed:@"vydb02" error:&error];
// In short... you asked for some feed back...
//You should also add appropriate error checking code after each call.
//If either call fails, you might need to display an error message and exit.
//The legal characters for the database name are:
//lowercase letters [a-z], digits [0-9], and special characters [$_()+-/].
return YES;
}
The text was updated successfully, but these errors were encountered: