-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Is it reproducible with SwiftPM command-line tools: swift build
, swift test
, swift package
etc?
- Confirmed reproduction steps with SwiftPM CLI.
Description
A compilation error occurs when package access level modifiers are used in a dependent Swift Package while simultaneously building arm64 and x86_64 architectures.
Specifically, swift build
, swift build --arch arm64
, and swift build --arch x86_64
commands successfully compile individually without any errors. However, the command swift build --arch arm64 --arch x86_64
gives an error.
Consider the error message:
XXXX has a package access level but no -package-name was specified:
Expected behavior
Build succeeded and generated a universal binary
Actual behavior
Build cancelled
Steps to reproduce
- Download Foo.zip, then unzip it and change your current directory (
cd
) into the Foo directory. - Run the command
swift build --arch arm64 --arch x86_64
.
Swift Package Manager version/commit hash
5.10
Swift & OS version (output of swift --version ; uname -a
)
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Darwin Foo 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:54 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6030 arm64