Could not unlock device after reboot. Probably the device is passcode-locked

We are getting following error while trying to open iPhone8 from Appium Studio
" Could not unlock device after reboot. Probably the device is passcode-locked"

Passcode has been removed for all the devices.
If you are still facing the issue, please let us know with the complete name of the device or its serialNumber.