Reputation: 1312
I have a database located in the Resource folder. This is how I open the database:
NSString* path = [[NSBundle mainBundle] pathForResource:@"dotdDB" ofType:@"sqlite"];
if (sqlite3_open(path, &_database) != SQLITE_OK) {
I know that sqlite3_open command creates a new database if it can't find it so that's why I get "no such table"
I've tried to uninstall the app and reset the simulator but still no success. Any suggestions why I can't find my database in the simulator?
*I use Xcode 3 & sqlite3
Upvotes: 1
Views: 3092