diff --git a/.github/actions/prepare-simulator/action.yml b/.github/actions/prepare-simulator/action.yml index f277c4e..a70ed9f 100644 --- a/.github/actions/prepare-simulator/action.yml +++ b/.github/actions/prepare-simulator/action.yml @@ -47,8 +47,8 @@ runs: run: | RUNTIME="${{ inputs.runtime }}" DEVICE="${{ inputs.device }}" - DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g") - RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.$(echo $RUNTIME | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g") + DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[\(\)]//g" -e "s/[^[:alnum:]]/-/g") + RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.$(echo $RUNTIME | sed -E -e "s/[ \-]+/ /g" -e "s/[\(\)]//g" -e "s/[^[:alnum:]]/-/g") DESTINATION_ID=$(xcrun simctl create "Custom: $DEVICE, $RUNTIME" $DEVICE_ID $RUNTIME_ID) xcrun simctl boot $DESTINATION_ID echo "destination-id=$(echo $DESTINATION_ID)" >> $GITHUB_OUTPUT