SQLite DB in Resource folder (iOS)

Hi there!

I created the SQLite database input_db outside of Xojo and then dragged it onto the iOS project. When I compile the project, Xojo shows me 3 error messages:

This item does not exist: input_db
Type “Int32” has no member named “_RuntimeGetDatabase”: input_db
Type mismatch error. Expected class Database, but got Int32: input_db

It seems Xojo thinks this is an integer, not a DB? I can modify the database in Xojo though, i.e., adding/deleting tables and columns. How do I get rid of these errors?

Thank you!

Xojo sees input_db as a file.
You need to create a new database instance and set the file.