-
Notifications
You must be signed in to change notification settings - Fork 205
Description
TL;DR
This repository should be renamed or moved to a uniquely‑namespaced repo. Using the generic name ios-sdk causes unavoidable SPM identity clashes with other packages using the same repository name.
Problem
Swift Package Manager uses the repository name as the package identity. When two dependencies share the same repo name, SPM treats them as the same package and refuses to resolve them together.
Because ios-sdk is a very common repository name, this package is highly likely to collide with others.
Example
- Create a new blank Xcode project.
- Add any SPM dependency whose repo name is
ios-sdk(there are many on https://swiftpackageindex.com). - Attempt to add the Spotify SDK.
Xcode raises an identity‑clash error because both packages share the same repo name.
Why this matters
There are numerous packages named ios-sdk, and SPM currently provides no way to disambiguate them. The Swift team has confirmed that the repository name is used as the identity:
swiftlang/swift-package-manager#7129
This means the only workaround is to fork and rename this repository, which introduces maintenance overhead and risks missing upstream updates.
Proposed solution
Rename or relocate this repository to a more specific and uniquely‑namespaced name, such as:
spotify-ios-sdk
This would eliminate identity collisions and make the package more reliable to integrate via SPM.