Flaky Builds Due to Not being Able Find iPhone 6

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 }

I noticed this issue recently, after migrate to 9.4.0 image. Very often the build will fail due to this error, and when rerun it with ssh, it will work.

If it always runs using SSH, is it worth doing a small sleep at start-up, in case servers just need some time to get ready? Maybe even 5-10 sec would do it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.