Search code examples
xcodesqlitecocoa

Add database to compiled application


I am using an sqlite3 database in my xcode/ios application and would like the database to be copied into the compiled application folder.
I've added the .db file to the project, but it doesn't get copied.
Any idea why ?


Solution

  • The issue was actually due to the fact I was wrongly opening the database. Path used was simply "database.db", when I had to prefix the NSBundle folder.