blob: 09203011706f6e5eabf84c29f454edbc0ce09384 [file] [log] [blame]
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
# The name here must match create_simulator.sh
readonly DEVICE_NAME=Flutter-iPhone
# 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