7

I am running MacOS Sonoma 14.2.1. Whenever I boot or reboot, a strange disk image keeps showing up in disk utility. If I eject it, they go away until I reboot. After every reboot, they reappear. The disk image in question contains iOS 17.2.21C62 Simulator. I believe when opening xcode for the first time, it asked me if I wanted to install an iOS simulator, but that is all I know about this disk image.

Apple Disk Utility with iOS Simulator showing up as a disk image

Why does this disk image keep appearing in Disk utiliy, and how do I get rid of it? See picture below for details.

0

3 Answers 3

3

To remove this image volume on macOS Sonoma

  1. Open Xcode
  2. Open Settings
  3. Click tab Platform
  4. Right click on image you want to delete
  5. Click delete then wait for it to complete
2

That is the iOS Simulator runtime that you or someone else installed in order to do iOS development on the system. You can delete it from Xcode's preferences if you don't need to do iOS development.

The other is related to Time Machine, if you disable that (temporarily) and restart the Mac, it should not appear. Then you can know that recent disk image only arrives when you have Time Machine running.

1
  • 2
    It seems that he knows where it came from. The question is why it's showing up as a mounted disk image. And on my system, the list does not appear to be complete.
    – Oscar
    Commented Apr 8 at 2:00
0

[Update] This solution doesn't work since MacOS automagically restores these deleted directories at or before next MacOS startup.

[Original post] In my case I'd already deleted Xcode itself whilst the simulators remained. So it was necessary to unmount the simulator disk images and delete the simulator directories manually:

√ ~ % ll /Library/Developer/CoreSimulator/Volumes/
total 0
drwxr-xr-x@ 4 root  wheel   128B 27 Feb 14:04 .
drwxr-xr-x  6 root  wheel   192B  1 May  2023 ..
drwxr-xr-x  4 root  wheel   128B  4 Sep  2023 iOS_21A328
drwxr-xr-x  4 root  wheel   128B 20 Sep  2023 iOS_21A342
√~ % sudo diskutil unmount force /Library/Developer/CoreSimulator/Volumes/iOS_21A328
Volume iOS 17.0 21A328 Simulator on disk9s1 force-unmounted
√ ~ % sudo diskutil unmount force /Library/Developer/CoreSimulator/Volumes/iOS_21A342
Volume iOS 17.0.1 21A342 Simulator on disk5s1 force-unmounted
√ ~ % sudo rm -rf /Library/Developer/CoreSimulator/Volumes/iOS_21A342
√ ~ % sudo rm -rf /Library/Developer/CoreSimulator/Volumes/iOS_21A328
√ ~ % 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .