-
Notifications
You must be signed in to change notification settings - Fork 3.9k
script/macos/bootstrap fails when Xcode is installed via Xcodes app or under a non-default name #10125
Copy link
Copy link
Closed
Labels
area:launch-configsLaunch configurations, workflows, tab configs, and automation entry points.Launch configurations, workflows, tab configs, and automation entry points.bugSomething isn't working.Something isn't working.os:macmacOS-specific behavior, regressions, or requests.macOS-specific behavior, regressions, or requests.ready-to-implementThe issue is ready for implementation work.The issue is ready for implementation work.repro:highThe report includes enough evidence that the issue appears highly reproducible.The report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Metadata
Metadata
Assignees
Labels
area:launch-configsLaunch configurations, workflows, tab configs, and automation entry points.Launch configurations, workflows, tab configs, and automation entry points.bugSomething isn't working.Something isn't working.os:macmacOS-specific behavior, regressions, or requests.macOS-specific behavior, regressions, or requests.ready-to-implementThe issue is ready for implementation work.The issue is ready for implementation work.repro:highThe report includes enough evidence that the issue appears highly reproducible.The report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Summary
script/macos/bootstraphardcodes a check for/Applications/Xcode.appand asudo xcode-select --switch /Applications/Xcode.app/Contents/Developer. This breaks for users who install Xcode via the Xcodes app, where installations are named likeXcode-26.3.0.apporXcode-beta.app. The script exits with "Please install Xcode from the App Store before continuing." even though a fully functional Xcode is installed.Steps to reproduce
/Applications/Xcode-26.3.0.apprather than/Applications/Xcode.app).xcode-select -ppoints at that install (e.g./Applications/Xcode-26.3.0.app/Contents/Developer)../script/macos/bootstrap.Expected behavior
The script detects the existing Xcode installation (regardless of its
.appfilename) and proceeds.Actual behavior
The script fails immediately at the
[ -d "/Applications/Xcode.app" ]check and prints "Please install Xcode from the App Store before continuing."Environment
script/macos/bootstrap(lines 8–13).Notes
A complete fix should: (a) accept any
/Applications/Xcode*.appname, (b) detect when only Command Line Tools is selected and either switch to a discovered full Xcode or fail with the intended error, and (c) preserve the existing auto-xcode-select --switchbehavior so users with a full Xcode installed but CLT currently selected don't have to fix selection by hand.