Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Xcode Caches so huge?

I updated macOS to Big Sur for my late 2016 MacBook Pro.

When I check the storage:

enter image description here

Xcode Caches takes a huge size of storage. I deleted it and it will show up again.

Why is it so huge? Can I delete them and how to delete them?

like image 544
Elvin Avatar asked Jan 02 '21 10:01

Elvin


People also ask

Is it safe to delete Xcode caches from MAC?

Xcode CachesIt's safe to delete the folder com. apple. dt. Xcode because Xcode can recreate its caches (it could take some time at first relaunch, if Xcode need to re-download something).

Why does Xcode take so much space?

Xcode is itself a large, complex app; it contains many other large, complex apps like Instruments and iOS Simulator; it includes many large, complex tools like the compilers; it packages up SDKs with tons of detailed data about every declaration in every supported Apple OS; and it includes several simulator runtimes, ...

Is it OK to delete all cache files on Mac?

Is it safe to delete Mac caches? It's good to be careful about deleting stuff from your Mac, but it's generally safe to remove cached data. You shouldn't run into any major issues if you delete cached files from system-level (/Library/Caches/) and user-level folders (~/Library/Caches/).


2 Answers

They are not caches. But simulators for various devices like AppleTV, Watch, and iPhones.

You can delete them from the app.

Xcode Simulator: how to remove older unneeded devices?

https://apple.stackexchange.com/questions/5353/how-can-i-figure-out-whats-slowly-eating-my-hd-space

like image 166
puio Avatar answered Oct 13 '22 06:10

puio


That whole file that you see labeled Xcode Caches listed within the Developer tab after you've decided to view the storage management, is not all comprised of Caches. It has iOS simulators and inside there are caches of the simulators. To delete those caches, you can use CleanMyMacX. Open the app, and select space lens then navigate to the Developer folder within the Library folder. Select CoreSimulator and inside you'll find the Caches folder which is the one that you should delete.

like image 3
Gwamaka Charles Avatar answered Oct 13 '22 06:10

Gwamaka Charles