From 131e2494d5182431ff1425b7546a875cd15c333a Mon Sep 17 00:00:00 2001 From: Jon Phillips Date: Tue, 28 Jul 2026 19:27:40 -0400 Subject: [PATCH] Declare StructuredQueriesCore so SQLiteData links as a dynamic framework SQLiteData's sources reference StructuredQueriesCore symbols directly, but the target declares only StructuredQueriesSQLite. That is fine for a static build, where every transitive archive is on the same link line anyway, and it breaks once the product is built as a dynamic framework: `@_exported import` is a compile-time re-export rather than `-reexport_framework`, so StructuredQueriesSQLite.framework does not vend StructuredQueriesCore's symbols on SQLiteData.framework's behalf, and the direct references go unresolved. Xcode builds every package product as a dynamic framework as soon as a test bundle enters the graph, so `xcodebuild build-for-testing` fails while `swift build`, `swift test` and a plain `xcodebuild build` all pass. --- Package.swift | 1 + Package@swift-6.0.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Package.swift b/Package.swift index ed2019f9..7c0cf444 100644 --- a/Package.swift +++ b/Package.swift @@ -75,6 +75,7 @@ let package = Package( .product(name: "OrderedCollections", package: "swift-collections"), .product(name: "Perception", package: "swift-perception"), .product(name: "Sharing", package: "swift-sharing"), + .product(name: "StructuredQueriesCore", package: "swift-structured-queries"), .product(name: "StructuredQueriesSQLite", package: "swift-structured-queries"), .product( name: "Tagged", diff --git a/Package@swift-6.0.swift b/Package@swift-6.0.swift index f1662b29..0eb72321 100644 --- a/Package@swift-6.0.swift +++ b/Package@swift-6.0.swift @@ -41,6 +41,7 @@ let package = Package( .product(name: "IssueReporting", package: "xctest-dynamic-overlay"), .product(name: "OrderedCollections", package: "swift-collections"), .product(name: "Sharing", package: "swift-sharing"), + .product(name: "StructuredQueriesCore", package: "swift-structured-queries"), .product(name: "StructuredQueriesSQLite", package: "swift-structured-queries"), ] ),