diff --git a/.ci/scripts/remove_simulator.sh b/.ci/scripts/remove_simulator.sh index a129e52fd81..09203011706 100755 --- a/.ci/scripts/remove_simulator.sh +++ b/.ci/scripts/remove_simulator.sh @@ -7,6 +7,7 @@ set -e # The name here must match create_simulator.sh readonly DEVICE_NAME=Flutter-iPhone -xcrun simctl shutdown "$DEVICE_NAME" +# Allow shutdown to fail; cases like "already shut down" exit with failure. +xcrun simctl shutdown "$DEVICE_NAME" || : xcrun simctl delete "$DEVICE_NAME" xcrun simctl list