Skip to content

SPM Identity Clash Due to Generic ios-sdk Repository Name #465

@michaelsprindzuikate-dice

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

  1. Create a new blank Xcode project.
  2. Add any SPM dependency whose repo name is ios-sdk (there are many on https://swiftpackageindex.com).
  3. Attempt to add the Spotify SDK.

Xcode raises an identity‑clash error because both packages share the same repo name.

Image Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions