sqlite database opens fine on the iPhone simulator, but not on the device
- by Kimberly
Why would this run fine on the iPhone simulator... but the database can't be
opened on an iPhone device?
sqlite3 *g_Db = nil;
BOOL OpenDatabase(NSString *databaseName)
{
if(sqlite3_open([databaseName UTF8String], &g_Db) == SQLITE_OK)
{
NSLog(@"Opened db ok");
return(YES);
}
else
{
NSLog(@"Can't open the db");
sqlite3_close(g_Db);
g_Db = nil;
return(NO);
}
}