Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build for multiple architectures fails (--arch arm64 --arch x86_64) #8013

Open
1 task done
abel3cl opened this issue Oct 1, 2024 · 0 comments
Open
1 task done

build for multiple architectures fails (--arch arm64 --arch x86_64) #8013

abel3cl opened this issue Oct 1, 2024 · 0 comments
Labels

Comments

@abel3cl
Copy link

abel3cl commented Oct 1, 2024

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')

Steps to reproduce

  1. Checkout https://github.com/SwiftyLab/MetaCodable
  2. cd Metacodable
  3. swift build --arch arm64 --arch x86_64

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

@abel3cl abel3cl added the bug label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant