14

So my computer is the base model MacBook Pro so hard drive space is a premium.

I've been looking through folders to find what's taking up all the space and my UserName/Library/Developer folder was 30GB. This folder contains Xcode & CoreSimulator.

I've gone and deleted most of my archived projects and that's reduced the size down to 20GB in total with 18GB in the Xcode folder, but this still seems large.

I haven't got any of the simulators installed, except for the current 8.4 simulator, yet I seem to have a folder for each simulator in the iOS DeviceSupport subfolder of Xcode.

Can someone tell me if their Xcode folder is a similar size and if I should expect all of the simulators to be included in this folder, even if they aren't visibly available in Xcode? Is it safe for me to delete all of these unused simulators?

Machavity
  • 30,841
  • 27
  • 92
  • 100
Mark Bridges
  • 8,228
  • 4
  • 50
  • 65
  • For me xcode app took 6.33 Gb of memory – Teja Nandamuri Jul 17 '15 at 12:27
  • Even for me developers folders occupied 30Gb!! – Teja Nandamuri Jul 17 '15 at 12:29
  • mine is 24.4 GB! .. what is ideal size for this folder ? – Nitin Jul 17 '15 at 12:46
  • Use the free GrandPerspective application to find disk usage and remove unneeded files. – zaph Jul 18 '15 at 00:21
  • For me, between /Library/Developer, ~/Library/Developer, /Applications/XCode.app, over 40Gb – William Entriken Nov 11 '15 at 19:44
  • My /Applications/XCode.app is 9GB+, is it normal? Is it possible to reduce the size? – Liuting Jan 27 '16 at 15:14
  • @Liuting - Yes, I have Xcode 7.2, after all kinds of clean up, still taking up over 9GB. So, I guess that's par for the course. Still too huge. – Nat Feb 05 '16 at 17:22
  • [On which site is “My Xcode installation is taking up loads of space; how to reduce space used by simulators?” on-topic?](https://meta.stackoverflow.com/questions/367707/on-which-site-is-my-xcode-installation-is-taking-up-loads-of-space-how-to-redu) – smci May 10 '18 at 23:17
  • Which version of MacOS? of Xcode? Btw, I think this should be migrated to [AskDifferent](https://apple.stackexchange.com) or else [SuperUser](https://superuser.com)? – smci May 10 '18 at 23:25

2 Answers2

11

Yes, it is safe to remove all the simulators.

Your best option is probably just to install again Xcode, this way you could just sudo rm -rf /Library/Developer and rm -rf ~/Library/Developer then install again everything (a simple download that is.)

Antzi
  • 12,831
  • 7
  • 48
  • 74
1

Just found out you can run the following command in terminal to delete unused simulators and free up some space:

xcrun simctl delete unavailable
Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56
Mark Bridges
  • 8,228
  • 4
  • 50
  • 65