skiptools / skiptools/skip

`skip doctor` should suggest using `xcode-select` if the command-line tools are selected

Open
#609 0 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.