fix(mac): preserve Xcode preflight failure diagnostics (#121170)

This commit is contained in:
Leon-SK668
2026-08-13 14:17:32 +08:00
committed by GitHub
parent 3f4f57a021
commit cc2ed816be
2 changed files with 29 additions and 4 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ REQUIRED_SWIFT_TOOLS_MAJOR=6
REQUIRED_SWIFT_TOOLS_MINOR=2
require_swift_toolchain() {
if ! xcrun xcodebuild -version >/dev/null 2>&1; then
local xcodebuild_version
if ! xcodebuild_version="$(xcrun xcodebuild -version 2>&1)"; then
printf '%s\n' "$xcodebuild_version" >&2
echo "ERROR: OpenClaw macOS app packaging requires a full Xcode developer directory." >&2
echo " Command Line Tools do not include the required SwiftUI macro plugins." >&2
echo " Use: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer" >&2