Hello there,
My game uses two SQLite databases. One of these is used to save progress and is in the Documents directory, and the other is used to build levels and is in the Resource directory. When I run my game in the Corona simulator, everything works just fine. However, when I build for the Xcode simulator or an iPhone, the game will not start up because it can’t connect to/find/access the databases. Is there something special I need to do, or somewhere I need to put them, to ensure they are included in the build and referenced properly?
Currently, the two database files (resources.db and progress.db) are in the same directory as main.lua.
In the sandbox, both of them are in the Documents folder.
In the code, I am using the standard method of referencing them:
system.pathForFile(“progress.db”, system.DocumentsDirectory)
system.pathForFile(“resources.db”, system.ResourceDirectory)
Thank you for any assistance!
[import]uid: 36054 topic_id: 7069 reply_id: 307069[/import]
[import]uid: 36054 topic_id: 7069 reply_id: 24800[/import]
[import]uid: 42145 topic_id: 7069 reply_id: 49819[/import]