Home > Software design >  How to manage & remove simulators in Xcode 14?
How to manage & remove simulators in Xcode 14?

Time:12-21

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.

CodePudding user response:

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)

CodePudding user response:

This is how to upgrade your Xcode:

  1. First, quit your current Xcode and throw it in the trash.

  2. Download the latest version of Xcode (the current version is Xcode 14.2). What you get is a self-expanding archive. Move it into /Applications and open it. After a very long time, it will finish expanding and the new version Xcode will be ready to use.

  3. Throw the archive in the trash.

  4. Restart the computer. I know this seems nuts but just do it.

  5. Launch the new version of Xcode. If it needs to install stuff, let it do so.

  6. When the new version of Xcode is up and running fully, quit it.

  7. Now find ~/Library/Developer/CoreSimulator and throw it in the trash.

  8. Restart the computer again. I know, I know. Just do it.

  9. Now launch your new version Xcode again. Wait a few seconds. Then choose Window -> Devices and Simulators and click Simulators.

  10. At last! Now you have a complete, clean list of all automatically installed simulators. This will include simulators that are up to date for this version of Xcode, plus simulators for any older SDKs you have installed. Working entirely within this window, one at a time, delete those you do not want. (You can always create them again later. You can also create other simulators that are not in this list, if desired.)

Now you have a manageable list of up to date simulators and you are ready to resume working.

CodePudding user response:

The simulator path is in /Users/{username}/Library/Developer/Xcode/iOS DeviceSupport

  • Related