fix(crabbox): require Xcode for macOS proof · openclaw/openclaw@4d03463
vincentkoc
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2593,6 +2593,10 @@ function remoteAwsMacosSwiftBootstrap() {
|
2593 | 2593 | 'echo "[crabbox] current Swift is $1.$2; select/install Xcode 26.x or use a Blacksmith macOS runner with Xcode_26.1.app." >&2;', |
2594 | 2594 | "return 2;", |
2595 | 2595 | "fi;", |
| 2596 | +'openclaw_xcodebuild_version="$(xcodebuild -version 2>&1)" || { printf "%s\\n" "$openclaw_xcodebuild_version" >&2; echo "[crabbox] OpenClaw macOS app proof requires Xcode 26.x; active developer directory does not provide usable xcodebuild." >&2; return 2; };', |
| 2597 | +'printf "%s\\n" "$openclaw_xcodebuild_version" >&2;', |
| 2598 | +'openclaw_xcode_major="$(printf "%s\\n" "$openclaw_xcodebuild_version" | sed -nE "s/^Xcode ([0-9]+)(\\..*)?$/\\1/p" | head -n 1)";', |
| 2599 | +'if [ "$openclaw_xcode_major" != "26" ]; then echo "[crabbox] OpenClaw macOS app proof requires Xcode 26.x; current xcodebuild is ${openclaw_xcode_major:-unknown}." >&2; return 2; fi;', |
2596 | 2600 | "};", |
2597 | 2601 | "openclaw_crabbox_require_macos_swift_62", |
2598 | 2602 | ].join(" "); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。