Skip to content

Unable to open database file when deployed on device #13

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

Closed
kkbkrishna opened this issue Nov 12, 2014 · 2 comments
Closed

Unable to open database file when deployed on device #13

kkbkrishna opened this issue Nov 12, 2014 · 2 comments

Comments

@kkbkrishna
Copy link

let db = Database("path/to/db.sqlite3")

I used my local mac path here and working fine with simulator. But when i deploy the app to device, it is giving me error.

fatal error: unable to open database file:

@stephencelis
Copy link
Owner

Please make sure it's a valid path and that the app has access to it. See this comment for an example: #3 (comment)

If you're still having trouble, please paste the failing code here.

@stephencelis
Copy link
Owner

Closing for now as a duplicate of #3. Please let me know if you're having a different problem.

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

No branches or pull requests

2 participants