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
Build a Package.swift which vends an executableTarget with a dependency on a target with a dependency on a macro fails.
Running swift build --arch arm64 or swift build --arch x86_64 separately they successfully complete without any errors.
However, the command swift build --arch arm64 --arch x86_64 gives the error.
It has already been reported at #7442
Still happening with a newer clang version
Expected behavior
Build completes without errors.
Actual behavior
Build fails with error: Unable to resolve build file: BuildFile<PACKAGE-PRODUCT:ProtocolGen::BUILDPHASE_1::14> (The workspace has a reference to a missing target with GUID 'PACKAGE-TARGET:MacroPlugin@11')
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
Build a Package.swift which vends an executableTarget with a dependency on a target with a dependency on a macro fails.
Running swift build --arch arm64 or swift build --arch x86_64 separately they successfully complete without any errors.
However, the command swift build --arch arm64 --arch x86_64 gives the error.
It has already been reported at #7442
Still happening with a newer clang version
Expected behavior
Build completes without errors.
Actual behavior
Build fails with error:
Unable to resolve build file: BuildFile<PACKAGE-PRODUCT:ProtocolGen::BUILDPHASE_1::14> (The workspace has a reference to a missing target with GUID 'PACKAGE-TARGET:MacroPlugin@11')
Steps to reproduce
Swift Package Manager version/commit hash
Swift Package Manager - Swift 6.0.0-dev
Swift & OS version (output of
swift --version ; uname -a
)swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0
Darwin xxxxxxxxxxx 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:49:39 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: