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
I fixed this issue for emulator,
Firstly check your emulator list
Window > Devices and Simulators
after choose any device and click check OS Version
If you have only Apple Watch OS, You should download new IOS Simulator
and click download more simulator runtimes..
choose your correct IOS Simulator and download it.