Issue:
During UI testing, you receive an error saying the Xcode Test for iOS Step is unable to determine the latest iOS simulator version:
failed to get simulator udid, error: failed to determin latest (iOS) simulator version
Possible solutions:
This happens because the Step has a hard time identifying the exact version number of what the latest version should be. You can work around this by specifying the simulator version instead of having it on latest
in the yml file:
inputs:
- destination: platform=iOS Simulator,name=Bitrise iOS default,OS=latest
In case this throws another error, namely (error: no simulators found for os version: iOS 14.1
), that means this is due to an Xcode error where xcrun simctl list
doesn't show all the device list the first time. In this case, pre-starting the simulator can help, you can add a Script Step before the tests run, such as this example:
npm install -g ios-sim ios-sim start --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-11, 14.5" sleep 60