XcodesOrg / XcodesOrg/xcodes

How do I print the install path of a specific Xcode?

Open
#441 1 comment 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

Hi:

We use xcodes in our CI infra, for now I just hard-encode /Applications/Xcode-{VERSION}.app.

However, if AppStore already installs Xcode as /Applications/Xcode.app, this breaks.

xcodes install -p doesn't achieve what I need, because in this case:

xcodes install -p 16.4.0
16.4 is already installed at /Applications/Xcode.app

Expected behavior:

  • xcodes install 16.4.0 if it's not installed
  • Then just prints out the raw path without that message prefix

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 at the xcodes install -p command entry point and trace how it handles an already-installed Xcode, including the /Applications/Xcode.app case. Confirm the command installs version 16.4.0 when needed and prints only the raw resolved path afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.