question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library does not create the db-file for SQLite on MacOS

See original GitHub issue

As I was able to use the SQLite provider with the main library in my Xamarin.Forms iOS app, I tried to use it in the additional Mac app as well.

It creates the MonkeyCache folder in the folder I specify, but does not create the db file(s). I tried several folders on my Mac without success.

If I try to access Barrel.Current, I get this:

System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception.

I am running out of ideas why this is happening with the latest version of the package and MacOS Monterey.

Any hint how to get around this would me helpful.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesmontemagnocommented, Mar 24, 2022

awesome! thanks for the repro, i will take a look

0reactions
MSicccommented, Feb 22, 2023

The problem is still present with .NET MAUI… Had to follow this recommendation to get it working with MacCatalyst…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not create SQLite database on mac (permission) issues
when I do ls -l on the folder I get: drwxr-xr-x , but for some reason I can not create the db file...
Read more >
Mac OS - cannot create sqlite database · Issue #79
Probably SQLite is not installed on your system." This results in the Files section bing greyed out and I can't create checksums of...
Read more >
Trying to "Open Database" Safari History.db file and get Error
Go to System Preferences > Security & Privacy (click the lock to make changes) > select Full Disk Access and check the box...
Read more >
SQLite3 and Mac OS X App sandbox problem
I have run into a problem using my own created database files external to the App Sandbox. The problem is that sqlite3 needs...
Read more >
How to package an app with sqlite3 database - Ask Different
For this purpose I've used Packages, however the program seems no to copy the db into the ~/Library/Application Support/ folder since no new ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found