Had all the same problems with phone recognised but photo transfer not possible to Photos or Dropbox because phone was said to be locked - which it wasn't. spent two hours trying every one of the solutions, but all to no avail.
Finally tried a different USB Lightning cable and everything worked...