I want to enroll Touch ID in the iOS Simulator from the command line so I can run some automated UI feature tests around authorization.
I've tried a few things that didn't work:
xcrun simctldoesn't have a Touch ID option- an AppleScript to control the menu didn't work because
osascriptdoesn't have accessibility permissions (and I don't like this invasive workaround) - I tried editing the simulator's plist before launch but couldn't find an appropriate key value pair
If it matters, I'm using Frank and Cucumber for the tests.
This will enroll fingerprint. Code taken from here
Edit: You can use this for finger touch: