Skip to content

CSQLite must be imported by all SPM targets which transitively import GRDB #1424

@mrackwitz

Description

@mrackwitz

What did you do?

Depend on GRDB in SPM target Foo, use said target in another SPM target Bar, which is not using GRDB directly.

What did you expect to happen?

The build to succeed without having to import transitive imports directly.

What happened instead?

SPM gives me a lot of errors:

<unknown>:0: error: missing required module 'CSQLite'

Workaround

It's possible to workaround this for now by adding CSQLite as an explicit dependency to all targets that transitively depend on GRDB. (A lot in our case... 😉)

.product(name: "CSQLite", package: "GRDB.swift"),

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions