skiptools / skiptools/skipstone

`skip doctor` fails for lack of `xcodebuild` on fresh install

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

Nobody has claimed this yet.

setup
Dominant language
Swift
Stars
106
Forks
20
Avg merge
2d 3h
Merged PRs (30d)
9

Description

On a fresh machine (e.g. UTM), the initial skip checkup will fail, because installing Homebrew will xcode-select --switch /Library/Developer/CommandLineTools.

[✗] Xcode version: error executing xcodebuild (install from: https://developer.apple.com/xcode/)

In verbose mode:

executing command: /usr/bin/xcodebuild -version
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
[✗] Xcode version: error executing xcodebuild (install from: https://developer.apple.com/xcode/)

(It doesn't matter whether you install Homebrew before or after Xcode. Once Homebrew selects the CLT directory, nothing automatically attempts to reset it to Xcode.)

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

Reproduce the fresh-install case described in the issue, including Homebrew selecting /Library/Developer/CommandLineTools, and trace the skip checkup path that invokes /usr/bin/xcodebuild -version. Done means the initial checkup no longer fails solely because the active developer directory is the command-line-tools instance.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.