Files
software-mansion__argent/packages/tool-server/test/native-devtools-env.test.ts
filip131311 c990e98839 fix: use launchctl getenv to avoid simctl 127-byte truncation of DYLD_INSERT_LIBRARIES (#127)
`xcrun simctl getenv` silently truncates return values at 127 bytes.
The code was reading with `simctl getenv` but writing with
`simctl spawn ... launchctl setenv`, causing each ensureEnv() cycle to
read a truncated value, fail to recognize the truncated argent path
fragments, preserve them, and append a fresh bootstrap — corrupting
the variable and clobbering third-party dylibs like SimCam.

Fix:
- Read via `simctl spawn <udid> launchctl getenv` (same store, no limit)
- Restore fs.existsSync guard to strip truncated/stale entries while
  keeping third-party dylibs that exist on disk (e.g. SimCam)
- Bump mcp version to 0.4.4
2026-04-16 00:16:10 +02:00

3.5 KiB