xcode_simulator_cleanup

This script will:

  • remove unneeded simulators

  • erases all data of simulator devices

Display information on simulators:

$ xcrun simctl list

Simulator devices and their data can be found at:

$ ls $HOME/Library/Developer/Xcode/UserData/Previews/Simulator\ Devices

You might want to use the app DevCleaner instead of using this script.

Usage

$ scripts/swift/xcode_simulator_cleanup.sh