What you need to do is use the Browse drop-down list in Xcode. If you have several connected devices that were connected and which were selected for deployment on the device (and not in the simulator), the drop-down list will give you a choice in the "Active executable file" section, which lists the devices by name.
source
share