Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I safely delete the contents of the ~/Library/Application Support/iPhone Simulator/6.1/tmp directory?

After noticing a significant decrease in the free space on my MacBook Air (and with only 128GB, every GB counts!) I ran DaisyDisk to find out what was going on and discovered that the ~/Library/Application Support/iPhone Simulator/6.1/tmp directory had 3GB of junk (ghostlyIcons., gridImages., iconImages.*, iconLabels_gray.*) in it!

By the looks of it 3GB is nothing, that folder can rack 50GB with ease!

I assume I can just delete what ever is in there? Shouldn't it get deleted automatically?

like image 860
mluisbrown Avatar asked Jun 05 '13 11:06

mluisbrown


People also ask

Where does the iPhone simulator store its data?

type: ~/Library/Application Support/iPhone Simulator.

How do I clear my Xcode simulator?

To delete individual, available, simulators it's easier to do so through Xcode. Go to Window > Devices and simulators, then select the Simulators tab. You can right-click on any simulator and select 'delete' to get rid of it.

Where do I find the Mac simulator?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators. But you cannot run them directly. You need to build your application on the simulator, and then you can run it.


Video Answer


1 Answers

I ended up deleting most of the files in tmp:

  • The tmp directory name seems to suggest they're deletable.
  • The other simulators (6.0, 5.1) work fine without the large files in their tmp folders.
  • In this tweet from May, jailbreak developer Ryan Petrich suggested deleting those files, and he hasn't followed up since with any issues.
  • He seems to think it's a Springboard bug, and fixes it in this jailbreak tweak.
  • Following the tweet, I only deleted gridImages.*, ghostlyIcons.*, iconImages.*, and iconLabels_gray.*. Left the IconsCache and lsidentifiers plist as they weren't taking up as much space (and existed in the other simulator versions).

FWIW, my simulator is running fine after deleting the files.

like image 167
yjsoon Avatar answered Oct 20 '22 10:10

yjsoon