19

How do I remove all these extra simulators from my Xcode menu?

Redundant iOS simulators in Xcode

Ilias Karim
  • 4,798
  • 3
  • 38
  • 60

6 Answers6

31

If you want to do this quickly I'd recommend fastlane tools you can reset simulators with one line

fastlane snapshot reset_simulators

install fastlane tools

sudo gem install fastlane

Make sure, you have the latest version of the Xcode command line tools installed:

xcode-select --install

(https://docs.fastlane.tools/actions/capture_ios_screenshots#completely-reset-all-simulators)

And the command is

fastlane snapshot reset_simulators
KrauseFx
  • 11,551
  • 7
  • 46
  • 53
Luke
  • 3,375
  • 2
  • 22
  • 22
12

XCode > Window > Devices :

Then use the delete key or click the gear icon to remove simulators.

l'L'l
  • 44,951
  • 10
  • 95
  • 146
  • Thanks. Know of any way to delete more than one at once? – Ilias Karim Aug 07 '15 at 00:08
  • Unfortunately I think it's one at a time for whatever reason... There is a directory `~/Library/Developer/CoreSimulator/Devices/` which is where I believe the devices/simulators are stored, although if you mess around with things in there proceed with caution. – l'L'l Aug 07 '15 at 00:11
  • 2
    It takes over 30 seconds to delete a simulator with over 100 simulators this would take almost an hour. :( – Andrew Paul Simmons Apr 07 '16 at 23:12
  • @AndrewPaulSimmons: If it takes you over 30 seconds to remove a simulator then you've got issues far beyond the scope of this question. – l'L'l Apr 09 '16 at 01:42
  • 1
    30 Seconds? Backspace + Enter = Sim Gone! Next. like 2 seconds maybe – Pierre Jan 20 '17 at 08:59
3

You don't need to delete the Simulators you don't want to see on the run destinations drop-down menu. On Xcode 9 you can just hide the ones that you don't need.

  1. Go to Window > Devices and Simulators (ShiftCmd2)

  2. Pick the Simulator from the left and untick 'Show as run destination' as seen below:

Untick 'Show as run destination'

Şafak Gezer
  • 3,928
  • 3
  • 47
  • 49
  • This does not work :( "Show as run destination" is checked on every device, but I only see one device per OS. – Shanakor Sep 22 '17 at 20:52
  • Never mind my target deployment was set to a newer version, so it did not work on lower simulator versions. – Shanakor Sep 22 '17 at 20:57
0

You can remove devices easily now in XCode 9, but use the Simulator toolbar. With a Simulator running, go to the top bar and go to Hardware -> Device -> Manage Devices then select Simulators. You are presented with the option [Devices | Simulators] So select simulators. Then work your way down the list, and untick the Simulators, and OS versions you don't want. Too easy. When you look in XCode for a Simulator to use, the list will now be much shorter. Removing unwanted Simulators

Harry McGovern
  • 517
  • 5
  • 19
0

There is a nice shell script that deletes all simulators and creates a list of new ones for you on GitHub without the need of Fastlane (even though Fastlane is worth to have anyway):

https://github.com/jerolimov/reset_simulators

Christian
  • 4,596
  • 1
  • 26
  • 33
0

Fortunately, in more recent versions of Xcode (e.g., Version 13.4.1) it is easy to delete multiple simulators at once.

In Xcode go to Windows -> Device and Simulators, the choose the Simulators tab. A list of devices will appear, from which you can multi-select and then delete.

Screenshot showing simulators in Apple Xcode

jurgenizer
  • 499
  • 7
  • 16