Skip to content

Commit aba773f

Browse files
committed
fix(install): trigger xcode-select --install when swiftc missing
Opens the macOS system dialog to install Xcode Command Line Tools, matching what Homebrew does. User re-runs the script after completion.
1 parent 85ff1ac commit aba773f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ install_macos_helper() {
130130
swiftc -O -o "$OBK_DIR/bin/obkmacos" "$SWIFT_SRC"
131131
if [ -n "$SWIFT_SRC_TMP" ]; then rm -f "$SWIFT_SRC_TMP"; fi
132132
else
133-
warn "Xcode Command Line Tools not found — skipping Apple Contacts/Notes"
134-
warn "Install with: xcode-select --install"
135-
warn "Then re-run this script"
133+
log "Xcode Command Line Tools required for Apple Contacts/Notes"
134+
xcode-select --install 2>/dev/null || true
135+
warn "Complete the Xcode install dialog, then re-run this script"
136136
fi
137137
}
138138

0 commit comments

Comments
 (0)