xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

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

Open wei18 opened this issue 6 months ago • 0 comments

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

wei18 avatar Jun 03 '25 06:06 wei18