Created
December 13, 2016 11:10
-
-
Save robinnorth/d952c7140199d8e8cb70e2bb0279fe72 to your computer and use it in GitHub Desktop.
Reset iOS Simulators to default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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