GRDB.swift icon indicating copy to clipboard operation
GRDB.swift copied to clipboard

Avoid conflict with other SPM packages by renaming the CSQLite SPM target

Open groue opened this issue 1 year ago • 1 comments

As reported by @jegnux, the SPM target "CSQLite" conflicts with other SPM packages such as SQLiteNIO. This prevents users from sharing server and client code in a single SPM package, and generally makes life more complicated than desired.

Maybe this will be solvable at the SPM level at some point (I'm not holding my breath), but currently it is just not possible. I don't see how this can be solved unless packages publish namespaced targets: CSQLite -> GRDBCSQLite or GRDB_CSQLite.

Since this is a breaking change for existing apps, this renaming will happen in GRDB 7.

groue avatar Apr 08 '24 07:04 groue

Is there a work around or am I using the improper branch? I'm using the master branch for my project and I'm getting what I believe is the same error?

Unable to resolve build file: BuildFilePACKAGE-TARGET:GRDB-5DC4DB053-dynamic::BUILDPHASE_1::0 (The workspace has a reference to a missing target with GUID 'PACKAGE-TARGET:CSQLite')

haIIux avatar Jun 17 '24 23:06 haIIux