2

How do I manage and delete simulators in Xcode 14? I don't need a simulator for every minor version of iOS, they're just wasting space on my disk. I used to be able to delete these from Xcode, but it seems they removed this ability. Or did they move it somewhere that I am not seeing? I found all the files on my hard drive, but I don't want to start deleting individual files because it seems like there are multiple files for each simulator in different places.

** Update: Practically every responses so far has explained how to do it in versions earlier than 14. I know how to do this in older versions of Xcode, it has always been easy. They have changed it in version 14 and there is no obvious way to do it any more. Please make sure you are referring to version 14 in your responses **

8
  • You can manage (list, delete, ...) simulators from the command line with "xcrun simctl". See for example stackoverflow.com/q/10834817/1187415. Commented Dec 21, 2022 at 15:27
  • That's from 10 years ago. None of this is relevant anymore. Commented Dec 22, 2022 at 3:52
  • 2
    @Ray Consider the possibility that you may be wrong. Simulator management is nowise different in Xcode 14 than, say, Xcode 13, and xcrun simctl is still relevant (I use it every day). Commented Dec 22, 2022 at 4:07
  • 1
    @Ray: Xcode 14 still has a “Devices and Simulators” window where you can delete simulators. Which method exactly are you referring to that existed in earlier versions, but not in Xcode 14? Commented Dec 22, 2022 at 5:39
  • 1
    @MartinR Devices and Simulators doesn't show all the simulators anymore. Am I missing something? I have many simulators installed, but none are shown in that screen. Commented Dec 22, 2022 at 14:57

2 Answers 2

7

In XCode 15.x select XCode/Settings/Platforms. There you can add (+) or delete (-) the installed platforms

Sign up to request clarification or add additional context in comments.

1 Comment

XCode -> Settings -> Components -> Select unused platform and remove is the most correct way to do in XCode 16. Command lines or deleting from devices list seems to be outdated way.
4

There is a folder name CoreSimulator which contains all of your current simulators. You can take a look at this path /Users/{your_username}/Library/Developer/CoreSimulator/Devices. And it's safe to delete Devices folder.

In case you want to free your hard disk, try to access this path /Users/{your_username}/Library/Developer/Xcode and then delete the content of these folders:

  • Archives
  • DerivedData
  • iOS DeviceSupport (this one will automatically be generated when a device is connected to your mac)

5 Comments

I wouldn't blindly delete the Archives folder or its contents. You may want to keep around at least some subset of your app archives. Same of "iOS DeviceSupport". If you have a need to symbolicate crash reports you should at least keep device support versions that your app supports.
You right. However, I'm assuming Ray is running out of hard disk memory, so this is my recommendation. If he needs to analyze the crash report, yeah, he should check before deleting it.
I know that, but there are multiple files and also references to these files in different plist files. I wanted to know if there's an official way to do this, rather than poking around in all these files and possibly breaking something.
Holy moly. I only deleted simulators older than 18 months from /path/to/CoreSimulator/Devices and it deleted 1.7 million files and freed up 90 GB of space. A decade of iOS development will do that?!
It was not removed when you installed any new Xcode version. So, that's reasonable. @JaredUpdike

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.