'Xcode - free to clear devices folder?

I am deleting some folders and files to make more space on my drive. I know that in path:

~/Library/Developer/CoreSimulator/Devices/

There are folders for each simulator and each version. This folder has around 11GB size for me. I know that I could delete simulators with old versions that I no longer use. But from that unique identifier I can't know which is the right one and which not. So my question is: Can I delete it all? It's okay if next time I wouldn't have any of my app in simulator but can I loose something more? Old versions of simulator? Or anything else? Thanks



Solution 1:[1]

Sometimes Xcode likes to double up on its simulators.

Usually the fix for me has always been to just delete them all. Deleting them is harmless as you can always download them again later.

Xcode > Preferences > Downloads

Just remember that if you have any old simulators in there (iOS 8.0-) you won't be able to download them again through Xcode.

UPDATE!

You can now manage Xcode devices on the latest macOS through the storage manager.

About This Mac > Storage > Manage > Developer

enter image description here

Solution 2:[2]

I had a similar issue a while back, xcode was taking up 47G on my drive. I tried deleting some Simulator Devices which stopped my xcode from working (crazy). So i deleted everthing related to xcode and installed fresh. Its just my experience.

Solution 3:[3]

in Xcode 8:

  1. Run $ sudo du -khd 1 in Terminal to see the folder size of each folder;
  1. Run $ cd library/developer/coresimulator/devices to see the GB stored for all your Xcode simulators;

  2. You'll begin to see where a ton of storage is hiding! Now just navigate to that location on your Macintosh HD and view the devices.plist in each device folder;

  3. Decide which folders to delete and keep by deleting any simulators/iOS versions you've ran in the past but no longer need for testing. Old sqlite versions that could act as old backups, or other content exists in these folders, so consider that before you delete everything in this folder.

I saved over 50GB the first time I did this.

Solution 4:[4]

Some syntax has changed between 4.6 and 5.0. Specifically:

4.6 is using ... data-toggle="popover" ... data-content=...>

5.0 is using ... data-bs-toggle="popover" ... data-bs-content=...

Your HTML output is a mix between 4.6 and 5.0 syntax.

Solution 5:[5]

In Bootstrap 5, tooltips have to be triggered via Javascript. More details can be found at the official Bootstrap documentation page.

You may trigger and save all the tooltips in a page using the following code:

const tooltipTriggerList = [].slice.call(
    document.querySelectorAll('[data-bs-toggle="tooltip"]')
)

let tooltip_list = tooltipTriggerList.map(
    function (tooltipTriggerEl) {
        return new Tooltip(tooltipTriggerEl)
    }
)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Karthik
Solution 3 Karthikeyan
Solution 4 coll
Solution 5 Louis