Skip to content

Swift Package exposing embedded SQLite library #3473

@ir-fuel

Description

@ir-fuel

Hi

We have an issue here with the SQLite library used inside this library when used via Swift Package Manager.

it seems the SQLite library included also exposes all its symbols to the application when using Couchbase Lite, and global calls such as sqlite3_version and others go to that library, and not the default one provided by Apple.

The issue is we use another third party library (from Adobe) that also uses SQLite internally, but does not include its own version of the SQLite library. The library provided by Apple has other compile options and the Adobe library no longer functions when used at the same time as Couchbase Lite because the SQLite database operations fail in that Adobe library.

It took a while to figure out, but after setting some breakpoints I discovered this issue. Is there a way to avoid this so all other code in my project does not call the functions of the included SQLite library, but uses the global one iOS provides?

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