Skip to content

build: clear Xcode preflight in build-macos.sh - #10

Merged
evandhoffman merged 1 commit into
mainfrom
fix/build-macos-xcode-preflight
Jun 20, 2026
Merged

build: clear Xcode preflight in build-macos.sh#10
evandhoffman merged 1 commit into
mainfrom
fix/build-macos-xcode-preflight

Conversation

@evandhoffman

Copy link
Copy Markdown
Collaborator

On a laptop with only the Command Line Tools selected, build-macos.sh failed deep in reload.sh with:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

This adds an up-front check so the script says exactly what to do instead:

error: building cmux requires a full Xcode, but 'xcodebuild' is not usable.
  active developer directory: /Library/Developer/CommandLineTools
  Xcode is installed but not selected. Point the toolchain at it:
    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
  (The Command Line Tools alone cannot run xcodebuild.)

(or, if Xcode isn't installed, an install message). Purely additive — a no-op when xcodebuild already works, so it can't affect a working build.

When only the Command Line Tools are selected (active dir
/Library/Developer/CommandLineTools), the build previously failed deep in
reload.sh with a cryptic 'xcodebuild requires Xcode' xcode-select error. Check
up front and print exactly what to do (xcode-select -s, or install Xcode). The
guard is a no-op when xcodebuild already works.
@evandhoffman
evandhoffman enabled auto-merge June 20, 2026 12:47
@evandhoffman
evandhoffman merged commit f6a8540 into main Jun 20, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant