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 helpers are compiled with no minimum version, so they inherit whatever
macOS produced them. Built here they come out at macOS 27, while Info.plist
promises 12.0 and the Swift binary is compiled for 14.0. Anyone below the build
machine's version downloads an app that cannot talk to a device at all.
The Swift really does need 14: onChange(of:initial:) is 14+ and fontWeight is
13+, so 12.0 was never true. The plist now says 14.0, the helpers are built for
14.0, and the build checks the binaries against that claim afterwards rather
than trusting it. Verified the check fails when the minimum is removed again.
Lowering the whole thing to 12.0 instead would mean rewriting those SwiftUI
calls, which seemed like a separate decision to make.
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