Skip to content

sqlite 在 mac mini m4 上报错 #2147

@shuitai

Description

@shuitai

问题描述及重现代码:

Win11 没问题

Mac mini m4 报错

Unhandled exception. System.Exception: Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib, 0x0001): tried: '/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib' (no such file), '/Users/zhiw/my_space/code/products/remote/VirtualDeskUI/VirtualDeskUI/VirtualDeskUI.Desktop/bin/Debug/net9.0/runtimes/osx/native/SQLite.Interop.dll.dylib' (no such file)

var builder = new FreeSqlBuilder()
    .UseConnectionString(DataType.Sqlite, dbConfig?.ConnectionString)
    .UseAutoSyncStructure(dbConfig?.AutoSyncStruct ?? false)
    .UseLazyLoading(true)
    .UseMonitorCommand(cmd => Console.WriteLine($"Sql: {cmd.CommandText}"));
return builder.Build();

数据库版本

安装的Nuget包

.net framework/. net core? 及具体版本

dotnet9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions