2

Got this error, though I have some more space 229 GB / 245 GB

RegCannot copy the image because the disk is almost full Domain: com.apple.CoreSimulator.simdiskimaged.SimDiskImageError Code: 14

enter image description here

3
  • 1
    tbh, 229 of 245 is critically low anyway. You need to clear it down a bit. The guesstimate "10% free space" really only applies to larger drives, on a tiny drive like that you should be looking at 50GB free, not 20.
    – Tetsujin
    Jul 18, 2023 at 15:25
  • Please have a look here forums.developer.apple.com/forums/thread/…. Looks like it is XCode bug, you can install SDKs via command line.
    – pratt
    Jan 17 at 15:55
  • Did you ever sort this out? Was it just a bug in Xcode and you didn’t need to free space or was more space needed on the OS and User Data drive?
    – bmike
    Jan 27 at 14:01

1 Answer 1

1

For development, I would target at least 50 GB free on your startup disk (maybe 40 if you don't mind the system purging aggressively). 25 GB used to be OK, but the targets are getting way bigger with AR / VR / Vision SDK (and some can really squeeze things and get by with less, but I find it too time consuming to have that little free space on my boot drive).


Some developers think that error message is a bug. In the past, download simulators by browser and then side load the items you need and deleting the ones you do not has helped.

You can thin simulators ruthlessly and focus on just one simulator to get past the errors installing it and then add back files as needed to the boot disk. Storing those dmg on an external drive will also help freeing up space where your main user profile and Xcode reside.

It looks like there’s a more elegant way to call for a simulator download from the command line:

xcodebuild -downloadPlatform iOS

Calculating free space isn't so simple now with APFS and Time Machine snapshots, copy on write file space allocation, optimized images and offloaded cloud storage.

macOS ventura storage settings in the System Settings app

In my case, messages is off the charts as people send me a lot of videos, photos, etc... I would take that off a development system with only 256 GB storage. iOS files are an easy clean up as are the simulators. Music and Photos + Videos can always be stored on an external drive if you need temporary space or permanent space on the boot volume.

Once you delete space on your Data volume, be sure to examine the snapshots and purge them / make a new backup as needed to free up that space before the 24 hour automatic purge happens.

macOS Ventura disk utility view of the Data volume

4
  • my system has a maximum of 11 GB space is there any why to use it or use old versions of devices?
    – Salman
    Jan 26 at 13:07
  • Hi @Salman can you clarify what 11 GB is? Ram or free disk space or total disk space?
    – bmike
    Jan 27 at 13:46
  • free disk space
    – Salman
    Jan 28 at 0:05
  • What happens if you try the xcodebuild -downloadPlatform iOS it might be tight, but it also will tell you if there’s no room. @Salman
    – bmike
    Jan 28 at 0:30

You must log in to answer this question.

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