惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Recent Announcements
Recent Announcements
Jina AI
Jina AI
G
Google Developers Blog
腾讯CDC
博客园_首页
博客园 - 【当耐特】

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat: wire ios push sandbox tooling · openclaw/openclaw@7...
joshavant · 2026-06-23 · via Recent Commits to openclaw:main

@@ -15,23 +15,126 @@ XCODEGEN_BIN="${IOS_RUN_XCODEGEN_BIN:-xcodegen}"

1515

SIMCTL_BIN="${IOS_RUN_SIMCTL_BIN:-xcrun simctl}"

1616

PLIST_BUDDY_BIN="${IOS_RUN_PLIST_BUDDY_BIN:-/usr/libexec/PlistBuddy}"

171718+

usage() {

19+

cat <<'EOF'

20+

Usage: scripts/ios-run.sh [options]

21+22+

Options:

23+

--push-sandbox-simulator

24+

Build with the hosted sandbox push relay and launch the simulator with an

25+

internal simulator proof secret.

26+

--push-relay-base-url <url>

27+

Override the sandbox relay URL used with --push-sandbox-simulator.

28+

Defaults to https://ios-push-relay-sandbox.openclaw.ai.

29+

--simulator-proof-secret-env <name>

30+

Environment variable that contains the simulator proof secret.

31+

Defaults to OPENCLAW_SIMULATOR_PUSH_PROOF_SECRET.

32+

-h, --help

33+

Show this help.

34+

EOF

35+

}

36+1837

run_simctl() {

1938

# shellcheck disable=SC2086

2039

${SIMCTL_BIN} "$@"

2140

}

224142+

push_sandbox_simulator=0

43+

push_relay_base_url="${OPENCLAW_PUSH_SANDBOX_RELAY_BASE_URL:-https://ios-push-relay-sandbox.openclaw.ai}"

44+

simulator_proof_secret_env="${OPENCLAW_SIMULATOR_PUSH_PROOF_SECRET_ENV:-OPENCLAW_SIMULATOR_PUSH_PROOF_SECRET}"

45+46+

while [[ $# -gt 0 ]]; do

47+

case "$1" in

48+

--push-sandbox-simulator)

49+

push_sandbox_simulator=1

50+

;;

51+

--push-relay-base-url)

52+

if [[ $# -lt 2 || -z "$2" ]]; then

53+

echo "ERROR: --push-relay-base-url requires a URL" >&2

54+

exit 1

55+

fi

56+

push_relay_base_url="$2"

57+

shift

58+

;;

59+

--simulator-proof-secret-env)

60+

if [[ $# -lt 2 || -z "$2" ]]; then

61+

echo "ERROR: --simulator-proof-secret-env requires an environment variable name" >&2

62+

exit 1

63+

fi

64+

simulator_proof_secret_env="$2"

65+

shift

66+

;;

67+

-h | --help)

68+

usage

69+

exit 0

70+

;;

71+

*)

72+

echo "ERROR: Unknown argument: $1" >&2

73+

usage >&2

74+

exit 1

75+

;;

76+

esac

77+

shift

78+

done

79+80+

xcodebuild_overrides=()

81+

simulator_proof_secret=""

82+83+

if [[ ! "${simulator_proof_secret_env}" =~ ^[A-Za-z_][A-Za-z0-9_]*$ ]]; then

84+

echo "ERROR: Invalid simulator proof secret environment variable name" >&2

85+

exit 1

86+

fi

87+88+

if [[ "${push_sandbox_simulator}" == "1" ]]; then

89+

simulator_proof_secret="${!simulator_proof_secret_env:-}"

90+

if [[ -z "${simulator_proof_secret}" ]]; then

91+

echo "ERROR: ${simulator_proof_secret_env} must be set for --push-sandbox-simulator" >&2

92+

exit 1

93+

fi

94+

if [[ "${#simulator_proof_secret}" -lt 32 ]]; then

95+

echo "ERROR: ${simulator_proof_secret_env} must contain at least 32 characters" >&2

96+

exit 1

97+

fi

98+99+

xcodebuild_overrides+=(

100+

"OPENCLAW_PUSH_TRANSPORT=relay"

101+

"OPENCLAW_PUSH_DISTRIBUTION=official"

102+

"OPENCLAW_PUSH_RELAY_BASE_URL=${push_relay_base_url}"

103+

"OPENCLAW_PUSH_APNS_ENVIRONMENT=sandbox"

104+

"OPENCLAW_PUSH_RELAY_PROFILE=simulatorSandbox"

105+

"OPENCLAW_PUSH_PROOF_POLICY=internalSimulator"

106+

"OPENCLAW_APNS_ENTITLEMENT_ENVIRONMENT=development"

107+

)

108+

fi

109+110+

unset "${simulator_proof_secret_env}"

111+

if [[ "${simulator_proof_secret_env}" != "OPENCLAW_SIMULATOR_PUSH_PROOF_SECRET" ]]; then

112+

unset OPENCLAW_SIMULATOR_PUSH_PROOF_SECRET

113+

fi

114+23115

"${ROOT_DIR}/scripts/ios-configure-signing.sh"

24116

"${ROOT_DIR}/scripts/ios-write-version-xcconfig.sh"

2511726118

cd "${IOS_DIR}"

27119

"${XCODEGEN_BIN}" generate

28-

"${XCODEBUILD_BIN}" \

29-

-project OpenClaw.xcodeproj \

30-

-scheme OpenClaw \

31-

-destination "${IOS_DESTINATION}" \

32-

-configuration "${CONFIGURATION}" \

33-

-derivedDataPath "${DERIVED_DATA_DIR}" \

34-

build

120+

if [[ "${push_sandbox_simulator}" == "1" ]]; then

121+

"${XCODEBUILD_BIN}" \

122+

-project OpenClaw.xcodeproj \

123+

-scheme OpenClaw \

124+

-destination "${IOS_DESTINATION}" \

125+

-configuration "${CONFIGURATION}" \

126+

-derivedDataPath "${DERIVED_DATA_DIR}" \

127+

build \

128+

"${xcodebuild_overrides[@]}"

129+

else

130+

"${XCODEBUILD_BIN}" \

131+

-project OpenClaw.xcodeproj \

132+

-scheme OpenClaw \

133+

-destination "${IOS_DESTINATION}" \

134+

-configuration "${CONFIGURATION}" \

135+

-derivedDataPath "${DERIVED_DATA_DIR}" \

136+

build

137+

fi

3513836139

app_path="${DERIVED_DATA_DIR}/Build/Products/${CONFIGURATION}-iphonesimulator/${APP_NAME}.app"

37140

if [[ ! -d "${app_path}" ]]; then

@@ -54,4 +157,10 @@ if ! boot_output="$(run_simctl boot "${SIMULATOR_TARGET}" 2>&1)"; then

54157

fi

5515856159

run_simctl install "${SIMULATOR_TARGET}" "${app_path}"

57-

run_simctl launch "${SIMULATOR_TARGET}" "${bundle_id}"

160+

if [[ "${push_sandbox_simulator}" == "1" ]]; then

161+

# shellcheck disable=SC2086

162+

SIMCTL_CHILD_OPENCLAW_SIMULATOR_PUSH_PROOF_SECRET="${simulator_proof_secret}" \

163+

${SIMCTL_BIN} launch "${SIMULATOR_TARGET}" "${bundle_id}"

164+

else

165+

run_simctl launch "${SIMULATOR_TARGET}" "${bundle_id}"

166+

fi