iPhone7 (ios 11.1.2) failed to connect to Macbook pro (10.13.6) with error msg "Installation Failed"
By following one suggestion from the discussion:


  I had the same problem when connecting iPad Pro (iOS 12.01) to a MacBook Pro (OS X 10.13.6). Changing the lightning cable did not help. Then I connected the lightning cable to the USB port on the HDMI port side of the notebook and everything worked just fine. I suspect that there is a problem with the USB port on the left hand side of the machine


So everything works after I use the right hand side USB port instead of the left hand side. I have no ideas why. My left hand side USB port is working fine with my USB external drive and all other USB devices I ever used with this macbook. 

This is just weird to me.