`skip doctor` should suggest using `xcode-select` if the command-line tools are selected
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.2k
- Forks
- 106
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 1
Description
% sudo xcode-select --switch /Library/Developer/CommandLineTools
% xcodebuild --version
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
% skip doctor
[✗] Xcode version: error executing xcodebuild (install from: https://developer.apple.com/xcode/)
skip doctor should suggest running xcode-select in this case.
Note that installing Homebrew automatically installs and selects /Library/Developer/CommandLineTools.
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 at the skip doctor command and reproduce the failure with /Library/Developer/CommandLineTools selected via xcode-select. Check how the xcodebuild error is reported, then make the completed diagnostic suggest switching to Xcode with xcode-select and verify the output against the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100