Error when using macos/wait-until-simulator-booted

Here’s a snippet from my configuration:

version: 2.1

orbs:
  macos: circleci/macos@2.3.4
  android: circleci/android@2.2.0
  node: circleci/node@5.1.0
  run-ios-e2e-tests:
    macos:
      xcode: 12.5.1
    resource_class: macos.x86.medium.gen2
    
    steps:
      - macos/preboot-simulator:
          device: iPhone 11
          version: '13.7'

      - macos/wait-until-simulator-booted

      - checkout

Which results in:

#!/bin/bash --login -eo pipefail
#!/usr/bin/env bash

xcode_major=$(/usr/bin/xcodebuild -version | awk 'NR==1{print $2}' | cut -d. -f1)
if [[ $xcode_major -ge "12" ]]; then
    ESCAPED_VER=$(echo "$ORB_VAL_VERSION" | tr '.' '-')
    SIMLIST=$(xcrun simctl list -j)
    UDID=$(echo "$SIMLIST" | jq -r ".devices.\"com.apple.CoreSimulator.SimRuntime.$ORB_VAL_PLATFORM-$ESCAPED_VER\"[] | select(.name==\"$ORB_VAL_DEVICE\").udid")
    echo "export $ORB_ENV_DEVICE_UDID=$UDID" >> "$BASH_ENV"
    xcrun simctl boot "$UDID"
else
    xcrun instruments -w "$ORB_VAL_DEVICE ($ORB_VAL_VERSION) [" || true
fi

CircleCI received exit code 0
#!/bin/bash --login -eo pipefail
#!/usr/bin/env bash

DEVICE_UDID=$(eval "echo $ORB_EVAL_DEVICE_UDID")
xcrun simctl bootstatus "${DEVICE_UDID}"

Invalid device: MACOS_ORB_DEVICE_UDID

Exited with code exit status 148
CircleCI received exit code 148