- Xcode 9.1, 9.2 beta
- macOS 10.12.6 or later
- iOS 11 (Face ID)
Use the iOS simulator to enable authentication with Face ID.
Face ID is disabled when building by default. Check menu of the simulator Hardware -> FaceID.
Tap Enrolled and then you’ll confirm checkmark. Face ID is now active.
If you execute the sample code and put a check in Enrolled
, you will get a dialog asking for permission by pressing the button.
Tap the OK button to display the authentication dialog.
f you select Matching Face
under Enrolled in this state ...
Success.
Conversely, if you choose Non-matching Face
...
Failed.
I got iPhoneX. I checked whether it's working!