Xcode 10.1 Unable to find a destination matching the provided destination

#!/bin/bash -eo pipefail
./scripts/run_tests.sh Flowdock
^D^Dxcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:iOS Simulator, OS:12.1, name:iPhone XR }

The requested device could not be found because no available devices matched the request.

Ineligible destinations for the "Flowdock" scheme:
	{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
	{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }

Exited with code 70