How to delete rogue iOS simulators and reclaim disk space?

I have three rogue iOS simulators, how to correctly delete them and reclaim the disk space?

These img files are costing me 18gb of storage.

Answered by Developer Tools Engineer in 879966022

If you drop the sudo from that command, it will work. Using sudo operates on root's sims, not yours ;)

If you restart your Mac, does that make a difference? If not, please run xcrun simctl diagnose and attach the resulting output to a bug report, and then post the FB number here.

— Ed Ford,  DTS Engineer

FB number: https://feedbackassistant.apple.com/feedback/22225154

Feel free to adjust accordingly.

Don't use sudo. Using sudo operates on root's sims, not yours ;)

If you drop the sudo from that command, it will work. Using sudo operates on root's sims, not yours ;)

That did not work. No permission.

Also, I’m trying to remove the AssetsV2 simulators. Those are dead weights, but they’re being protected by SIP. Any ways to delete those?

Yeah, that's probably a bug in the iOS Simulator runtime that incorrectly annotated some of the files within the data directory.

I bet if you look in that directory, you'll see some leftover spotlight files.

I think you can delete them manually with sudo rm -rf ~/Library/Developer/CoreSimulator/Devices/...

How to delete rogue iOS simulators and reclaim disk space?
 
 
Q