In my case, I solved this problem by removing usb relevant app from Settings>General>LoginItems. After restarting, then Xcode recoginized my iPhone as a development device.
Before being solved, my other old iPhone worked and iPad was also worked. Only my main iPhone didn't work. but It solved now for all.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: