amplify-swift icon indicating copy to clipboard operation
amplify-swift copied to clipboard

Multiple packages declare targets with a conflicting name

Open DrBeak1 opened this issue 2 months ago • 6 comments

Describe the bug

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

Steps To Reproduce

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.

Expected behavior

No conflicts over package dependencies.

Amplify Framework Version

2.51.0

Amplify Categories

Auth, Analytics, API

Dependency manager

Swift PM

Swift version

6.1.2

CLI version

n/a

Xcode version

16.4 and 26.0.1

Relevant log output

<details>
<summary>Log Messages</summary>


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

</details>

Is this a regression?

No

Regression additional context

No response

Platforms

iOS

OS Version

iOS 26

Device

iPhone 16-17

Specific to simulators

No

Additional context

No response

DrBeak1 avatar Oct 01 '25 20:10 DrBeak1

@DrBeak1 Can you please open an issue with smithy-lang/smithy-swift repo. The dependency is defined here and they would need to update in order for you to consume it.

harsh62 avatar Oct 02 '25 02:10 harsh62

@harsh62 sure thing.

DrBeak1 avatar Oct 02 '25 15:10 DrBeak1

@DrBeak1 Will keep this issue open because once the underlying dependency updates, we will need to publish a new version too.

We will keep monitoring the smithy release, but incase we miss it, please remind us on the ticket.

harsh62 avatar Oct 03 '25 13:10 harsh62

@harsh62 see comment here

DrBeak1 avatar Nov 03 '25 16:11 DrBeak1

Thanks, we will work with the Smithy Swift to be ready for when this happens.

tylerjroach avatar Nov 03 '25 20:11 tylerjroach

@DrBeak1 Quick update here. We are still waiting for the SDK team to push out changes. Once that happens, we will also update the library.

harsh62 avatar Dec 01 '25 18:12 harsh62