#Is it safe to delete?

55 messages · Page 1 of 1 (latest)

tired plank
#

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.

boreal zinc
tired plank
#

It's under the folder com_apple_MobileAsset_iOSSimulatorRuntime

boreal zinc
#

Well first, try uninstalling from Xcode to make it a clean uninstall of the iOS stuff

tired plank
#

Because I might be coding for iOS apps in the future.

boreal zinc
#

I thought you were wanting to delete it

tired plank
#

Yes I want to

#

Is it safe to delete?

boreal zinc
#

Well, that dmg is definitely the iOS part of the iOS simulator

tired plank
#

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?

boreal zinc
#

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

tired plank
#

Okay good to know. It's like a virtual machine

#

That's why it's taking so much space

#

Thanks

boreal zinc
#

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

tired plank
boreal zinc
tired plank
#

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

boreal zinc
#

Yeah, basically the simulators are made from that dmg, not on it

tired plank
#

I'm trying to remove because I'm trying to understand how all this works. If I need again sooner I'll reinstall.

boreal zinc
#

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

tired plank
#

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

boreal zinc
tired plank
#

Looks like read and write permission not allowed for me

boreal zinc
#

You need to unmount it

tired plank
#

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

boreal zinc
#

Type ‘ls -a /Volumes‘ and send the result

tired plank
boreal zinc
#

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

tired plank
boreal zinc
tired plank
#

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

boreal zinc
#

I’m jk lol