iOS 17.0 beta 5 (21A5303d) simulator fails to install

=> Cannot copy the image because the disk is almost full

The disk of my Mac is not full. Or is it another logical disk? Every time I try to install the iOS 17.0 simulator (21A5303d) it creates a copy of itself and fails. It is filling my HD and I do not know how to delete those files. And it differs by the last letter. Different versions?


Registering simulator runtime with CoreSimulator failed. Domain: DVTDownloadableErrorDomain Code: 29 User Info: { DVTErrorCreationDateKey = "2023-08-09 20:41:08 +0000"; }

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

System Information

macOS Version 14.0 (Build 23A5312d) Xcode 15.0 (22004) (Build 15A5219j) Timestamp: 2023-08-09T17:41:08-03:00

Same here

Beta 8 and I have 96 gigs free with SystemData eating 65 and CoreSimulator says its almost full. It's definitely not but hey it must work on Craig's machine and his paycheck is safe. It said my disk was full even after a fresh install. Sure feels like a major bug and its obviously happening to re than one person. Im screwed until they fix this. Could cost me a job.

I am facing same issue, although have 20GB free disk space on my MAC MI (Xcode 15)

Same here, with Xcode 15, and about 80GB free. This is rather annoying.

Having the same issue today, never encountered this before. It's blocking me from running testing my app at a crucial crunch time of a 10-month long project. Just deleted dozens more GB of data off my root HD, trying again. Ridiculously, Xcode has decided to delete the downloaded iOS 17.0 image that took 2 hours, and is starting again from scratch. What a thoughtfully designed piece of software.

So, I've figured out a solution thanks to a friend's tip. In our case, the Mac was incorrectly reporting the amount of free disk space it had, god knows why. The solution is:

  1. Use Terminal to generate a HUGE file that takes up most of the available space on your Mac (I stopped when there was only 10GB left); there's a handy script posted on StackOverflow here. You might want to customize it.
  2. Delete that file from terminal using rm /tmp/empty_file.bin.
  3. Retry installing the iOS 17.0 image.

I had the same problem. What worked for me was freeing up at least 50GB of storage (51 Gb in my case). After freeing up space try reinstalling.

The first best thing to do if you can is postpone the update as long as possible. If, however, you had made the update even past the official release like I did and ended up with a scenario where the app won't run and the emulator keeps downloading and reporting errors around the disk being full, here's what I did.

  1. I visited the download page on developer.apple.com (https://developer.apple.com/download/all/?q=Simulator%20Runtime) and downloaded the DMG file
  2. Then I went to follow the instructions on Installing additional simulator runtimes available at https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes

Now the emulator works and you can save days trying to install and re-install it via the Platforms section on XCode where if an error happens, you have to start downloading the runtime for the beginning every single time.

I have being facing the same issue for days, I was able to resolve it by manually installing the iOS 17.0 simulator via the terminal with a xcodebuild command. **Command: xcodebuild -downloadPlatform iOS **

This command with download, verify and install the iOS 17.0 device support.

For me info you can checkout this link for apple developers - [https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes).

Hopefully it will work for you guys.

You need to clean your Mac. Is requer >50Gb to install new any iOS. Use to clean your system with Onyx Clear https://www.titanium-software.fr/en/onyx.html
For me it fixed my error.

I had the same problem, although I had ~25 GB of free storage, but that did not suffice, as other users also mentioned here.

Eventually what helped was going here (Note: I am using macOS Sonoma):

Settings -> Storage -> Developer -> Click on Information icon next to GB amount

This should open up a window that displays all kinds of XCode data, that you can manage and delete to clear up some space.

In my case, I had several different iOS 16 installations on my system, which I obviously did not need anymore. Deleting all of those files saved up > 50 GB for me. I know this might not help everyone, but what I suggest is cleaning your Mac to free up some space or if you have to, increase your Mac's disk space with external storage.

@JohelSF2 You can remove these downloaded files under /Library/Developer/CoreSimulator/Cryptex/Images/Inbox/. But you need to disable System Integrity Protection (SIP) first.

I am experiencing this today.. current free space on Disk is 67.98GB.. if Apple is requiring you to maintain anywhere close to this amount of space in order to install an iOS Simulator platform.. that is ridiculous! I have tried both installing the iOS_17.2_Simulator_Runtime.dmg manually by downloading from Apple as well as via the GUI -> Settings -> Platforms..

Error I am getting:

Minion-Carl ~ % xcrun simctl runtime add ~/Downloads/iOS_17.2_Simulator_Runtime.dmg An error was encountered processing the command (domain=com.apple.CoreSimulator.simdiskimaged.SimDiskImageError, code=14): Cannot copy the image because the disk is almost full

I have spent way too much time trying to resolve getting an iOS simulator env onto my development machine.. After 7 years developing for iOS I am really disappointed.

Follow Up What ultimately worked for me was the solution provided above re: Mac OS X Settings -> Storage -> Developer.. clear out unneeded (Hopefully) platform files followed up with a Restart of the machine. I was then able to use the downloaded .dmg file and install via terminal.

Keep in mind that I did have ~60GB of free storage space prior to that so perhaps it's something to do with application sandboxing of storage on the Mac (simply guessing here?) .. Good luck!

best solution for this problem -> https://lickability.com/blog/how-to-install-ios-17-simulators-in-xcode-15/

iOS 17.0 beta 5 (21A5303d) simulator fails to install
 
 
Q