You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?
Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.
Description
If we include such targets in the "Aggregate" project we hit a bunch of "Unknown multiple commands produce: ..." errors, such as:
error: Multiple commands produce '/SamplePackages/BasicLibraryPackage/.build/arm64-apple-macosx/Intermediates.noindex/BasicLibraryPackage.build/Debug/BasicLibraryPackage.build/Objects-normal/arm64/BasicLibraryPackage_lto.o'
error: Multiple commands produce '/SamplePackages/BasicLibraryPackage/.build/arm64-apple-macosx/Intermediates.noindex/BasicLibraryPackage.build/Debug/BasicLibraryPackage.build/Objects-normal/arm64/BasicLibraryPackage_dependency_info.dat'
error: Multiple commands produce '/SamplePackages/BasicLibraryPackage/.build/arm64-apple-macosx/Intermediates.noindex/BasicLibraryPackage.build/Debug/BasicLibraryPackage.build/Objects-normal/arm64/BasicLibraryPackage Swift Compilation Requirements Finished'
...
As the build artifacts from "PACKAGE-TARGET:Foo" conflicts with those from "PACKAGE-TARGET:Foo-dynamic".
Clone and check out the version of swift-package-manager from GitHub with Swift Build integration code.
Pick a sample package with a .library product.
Build it using Swift Build explicitly:
swift run swift-build --build-system swiftbuild --package-path /path/to/package-with-lib
Open the generated .build/manifest.pif file.
Note how the "ALL-INCLUDING-TESTS" target does not depend on any of the *-dynamic targets.
Swift Package Manager version/commit hash
NA
Swift & OS version (output of swift --version ; uname -a)
swift-driver version: 1.125.2 Apple Swift version 6.2 (swiftlang-6.2.0.5.56 clang-1700.3.5.51)
Target: arm64-apple-macosx15.0
Darwin Paulos-MacBook-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Sat Mar 29 11:59:10 PDT 2025; root:xnu_development-11417.120.87.0.3~5/DEVELOPMENT_ARM64_T6020 arm64
The text was updated successfully, but these errors were encountered:
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
If we include such targets in the
"Aggregate"
project we hit a bunch of"Unknown multiple commands produce: ..."
errors, such as:As the build artifacts from
"PACKAGE-TARGET:Foo"
conflicts with those from"PACKAGE-TARGET:Foo-dynamic"
.This is extensively documented by this comment in PR #8454.
Swift Package Manager version/commit hash
Waiting for PR #8454 to be merged
Expected behaviour
No response
Actual behaviour
No response
Steps to reproduce
swift-package-manager
from GitHub with Swift Build integration code..library
product..build/manifest.pif
file."ALL-INCLUDING-TESTS"
target does not depend on any of the*-dynamic
targets.Swift Package Manager version/commit hash
NA
Swift & OS version (output of
swift --version ; uname -a
)The text was updated successfully, but these errors were encountered: