Skip to content

fix(helper): coexist on dyld inserts, re-arm sims#19

Merged
0xnirapod merged 2 commits into
mainfrom
fix/auto-injection-coexistence
Jun 29, 2026
Merged

fix(helper): coexist on dyld inserts, re-arm sims#19
0xnirapod merged 2 commits into
mainfrom
fix/auto-injection-coexistence

Conversation

@athexweb3

Copy link
Copy Markdown
Contributor

SimBLE and a peer simulator-injection tool (SimEnclave) both set DYLD_INSERT_LIBRARIES; a single launchctl setenv overwrote the other, and arming ran only at bridge start.

  • Compose append-if-absent and remove only our own slice on teardown, so the tools coexist (new InjectionEnv utility plus unit tests).
  • Re-arm booted simulators on a short cadence, off the main actor, so a sim booted after the bridge, a reboot, or a clobber recovers without a manual toggle.

The SimBLE half of the coexistence fix shipped in SimEnclave v1.1.1. Fence allowlist updated for the new file; the helper suite (including end-to-end arming with a fake runner) passes.

A single launchctl setenv overwrote any DYLD_INSERT_LIBRARIES a peer tool (SimEnclave) had set,
and arming ran only at bridge start. Compose append-if-absent, remove only our own entry on
teardown, and re-arm booted simulators on a short cadence, so the two tools coexist and a boot,
reboot, or clobber recovers without a manual toggle.
@athexweb3
athexweb3 requested a review from a team as a code owner June 29, 2026 15:24
Teardown matched our dyld entry by absolute path, so a moved or missing
slice stranded a stale insert. Match by file name instead; compose
dedupes by name too.
@athexweb3
athexweb3 force-pushed the fix/auto-injection-coexistence branch from 92b3dcb to c1d93d7 Compare June 29, 2026 15:44

@0xnirapod 0xnirapod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coexistence and teardown verified; full suite green.

@0xnirapod
0xnirapod merged commit d136263 into main Jun 29, 2026
3 checks passed
@0xnirapod
0xnirapod deleted the fix/auto-injection-coexistence branch June 29, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants