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

Cannot open file #982

Open
digitxo opened this issue Jan 31, 2020 · 9 comments
Open

Cannot open file #982

digitxo opened this issue Jan 31, 2020 · 9 comments

Comments

@digitxo
Copy link

digitxo commented Jan 31, 2020

I dragged my ".db" file into my project..

let db = try Connection("architect.db")

Prints this error to console:

2020-01-30 23:21:16.354630-0800 architect[398:88870] [logging-persist] cannot open file at line 43353 of [378230ae7f]

2020-01-30 23:21:16.354718-0800 architect[398:88870] [logging-persist] os_unix.c:43353: (0) open(//architect.db) - Undefined error: 0

The operation couldn’t be completed. (SQLite.Result error 0.)

2020-01-30 23:21:16.363920-0800 architect[398:88870] [logging-persist] cannot open file at line 43353 of [378230ae7f]

2020-01-30 23:21:16.363993-0800 architect[398:88870] [logging-persist] os_unix.c:43353: (0) open(//architect.db) - Undefined error: 0

The operation couldn’t be completed. (SQLite.Result error 0.)

2020-01-30 23:21:16.365709-0800 architect[398:88870] [logging-persist] cannot open file at line 43353 of [378230ae7f]

2020-01-30 23:21:16.365758-0800 architect[398:88870] [logging-persist] os_unix.c:43353: (0) open(//architect.db) - Undefined error: 0

The operation couldn’t be completed. (SQLite.Result error 0.)

@SieczkowskiAL
Copy link

SieczkowskiAL commented Jan 31, 2020

Hi,
I'm same error.
See the picture.
Agostinho
Captura de Tela 2020-01-31 às 20 00 37
Captura de Tela 2020-01-31 às 20 52 06

@NunciosChums
Copy link

NunciosChums commented Apr 29, 2020

import SQLite3 -> import SQLite

Hi,
I'm same error.
See the picture.
Agostinho
Captura de Tela 2020-01-31 às 20 00 37
Captura de Tela 2020-01-31 às 20 52 06

@masterprohd
Copy link

2020-09-09 09:47:36.019497+0700 YogaAppleTV[222:8547] open on /var/mobile/Containers/Data/Application/4C951721-F6D1-4225-ACDF-D18ABD44D4E1/Documents/fiveYoga.db: Operation not permitted
Unable to copy file
2020-09-09 09:47:36.023707+0700 YogaAppleTV[222:8547] [logging-persist] cannot open file at line 43353 of [378230ae7f]
2020-09-09 09:47:36.023820+0700 YogaAppleTV[222:8547] [logging-persist] os_unix.c:43353: (0) open(/var/mobile/Containers/Data/Application/4C951721-F6D1-4225-ACDF-D18ABD44D4E1/Documents/fiveYoga.db) - Undefined error: 0
Loi Loi mat
2020-09-09 09:47:38.708617+0700 YogaAppleTV[222:8547] [logging-persist] cannot open file at line 43353 of [378230ae7f]
2020-09-09 09:47:38.708905+0700 YogaAppleTV[222:8547] [logging-persist] os_unix.c:43353: (0) open(/var/mobile/Containers/Data/Application/4C951721-F6D1-4225-ACDF-D18ABD44D4E1/Documents/fiveYoga.db) - Undefined error: 0
Loi Loi mat
2020-09-09 09:47:38.715021+0700 YogaAppleTV[222:8547] [TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x1018bec00; frame = (100 65; 384 518); autoresize = RM+BM; gestureRecognizers = <NSArray: 0x281e4a5b0>; layer = <CALayer: 0x281087880>; contentOffset: {0, 0}; contentSize: {384, 0}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <YogaAppleTV.HomeVC: 0x10150f4d0>>

@tjdaniel2
Copy link

Would this have anything to do with the extension? I'm having a similar issue with a ".mbtiles" database.

@nathanfallet
Copy link
Collaborator

@digitxo Are you sure that your .db file is in your working directory?

@infinigent-solutions
Copy link

I'm getting the same error

@underthestars-zhy
Copy link

I'm getting the same error, too

@underthestars-zhy
Copy link

I'm getting the same error, too

I can open my .db file with other apps. But I cannot open it by this package

@damnever
Copy link

I'm getting the same error, too

I can open my .db file with other apps. But I cannot open it by this package

I am also encountering this error. I believe the sandbox is preventing the reading of the copied database file. Even if I move it into the Application Support folder and modify some extended attributes, it still doesn't work. However, after I moved the database file into the Downloads folder and granted the permissions as shown below, the problem was resolved.

image

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

10 participants