Don't error when using xcode-select to find current selected version.
Open
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
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
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