Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(ios-simulator): preserve Darwin diagnostic paths

JiangJiahao12c578ce2192
diff --git a/packages/ios-simulator-runtime/src/wda/process-manager.ts b/packages/ios-simulator-runtime/src/wda/process-manager.ts
index 0e059560a0..3315861b89 100644
--- a/packages/ios-simulator-runtime/src/wda/process-manager.ts
+++ b/packages/ios-simulator-runtime/src/wda/process-manager.ts
@@ -409,7 +409,10 @@ export function findCindyWdaDiagnosticCandidates(
input.xcodebuildExecutablePaths ?? [],
);
return parseDarwinProcessSnapshot(snapshot)
- .filter((row) => executablePaths.has(path.resolve(row.command.trim())))
+ // The snapshot always comes from Darwin. Keep its absolute executable path
+ // byte-for-byte stable instead of reinterpreting it with the test host's
+ // path flavor (for example, Windows would rewrite /usr/bin/xcrun).
+ .filter((row) => executablePaths.has(row.command.trim()))
.map((row) => ({
pid: row.pid,
processGroupId: row.processGroupId,