Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open database file #8

Closed
tylerjohnst opened this issue Nov 13, 2014 · 1 comment
Closed

Unable to open database file #8

tylerjohnst opened this issue Nov 13, 2014 · 1 comment

Comments

@tylerjohnst
Copy link

Getting this error:

<Error>: *** Terminating app due to uncaught exception 'SQLite3::SQLite3Error', reason: 'unable to open database file (SQLite3::SQLite3Error)

This error only appears on the device and not on the simulator. All of the DB access is done via the main thread only from a single instance of the Database class.

Database path: File.join(App.resources_path, "offline_store.sqlite3")

@tylerjohnst
Copy link
Author

I just realized you can't write to resources_path on the actual device. Ignore me please. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant