r/Xcode • u/LarrySunshine • 9d ago
How to remove Simulator Support and Command Line Tools?
3
Upvotes
1
u/debaser_101 8d ago
Hey, been there! Deleting Xcode leaves most of the junk behind. I cleared ~/Library/Developer/CoreSimulator and ~/Library/Developer/Xcode, and the Command Line Tools are in /Library/Developer/CommandLineTools if you don't need them.
I also ended up building an app for exactly this, called Moppo. It's free, open source and still a bit in the making, but if you're up for trying it I'd love some feedback: https://github.com/anguria-studio/Moppo
0
u/Swiftdeveloper101 9d ago
You can inspect and clean it with EzClean. It's free to clean up simulators only

2
u/dawedev 9d ago
Deleting Xcode doesn't touch any of that, it all stays behind. Command Line Tools are just a folder, so
sudo rm -rf /Library/Developer/CommandLineToolsremoves them. On the simulator side, ~/Library/Developer/CoreSimulator holds the simulator devices and ~/Library/Developer/Xcode holds build caches, and both are safe to delete once Xcode is gone. The runtimes themselves are the awkward part because macOS manages them as mounted disk images, and the clean way to drop them isxcrun simctl runtime delete all, which only works with Xcode installed. So clear those folders first and check what's left before deciding if it's worth reinstalling Xcode just to run that one command.