Support "~> 13.3" version formats
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 4.8k
- Forks
- 182
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
We have previously been using xcversion in our build scripts where we have been able to set the xcode version as e.g. '~> 13.3.0' and then get the latest Xcode version on the machine with version number 13.3.x (common version format for dependencies). This does not seem to work with xcodes, we get the following error:

Although a matching version exists on the machine, it fails to select it.
Given that xcodes is advertised as the replacement for xcversion, it would be really nice to have this version format supported.
Please let me know if there's anything I have misunderstood or if there's any other way to do this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by locating xcodes' version parsing and selection entry point, reproduce the failure with ~> 13.3.0 against an installed 13.3.x version, and consider the work done when that format selects the matching latest installed Xcode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100