Access passcode locked iPhone with broken screen without jailbreaking [duplicate]

Solution 1:

Solution 1: USB keyboard

You can use the Apple Lightning to USB Camera Adapter.

  1. Connect the adapter to your iPhone.
  2. Connect a USB keyboard to the adapter.
  3. Enter your passcode

Solution 2: Bluetooth keyboard

If you had connected a bluetooth keyboard to your iPhone before you can use it to enter your iPhone's passcode.

  1. Make sure your iPhone has bluetooth enabled
  2. Turn on your keyboard and pair wait for it to connect to your iPhone.
  3. Enter your unlock passcode.