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

推荐订阅源

D
Docker
Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
腾讯CDC
B
Blog RSS Feed
H
Help Net Security
J
Java Code Geeks
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
博客园 - Franky
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 叶小钗
Martin Fowler
Martin Fowler

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
fix: use canonical ios bundle identifiers · openclaw/open...
joshavant · 2026-06-16 · via Recent Commits to openclaw:main
1+

// iOS configure signing tests cover generated local signing defaults.

2+

import { execFileSync } from "node:child_process";

3+

import { copyFileSync, mkdirSync, readFileSync } from "node:fs";

4+

import path from "node:path";

5+

import { afterAll, beforeAll, describe, expect, it } from "vitest";

6+

import { cleanupTempDirs, makeTempDir } from "../helpers/temp-dir.js";

7+8+

const SCRIPT = path.join(process.cwd(), "scripts", "ios-configure-signing.sh");

9+

const TEAM_ID_SCRIPT = path.join(process.cwd(), "scripts", "ios-team-id.sh");

10+

const BASH_BIN = process.platform === "win32" ? "bash" : "/bin/bash";

11+12+

const tempDirs: string[] = [];

13+

let fixtureScript = "";

14+

let fixtureLocalSigningFile = "";

15+16+

function bashArgs(scriptPath: string): string[] {

17+

return process.platform === "win32" ? [scriptPath] : ["--noprofile", "--norc", scriptPath];

18+

}

19+20+

function runConfigureSigning(teamId: string, user = "localuser"): string {

21+

return execFileSync(BASH_BIN, bashArgs(fixtureScript), {

22+

env: {

23+

...process.env,

24+

IOS_DEVELOPMENT_TEAM: teamId,

25+

OPENCLAW_IOS_APP_BUNDLE_ID: "",

26+

OPENCLAW_IOS_BUNDLE_ID_BASE: "",

27+

OPENCLAW_IOS_BUNDLE_SUFFIX: "",

28+

OPENCLAW_IOS_SHARE_BUNDLE_ID: "",

29+

OPENCLAW_IOS_ACTIVITY_WIDGET_BUNDLE_ID: "",

30+

OPENCLAW_IOS_WATCH_APP_BUNDLE_ID: "",

31+

OPENCLAW_IOS_WATCH_EXTENSION_BUNDLE_ID: "",

32+

USER: user,

33+

},

34+

encoding: "utf8",

35+

stdio: ["ignore", "pipe", "pipe"],

36+

}).trim();

37+

}

38+39+

function readGeneratedSigning(): string {

40+

return readFileSync(fixtureLocalSigningFile, "utf8");

41+

}

42+43+

describe.sequential("scripts/ios-configure-signing.sh", () => {

44+

beforeAll(() => {

45+

const fixtureRoot = makeTempDir(tempDirs, "openclaw-ios-configure-signing-");

46+

const scriptsDir = path.join(fixtureRoot, "scripts");

47+

const iosDir = path.join(fixtureRoot, "apps", "ios");

48+

mkdirSync(scriptsDir, { recursive: true });

49+

mkdirSync(iosDir, { recursive: true });

50+51+

fixtureScript = path.join(scriptsDir, "ios-configure-signing.sh");

52+

fixtureLocalSigningFile = path.join(iosDir, ".local-signing.xcconfig");

53+

copyFileSync(SCRIPT, fixtureScript);

54+

copyFileSync(TEAM_ID_SCRIPT, path.join(scriptsDir, "ios-team-id.sh"));

55+

});

56+57+

afterAll(async () => {

58+

cleanupTempDirs(tempDirs);

59+

});

60+61+

it("uses the canonical app bundle ID for the canonical OpenClaw team", () => {

62+

const stdout = runConfigureSigning("FWJYW4S8P8");

63+

const generated = readGeneratedSigning();

64+65+

expect(stdout).toContain("team=FWJYW4S8P8 app=ai.openclawfoundation.app");

66+

expect(generated).toContain("OPENCLAW_DEVELOPMENT_TEAM = FWJYW4S8P8");

67+

expect(generated).toContain("OPENCLAW_APP_BUNDLE_ID = ai.openclawfoundation.app");

68+

expect(generated).toContain("OPENCLAW_SHARE_BUNDLE_ID = ai.openclawfoundation.app.share");

69+

});

70+71+

it("keeps unique local bundle IDs for non-canonical fallback teams", () => {

72+

const stdout = runConfigureSigning("Y3YUZP442G");

73+

const generated = readGeneratedSigning();

74+75+

expect(stdout).toContain(

76+

"canonical_team=FWJYW4S8P8 local_team=Y3YUZP442G app=ai.openclawfoundation.app.test.localuser-y3yuzp442g",

77+

);

78+

expect(generated).toContain("OPENCLAW_DEVELOPMENT_TEAM = Y3YUZP442G");

79+

expect(generated).toContain(

80+

"OPENCLAW_APP_BUNDLE_ID = ai.openclawfoundation.app.test.localuser-y3yuzp442g",

81+

);

82+

});

83+

});