XcodesOrg / XcodesOrg/xcodes

Support "~> 13.3" version formats

Open
#266 0 comments 5 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

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:
Screenshot 2023-01-12 at 08 44 22
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.