Xcode 27.2 installs two iOS 27.2 simulator runtimes. One is specific to the iPhone Duo (com.apple.CoreSimulator.SimRuntime.iOS-27-2-iPhone19-4), and the other is the generic runtime for other iPhone models (com.apple.CoreSimulator.SimRuntime.iOS-27-2). Scripts that choose a runtime by OS version alone can pick the Duo runtime and fail when they create or look up any other device.
Older versions of the Bitrise xcode-* steps fail with:
simulator UDID lookup failed: runtime (com.apple.CoreSimulator.SimRuntime.iOS-27-2-iPhone19-4) is incompatible with device type (com.apple.CoreSimulator.SimDeviceType.iPhone-17)
In custom scripts, the error comes from simctl or xcodebuild.
- If you use Bitrise steps, update your
xcode-*steps (such asxcode-testandxcode-test-without-building) to the most recent version (release date: Oct 20 onward). - If you use custom scripts, the simplest fix is to let xcodebuild choose the simulator with the
namefield set:
xcodebuild test ... -destination 'platform=iOS Simulator,name=iPhone 17,OS=27.2'
If your script selects the runtime itself, choose one that supports the device type. Instead of:
# Picks whichever iOS 27.2 runtime simctl happens to list first
RUNTIME=$(xcrun simctl list runtimes -j | jq -r --arg v "$OS_VERSION" \
'[.runtimes[] | select(.platform=="iOS" and (.version|startswith($v)))][0].identifier')
use:
# Pick an iOS runtime for OS_VERSION that supports DEVICE_TYPE_ID, preferring the generic runtime
OS_VERSION="27.2"
DEVICE_TYPE_ID="com.apple.CoreSimulator.SimDeviceType.iPhone-17"
GENERIC_RUNTIME_ID="com.apple.CoreSimulator.SimRuntime.iOS-$(echo "$OS_VERSION" | tr . -)"
RUNTIME=$(xcrun simctl list runtimes -j | jq -r --arg v "$OS_VERSION" --arg dt "$DEVICE_TYPE_ID" --arg g "$GENERIC_RUNTIME_ID" '
[.runtimes[]
| select(.platform=="iOS" and .isAvailable)
| select(.version==$v or (.version|startswith($v+".")))
| select(any(.supportedDeviceTypes[]; .identifier==$dt))]
| sort_by(if .identifier==$g then 0 else 1 end) | .[0].identifier // empty')
UDID=$(xcrun simctl create "iPhone 17" "$DEVICE_TYPE_ID" "$RUNTIME")