Skip to content

[SPM] xcodes 1.5.0 cannot be resolved due to dependency on unstable package 'data' #427

@wei18

Description

@wei18

🐛 Describe the bug

When using Swift Package Manager to integrate xcodes version 1.5.0, resolution fails due to a dependency on an unstable package, data.

SwiftPM does not allow stable versions to depend on packages without stable versions, resulting in the following error:

error: Dependencies could not be resolved because package 'xcodes' is required using a stable-version but 'xcodes' depends on an unstable-version package 'data' and root depends on 'xcodes' 1.5.0.

💡 Suggested fix

To make the stable release of xcodes usable via SwiftPM, please ensure that all dependencies—especially data—point to a tagged (semver-compliant) release version.

🔁 Workaround

As a temporary workaround, I can depend on xcodes using a branch or revision reference, but this prevents me from locking to a stable release version, which is important for reproducible builds.

✅ Steps to Reproduce

  1. Add this line to Package.swift:
    .package(url: "https://github.com/XcodesOrg/xcodes", from: "1.5.0")
  2. Try resolving dependencies
  3. Observe the resolution failure

🙏 Thanks

Thank you for maintaining this project! A fix would really help make xcodes easier to adopt in SwiftPM-based workflows.

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