I am using Xcode Version 6.1 (6A1052d)
I am trying to launch an app on the simulator.
The first time it always works fine. If I want to launch a second time,
This fixed it for me:
SIMULATOR_NAME="iPad Air 2"
# Erase a device's contents and settings
xcrun simctl erase "${SIMULATOR_NAME}"
Thanks to https://encyclopediaofdaniel.com/blog/xcode-6-reset-simulators-from-the-command-line/ for the explanation!
My env:
xcode 8.3.1
iOS 10.3 (14E269)
SIMULATOR_NAME="iPad Air 2"