device_helper asked AMDeviceNotificationSubscribeWithOptions for the RemoteXPC transport next to the USB mux. On macOS 27 (26A5388g) that replaces the mux transport instead of extending it: a cable-connected, paired iPhone fired no connected callback at all, only detach callbacks with a NULL device.
device_helper list therefore printed [], so the device check showed "No iPhone found. Please connect via USB." and the scanner reported "iPhone not found. Reconnect it via USB." A direct usbmuxd ListDevices call, ioreg and devicectl all listed the same device, and the same subscription without the option returned it immediately.
Move the options into Sources/device_discovery.h so the transport set is testable, and add tests/test_device_discovery.py, which fails if RemoteXPC is requested again.
Validated on macOS 27.0 (26A5388g) with an iPhone 16 Pro on iOS 27.0 (24A5370h): list, probe and syslog all reach the device. See docs/device-detection.md.
The standalone CLI (aircard.py) defined its own CACHE_FILES = ["FrontFace",
"Preview"], missing the "PlaceHolder" entry present in card_assets.CACHE_FILES.
Skipping PlaceHolder left stale rendered card artwork visible after a skin
change on recent iOS versions.
Additionally, the CLI still overwrote cache entries with b"corrupted" bytes
instead of unlinking them via invalidate_cache / remove_files, an approach
that was fixed in aircard_backend.py (commit 7e8979b) but never propagated
to the standalone CLI path.
Import CACHE_FILES from card_assets (the canonical source) and delegate
cache invalidation to apply_card_skin.invalidate_cache, which already
handles both .cache and .pkcache directories with proper unlink semantics.
Use os_trace_relay instead of the legacy syslog_relay service, which
omits the Info/Debug resource lookups containing Wallet card paths on
iOS 18.6.2. Decode framed activity records through MobileDevice and
preserve multiline messages for the existing card filters.
Display scanner diagnostics, drain the output through EOF, and reset
scan state after helper termination. Guard late callbacks when a scan
is stopped or replaced. Add protocol regression coverage and English
troubleshooting and community testing instructions.
Verified with:
- iPhone 15 Pro (iPhone16,1), iOS 18.6.2
- MacBook Air (M3, 2024), macOS 26.6.2
- AirCard 1.2.3 source baseline 02b5ba8
Live scanning detected eight identifiers matching the reference capture.
Helper-exit recovery and scan restart passed. Five unittest cases and
the universal arm64/x86_64 app build passed. No artwork was flashed.
The originally reported macOS 26.2 and issue #28's iOS 27 were not tested.
Related to Mak5er/AirCard#28