Trusting my computer with my iPhone no longer unlocks it for access (iPhone 5 w/iOS10, and Mac OSX 10.7.5) Ever since I upgraded to iOS10 my computer doesn't recognize when my iPhone "trusts" my computer. My computer recognizes the device, but it's not allowed to access it.

In Image Capture: Please unlock iPhone

In iTunes: iTunes could not connect to the iPhone because an invalid response was received from the device.

In XCode: Received an unexpected response from the device. Please check your setup and try again. (0xE8000013).

How do I get my computer to recognize my iPhone is unlocked and trusts the computer?

I am using Mac OSX 10.7.5, and I have an iPhone 5 with iOS10. I refuse to upgrade my OS to fix this problem, because if upgrading my old iPhone hardware to new software was any indication, all it will do is slow it down. My computer is a 2011 MacBook Air.
It appears the contents of

/var/db/lockdown


a folder on your mac, are corrupt.

First, unplug your iPhone or iPad.

Quit any apps that try to communicate with the iDevice e.g. Photos, Image Capture, iTunes, PhoneView, iMazing, iFunbox or Dropbox.

Delete the files within /var/db/lockdown/ (not the folder).

Plug your iDevice back in.

The “Trust this computer?” dialog box should appear. Tap Trust on your iDevice.

The operating system should create new .plist files in the lockdown folder. Try reopening one of the apps that had the error.