XcodesOrg / XcodesOrg/xcodes

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

Open
#427 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

🐛 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the resolution failure with the Package.swift dependency on xcodes 1.5.0, then inspect the package dependency on data and its available tags. The work is done when the stable xcodes release resolves through Swift Package Manager using semver-compatible dependency versions, without requiring a branch or revision reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.