Unable to import photos from the camera roll on your iPhone because it’s locked with a passcode? Your macOS computer might throw this error when trying to import photos from iPhone to iPhoto in Mac.

Photos in the Camera Roll of iPhone cannot be imported because the device is locked with a passcode. You must unlock the device to import them.

This happens when your device is locked with a passcode and your Mac is not set as a trusted device on your iPhone. To fix the problem, follow the quick instructions below:

  1. Disconnect your iPhone from your Mac.
  2. Open iTunes, go to Preferences » Advanced » and Reset All Dialog Warnings.
  3. Close iTunes.
  4. Connect your iPhone back to your Mac using a USB cable.
  5. You’ll get a Trust This Computer popup on your iPhone, tap Trust.

Now you should be able to import photos in the camera roll of your iPhone even when it’s locked with a passcode. Cheers!