5 Commits
Author SHA1 Message Date
Mak5er b850c87ec5 Merge pull request #45: A build currently only runs on the macOS version that built it 2026-09-30 01:47:33 +03:00
Nino Meier 622ebb4dfa fix(device): stop requesting RemoteXPC so USB iPhones enumerate on macOS 27
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.
2026-09-29 16:02:09 +08:00
henriktuvesson 424c610763 fix: a build only ran on the macOS that built it
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.
2026-09-24 01:59:10 +10:00
kylerlam 97f4a99e53 fix: read unified device logs for Wallet card detection
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
2026-09-22 17:25:45 +08:00
Mak5er b7f78181ba Initial commit: AirCard v1.0 — Apple Wallet Card Skinner (Universal macOS & CLI) 2026-09-17 01:07:35 +03:00