You need to restore your iPhone to factory settings to unlock the device. But, this will delete all your data on the device. So, you’d better use MiniTool Mobile Recovery for Android to rescue your data beforehand and then perform a factory reset on the device.