From 39fb74db5fada634df56209e65b11bd9ed01d58d Mon Sep 17 00:00:00 2001 From: Tom Stovall <119924+stovak@users.noreply.github.com> Date: Mon, 23 Feb 2026 10:46:20 -0800 Subject: [PATCH] fix: Add explicit swift-service-context dependency for Xcode 26 transitive dylib bug Xcode 26 builds all "automatic" SPM package products as dynamic frameworks but does not propagate transitive framework dependencies. This causes undefined symbol errors for ServiceContextModule when AsyncHTTPClient is used as a transitive dependency. Adding the explicit dependency resolves this. Co-Authored-By: Claude Opus 4.6 --- Package.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Package.swift b/Package.swift index 330890a89..9a7ee856e 100644 --- a/Package.swift +++ b/Package.swift @@ -45,6 +45,7 @@ let package = Package( .package(url: "https://github.com/apple/swift-algorithms.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-distributed-tracing.git", from: "1.3.0"), .package(url: "https://github.com/apple/swift-configuration.git", from: "1.0.0"), + .package(url: "https://github.com/apple/swift-service-context.git", from: "1.1.0"), ], targets: [ .target( @@ -74,6 +75,7 @@ let package = Package( // Observability support .product(name: "Logging", package: "swift-log"), .product(name: "Tracing", package: "swift-distributed-tracing"), + .product(name: "ServiceContextModule", package: "swift-service-context"), ], swiftSettings: strictConcurrencySettings ), @@ -97,6 +99,7 @@ let package = Package( .product(name: "Logging", package: "swift-log"), .product(name: "InMemoryLogging", package: "swift-log"), .product(name: "Tracing", package: "swift-distributed-tracing"), + .product(name: "ServiceContextModule", package: "swift-service-context"), .product(name: "InMemoryTracing", package: "swift-distributed-tracing"), ], resources: [