You can either force quit Xcode and relaunch it or wait for it to time out. This issue needs to be addressed by Apple to allow users to cancel the operation, as it can be frustrating when Xcode automatically selects a previous device without notice, causing the intended testing device to be overlooked.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: