sudo mkdir /private/tmp
sudo chmod 1777 /private/tmp
xcrun
xcrun simctl list devices //to list all simulators
xcrun simctl delete // to delete specific device
xcrun simctl delete unavailable // to remove old devices for runtimes that are no longer supported
Delete and clean
xcrun simctl shutdown all
xcrun simctl delete $(xcrun simctl list | grep -o '[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}' | xargs)
xcrun simctl delete unavailable
xcode
sudo xcode-select --reset
To delete devices go here:
~/Library/Developer/CoreSimulator/Devices
Defautl open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/
Launch multiple simulators
find simulator id’s from the ‘xcrun simctl list’ command
xcrun simctl boot 12F3C6FB-1A8A-4D20-922F-2DB485F58F0F
xcrun simctl boot BE53CBFF-4900-4F10-A1D4-B451AB4C9E7E
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/
- Go to Window > Devices and Simulators, delete all the simulators, all of them.
- Clear /Library/Developer/CoreSimulator/ folder.
- Return to Xcode and install the required simulators.
If all this still fails, it may be because you are trying to use simulator directly from the Simulator app. Instead try running an app from xcode and let xcode boot the simulator that way.