I’m seeing this with Xcode 26 RC1, but we only use local swift packages. We only see the errors when we build for testing. One of the packages raising the warning has an explicit dependency on the other, so I have no idea what this warning is trying to tell us. Turning explicitly built modules off and only building active architecture doesn’t not help.
let package = Package( name: "ios-ui-library", platforms: [ .iOS(.v16), ], products: [ .library( name: "DesignSystem", targets: ["DesignSystem"] ), .library( name: "FoundationPod", targets: ["FoundationPod"] ), .library( name: "Theme", targets: ["Theme"] ), ], dependencies: [ .package(url: "https://github.com/onevcat/Kingfisher.git", from: "8.4.0"), .package(url: "https://github.com/SnapKit/SnapKit", from: "5.7.0"), ], targets: [ .target( name: "DesignSystem", dependencies: [ .target(name: "FoundationPod"), .target(name: "Theme"), .product(name: "Kingfisher", package: "Kingfisher"), .product(name: "SnapKit", package: "SnapKit"), ], swiftSettings: [ .enableExperimentalFeature("StrictConcurrency"), ] ), .target( name: "FoundationPod", dependencies: [], resources: [ .process("Resources"), .process("Assets.xcassets"), ], swiftSettings: [.enableExperimentalFeature("StrictConcurrency")] ), .target( name: "Theme", dependencies: [ .target(name: "FoundationPod"), // Explicit dependency here ], swiftSettings: [.enableExperimentalFeature("StrictConcurrency")] ), .testTarget( name: "DesignSystemTests", dependencies: ["DesignSystem", "FoundationPod"] ), .testTarget( name: "FoundationPodTests", dependencies: ["FoundationPod"] ), ] )
In one of the files in the Theme
package, we import FoundationPod
.