XcodesOrg / XcodesOrg/xcodes

Don't error when using xcode-select to find current selected version.

Open
#210 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

$ xcodes list
Failed executing: `/usr/bin/xcode-select -p` (2).

MAINTAINER EDITED BELOW

If I don't have any Xcode version installed, Xcodes currently errors out using the xcode-select to print out which version is selected

A bit of refactor is needed, but Xcodes should fail gracefully if xcodeSelectPrintPath fails.

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 with the xcodes list flow that calls xcodeSelectPrintPath after running xcode-select -p. Trace how that failure is currently handled and check the behavior when no Xcode version is installed. Done means xcodes list reports available information without erroring in that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.