Skip to content

Instantly share code, notes, and snippets.

@robinnorth
Created December 13, 2016 11:10
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinnorth/d952c7140199d8e8cb70e2bb0279fe72 to your computer and use it in GitHub Desktop.
Save robinnorth/d952c7140199d8e8cb70e2bb0279fe72 to your computer and use it in GitHub Desktop.
Reset iOS Simulators to default
#!/bin/bash
# Kill any running Xcode or CoreSimulator processes
killall Xcode
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
# Remove existing simulators, including any installed apps
rm -rf ~/Library/Developer/CoreSimulator/Devices
# Recreate available devices and simulators to correspond to iOS runtime bundled with installed Xcode version and any additionally-installed runtimes
open /Applications/Xcode.app
# List available devices (in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles
# and /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/Library/CoreSimulator/Profiles),
# simulators (in ~/Library/Developer/CoreSimulator/Devices/)
# and runtimes (in /Library/Developer/CoreSimulator/Profiles/Runtimes/)
xcrun simctl list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment