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

Debug local iphone result in file is not a database #1240

Open
whann0205 opened this issue Jul 3, 2024 · 1 comment
Open

Debug local iphone result in file is not a database #1240

whann0205 opened this issue Jul 3, 2024 · 1 comment

Comments

@whann0205
Copy link

The following packages are in use:
PackageReference Include="sqlite-net-sqlcipher" Version="1.9.172" />
PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.8" />
PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.8" />
It is a net maui application targetting .net8.
Everything is kept up to date.
Problem is that the app cannot access the database.
The file get installs by using openfile OpenAppPackageFileAsync somewhere
in the initialization section of the app.
It is proven that the file is indeed here and accessible, have even
copied the file via SMB to my File Server to check if it get installed correctly.
The file is a sqllite4 format with encryption.
It is working perfectly on android device, android emulator, ios emulator no
matter which emulated device. it works on the mac itself, too.
Not tried to deploy as a release yet.
But when i try to debug the app on the iphone via hot restart (visual studio 2022 17.10.3)
the file is there but i throws the exception "File is not a database".
I really dont know where to start since i dont know if the problem is
inside your ericsinks lib or your library or where ?
I am stuck do whatever it takes to solve that problem.

@whann0205 whann0205 changed the title Debug local iphone result in file is not a datbase Debug local iphone result in file is not a database Jul 3, 2024
@sjlombardo
Copy link
Contributor

Disable Hot Restart, see ericsink/SQLitePCL.raw#601

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

2 participants