Skip to content

Multiple packages declare targets with a conflicting name #974

@DrBeak1

Description

@DrBeak1

Describe the bug

My team just tried to update our amplfiy-swift package to 2.51.0, which references smithy-swift, which adds opentelemetry-swift v1.15.0. This version causes a naming conflict with another package we use that depends on DataCompression.
Recently opentelemetry-swift was updated to fix this issue, version 2.1.0 (here).
Is it possible to update the opentelemetry-swift version in smithy-swift so it's less restrictive?

We opened a ticket with amplify-swift, and the maintainers there asked that we open a ticket here.

Expected Behavior

No conflicts over package dependencies.

Current Behavior

Dependency error: multiple packages {"datacompression", "opentelemetry-swift"} declare targets with a conflicting name: 'DataCompression'; target names need to be unique ...

Reproduction Steps

Steps to reproduce the behavior:
1. Create new project in Xcode
2. Add Launch Darkly SDK: https://github.com/launchdarkly/ios-client-sdk.git
3. Add `amplify-swift`
Result:
Package resolve error with "Multiple packages ..." error message.

Possible Solution

Update referenced version of opentelemetry-swift to latest release

Additional Information/Context

No response

AWS SWIFT SDK version used

2.51.0

Compiler and Version used

Xcode: 16.4, 26 | Swift 6.1.2

Operating System and version

MacOS 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions