fix(ios): drive simulator biometrics through notifyutil
Summary
settings faceid|touchid <match|nonmatch|enroll|unenroll> ran xcrun simctl biometric ... in several argument orders. No shipped Xcode has that subcommand (Xcode 26.6: Unrecognized subcommand: biometric), so every call failed as UNSUPPORTED_OPERATION and the error-text sniff that classified it hid the cause.
The setting now posts the same notifications the Simulator.app Features menu posts, through simctl spawn <udid> notifyutil:
- match / nonmatch:
-p com.apple.BiometricKit_Sim.<pearl|fingerTouch>.<match|nomatch> - enroll / unenroll:
-s com.apple.BiometricKit.enrollmentChanged <1|0> -p com.apple.BiometricKit.enrollmentChanged
One command per action, no argument-order retries, no message sniffing; a failed post is COMMAND_FAILED with the attempted argv in details.attempts. Docs note the route.
agent-device settings faceid enroll
agent-device settings faceid match
Touched: app-settings.ts, its unit test, the managed-runtime provider scenario, commands.md (4 files).
Validation
Tested commit 7134de457 (rebased on 34f2eb1dc; review follow-up: iPhone/iPad leaf refusal and enrollment read-back).
pnpm check:affected --run: passed.- Live, iPhone 17 Pro / iOS 26.2 simulator, Xcode 26.6, CLI at this head:
settings faceid enrollthenxcrun simctl spawn <udid> notifyutil -g com.apple.BiometricKit.enrollmentChangedreads1;unenrollreads0;faceid match,touchid nonmatchreturnUpdated setting;faceid toggleis refused asINVALID_ARGSbefore anything is spawned. - Not checked: a Face ID prompt inside an app accepting the posted match; the notifications are the ones Detox and Appium post for the same purpose.