There was an error with communicating with your device in Xcode
I had the same problem and I restarted my iPhone. Now it's working.
Problem was due to device OS version.I just updated device version to 11.0 and restared device.Then problem solved.Hope this comment will help to someone