To resolve this issue, set a passcode for the device.
- Open the Settings application
- Tap Face ID & Passcode (Touch ID & Passcode for iPhone 8 and earlier, Passcode for devices without TouchID)
- Tap Turn Passcode On.
- Enter and confirm a passcode.
- Note: On iOS 12.4 and later, you may need to enter your Apple ID credentials.