I get this error when I trying to test an app.
A build only device cannot be used to run this target.
No supported iOS devices are available
If you are using cordova/Ionic Go to Products -> Destination-> Choose the target and re run