We keep getting failure issue on circle every few builds. We are using circle 2.0 and targeting Xcode 9.3.1.
Our destination that we provide to xcodebuild is platform=iOS Simulator,OS=latest,name=iPhone 6
Here is the error.
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:iOS Simulator, OS:latest, name:iPhone 6 }
The requested device could not be found because no available devices matched the request.
Ineligible destinations for the "AllUnitTests" 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 }