mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(mac): fail fast without full Xcode (#120909)
This commit is contained in:
committed by
GitHub
parent
a3d2ac7dc8
commit
dba99b355b
@@ -4,6 +4,14 @@ REQUIRED_SWIFT_TOOLS_MAJOR=6
|
||||
REQUIRED_SWIFT_TOOLS_MINOR=2
|
||||
|
||||
require_swift_toolchain() {
|
||||
if ! xcrun xcodebuild -version >/dev/null 2>&1; then
|
||||
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
|
||||
echo " Or set: DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
local swift_version
|
||||
if ! swift_version="$(swift --version 2>&1)"; then
|
||||
printf '%s\n' "$swift_version" >&2
|
||||
|
||||
Reference in New Issue
Block a user