iTunes and XCode not recognising devices after disconnected, until restart
Using the following in Terminal is an alternative to resting your Mac.

sudo launchctl stop com.apple.usbmuxd


You still have to quit and relaunch iTunes or Xcode in order to see the device.