mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(ios): require explicit gateway log target
This commit is contained in:
@@ -1,9 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
DEVICE_UDID="${1:-00008130-000630CE0146001C}"
|
||||
BUNDLE_ID="${2:-ai.openclaw.ios.dev.mariano.test}"
|
||||
DEST="${3:-/tmp/openclaw-gateway.log}"
|
||||
usage() {
|
||||
echo "Usage: $0 <device-udid> <bundle-id> [dest]" >&2
|
||||
echo " OPENCLAW_IOS_DEVICE_UDID=... OPENCLAW_IOS_BUNDLE_ID=... $0" >&2
|
||||
}
|
||||
|
||||
DEVICE_UDID="${1:-${OPENCLAW_IOS_DEVICE_UDID:-}}"
|
||||
BUNDLE_ID="${2:-${OPENCLAW_IOS_BUNDLE_ID:-}}"
|
||||
DEST="${3:-${OPENCLAW_IOS_GATEWAY_LOG_DEST:-}}"
|
||||
|
||||
if [[ -z "$DEVICE_UDID" || -z "$BUNDLE_ID" ]]; then
|
||||
usage
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if [[ -z "$DEST" ]]; then
|
||||
dest_dir="$(mktemp -d "${TMPDIR:-/tmp}/openclaw-ios-gateway.XXXXXX")"
|
||||
DEST="$dest_dir/openclaw-gateway.log"
|
||||
fi
|
||||
|
||||
xcrun devicectl device copy from \
|
||||
--device "$DEVICE_UDID" \
|
||||
@@ -14,4 +29,3 @@ xcrun devicectl device copy from \
|
||||
|
||||
echo "Pulled to: $DEST"
|
||||
tail -n 200 "$DEST"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user