

# 2026-11-24 — Rebuilt Driver verified correct; build 46 halts in dyld on iOS 27 only

## Verification that the proper dump is byte-correct
Compared `proper319\Driver` (36,372,384 B, same size as the on-disk original)
against `patch_src_orig\Driver` (the old PARTIAL dump that demonstrably runs):
- `__TEXT`: 7576 pages compared, **only ONE page differs - at file offset 0x1000**,
  and that difference is exactly the cryptid 1 -> 0 patch in the load commands
  (`uncrypt46.py`). Everything else, i.e. all code, is byte-identical.
  (Proof: at 0x1000 the OLD dump is still equal to the ENCRYPTED on-disk original,
  while the new dump carries the decrypted/corrected load commands.)
- `__LINKEDIT`: 54/620 pages identical -> completely different, which is precisely
  the repair (real dyld_info + real symtab instead of the zeroed one).

So the rebuilt Driver is structurally sound and its code is the same code that has
been running in builds 19-45.

## Build 46 on the two devices
- **X (iOS 16.7.16)**: installs, launches, runs in the foreground for the full
  20 s, then killed by the process-launch watchdog. No crash, no DYLD error.
- **15 Pro (iOS 27.0.1)**: `EXC_CRASH / SIGABRT`, termination namespace **DYLD**,
  `dyld4::halt` <- `dyld4::prepare` <- `dyld4::start`.
  Driver + ALL 169 app frameworks are already in `usedImages`, so the halt is in
  the **fixups/bindings** stage of `prepare`.
  `asi` is null, so the dyld message is NOT in the crash report.
  Code signature is fine: `codeSigningID=vn.gsm.md`, `TeamID=MFCLWQ7UZK`,
  validation category 5, trust level 4.

## Meaning
With valid bind information dyld now actually binds the ~4,568 imports it used to
skip. On iOS 16 that succeeds; on iOS 27 `dyld4::prepare` halts. The message has
to come from the unified log.

## Next step
Stream the 15 Pro's unified log while launching build 46:
    python -m pymobiledevice3 syslog live --udid <15pro-udid>
The dyld halt message (typically "Symbol not found: ..." or a fixup error) will
appear there and will name the exact import / segment that fails.

## Candidate causes to check against that message
1. A symbol that exists on iOS 16 but not on iOS 27 (unlikely - the App Store
   original runs on the 15 Pro).
2. The in-memory __LINKEDIT we copied may contain runtime-mutated regions; if so,
   the conservative rebuild is: on-disk file + memory __TEXT + ONLY the
   dyld_info/symtab/strtab/export ranges of __LINKEDIT (keep the on-disk
   CodeSignature region).
3. LCSign's re-sign interacting with the App Store signature blob that the memory
   image still contains at the tail of __LINKEDIT.
