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

Package v2.1.9 - macOS libe_sqlite3.dylib is not loading #605

Open
mcrossley opened this issue Aug 21, 2024 · 5 comments
Open

Package v2.1.9 - macOS libe_sqlite3.dylib is not loading #605

mcrossley opened this issue Aug 21, 2024 · 5 comments

Comments

@mcrossley
Copy link

mcrossley commented Aug 21, 2024

What version of SQLitePCLRaw are you using?
2.1.9

If you are using one of the SQLitePCLRaw bundle packages, which one?
SQLitePCLRaw.bundle_green

What platform are you running on? What operating system? Which version? What CPU?
mac M2, macOS, Darwin 23.6.0, ARM64

What target framework are you building for?
.NET 8.0

Are you using PackageReference or packages.config?
PackageReference

Are you using the command line, or an IDE? Which IDE? Which version of that IDE?
Visual Studio 2022 - v17.11.0

Is this problem something that just started happening? For example, were things working well for you and then you updated something and then the problem showed up? What changed?
Package version 2.1.8 works OK.
Copying in the version of libe_sqlite3.dylib from 2.1.8 to the user's system prevents the error, and the program runs OK
There are no problems with the 2.1.9 runtimes for Linux or Windows - just macOS

What is the exact error message you are seeing when the problem happens?
code signature in <DF408A36-B4FE-3FE0-9E23-77AB4D848DA1> '/Users/......./runtimes/osx-arm64/native/libe_sqlite3.dylib' not valid for use in process: library load disallowed by system policy

If you are using mobile platforms, are you on classic/legacy Xamarin or on .NET 6 and higher?
No mobile

Sometimes other packages using SQLitePCLRaw cause problems when they are mixed together. What other packages are you including in your project?
BouncyCastle.Cryptography
EmbedIO
FluentFTP
FluetFTP.Logging
HidSharp
MailKit
MQTTnet
MySQLConnector
NReco.Logging.File
ServiceStack.Text
SixLabors.ImageSharp
SSH.NET
+a bunch of MS System packages

@ericsink
Copy link
Owner

Well that's a bit troubling. I'm guessing we upgraded the version of the tools used to build the native dylib (which we usually do only when necessary), and that is causing the symptom you are seeing.

@mcrossley
Copy link
Author

I have reverted to 2.1.8 for now. I hope you can find the cause.

@ericsink
Copy link
Owner

Could you try the 2.1.10-pre release on nuget and see if it fixes this problem?

Thanks!

@mcrossley
Copy link
Author

Thanks, I'll create a test build of my program tomorrow and get it out to a Mac user for testing. I do not have a Mac myself.

@mcrossley
Copy link
Author

Sorry to report the test user says this build has the same error.

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