I opened XCode after a long time of installing it but never used it. I was greeted with some kind of iOS support software download popup. I was like sure why not and installed it, because I might be coding for iOS apps in the future. But I noticed my disk space went from 32 gb free to 18 gb free. I checked wassup and found this dmg taking 10 gb space.
#Is it safe to delete?
55 messages · Page 1 of 1 (latest)
Try Uninstalling the iOS stuff directly from Xcode
It's under the folder com_apple_MobileAsset_iOSSimulatorRuntime
Well first, try uninstalling from Xcode to make it a clean uninstall of the iOS stuff
Hey! I don't wanna uninstall anything, like I mentioned in the post
Because I might be coding for iOS apps in the future.
Oh mb
I thought you were wanting to delete it
Well, that dmg is definitely the iOS part of the iOS simulator
I know that but is it just a dmg that installs stuff? Because then it could be deleted. Like installers can be deleted
OR is it storing something?
It’s probably storing iOS itself
As in, Xcode uses it to run iOS on the Mac, for your apps you’d wanna develop
Is it gonna harm your device to delete? No
Is it gonna require an Xcode iOS tools reinstall if you delete it? Yes
Okay good to know. It's like a virtual machine
That's why it's taking so much space
Thanks
Your welcome 👍
Although, it’s not exactly like a virtual machine
That dmg is storing system files to create a new iOS every time it’s loaded, instead of everything like a vm normally does
Fresh new iOS everytime its loaded? So any changes I make to that iOS will be purged after restart?
Oh wait I’m dumb I’m too tired today lol
So that dmg most likely contains base iOS system files, but I was wrong about it purging every instance of it
It probably stores the data somewhere, but that dmg prob contains the base iOS
I went to Xcode > Window > devices and simulators and deleted the simulators it showed in the left pane. That only got me like 1 gb back. I then went to ~/Library/Developer/CoreSimulator and deleted all the cache files and everything there was even tho I didn't understand what they were and that got my 4 gb back
But the DMG file is still there
And in disk utility I can see this
I can't eject or unmount it cuz it says it's still running and it's showing 9 gb in size
Yeah, basically the simulators are made from that dmg, not on it
I'm trying to remove because I'm trying to understand how all this works. If I need again sooner I'll reinstall.
I haven’t used Xcode in a while, but to uninstall it thru Xcode you have to find where all the different _OS settings are in Xcode and remove iOS
But you can also just unmount and remove the dmg too
It’ll just show as corrupted in Xcode, but it won’t affect Xcode or macOS, and you can reinstall the iOS simulator later
I went to Xcode > Window > devices and simulators and deleted the simulators it showed in the left pane. That did not delete it
And it's not letting me unmount or eject or even delete the DMG
I can try going to terminal and do a sudo rm to force delete
override rw-r--r-- _nsurlsessiond/wheel restricted for /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime/3ee34d773407290b674484df946712d331558e17.asset/AssetData/092-10337-196.dmg
Try sudo unmount first
Looks like read and write permission not allowed for me
You need to unmount it
I've tried sudo unmount which it said is not a valid command then I tried both the valid commands
It's not letting me unmount either
Type ‘ls -a /Volumes‘ and send the result
Hmm
Try restarting, and right on boot up try sudo rming the dmg
And As a last resort you can try using MacOS recovery to delete the dmg
I restarted already but how do I do this during bootup?
Just right when you can open terminal, so the disk won’t be mounted
And go ahead and try again
It seems that the disk is still mounted even after restart
As soon as the system is booted and I'm logged in I open disk utility to check and it's mounted
Sudo rm isn't working
You know what
I fixed this
I went to XCode > settings > components and deleted the iOS component
Done
Everything is gone