Skip to content

[Parity] error: Multiple commands produce #9157

@kcieplak

Description

@kcieplak

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

https://github.com/getsentry/sentry-cocoa.git
MacOS

The following package does not build using the 'swifbuild' backend but does with 'native'

swift build `--buildsystem=swiftbuild` fails to build package
error: Multiple commands produce '/private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/arm64-apple-macosx/Products/Debug/Sentry.framework'
info: Command: ProcessXCFramework /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/artifacts/sentry-cocoa/Sentry-Dynamic-WithARM64e/Sentry-Dynamic-WithARM64e.xcframework /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/arm64-apple-macosx/Products/Debug/Sentry.framework macos
info: Command: ProcessXCFramework /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/artifacts/sentry-cocoa/Sentry-Dynamic/Sentry-Dynamic.xcframework /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/arm64-apple-macosx/Products/Debug/Sentry.framework macos
info: Command: ProcessXCFramework /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/artifacts/sentry-cocoa/Sentry/Sentry.xcframework /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/arm64-apple-macosx/Products/Debug/Sentry.framework macos
error: Multiple commands produce '/private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@4/spi-workdir/D071710C-D745-481C-B50A-068827E39F1C/sentry-cocoa/.build-swiftbuild/arm64-apple-macosx/Products/Debug/Sentry.framework.dSYM'
inf

Expected behavior

Builds

Actual behavior

Fails to build

Steps to reproduce

git clone https://github.com/getsentry/sentry-cocoa.git
swift build --build-system=swiftbuild

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions