What it is
Simulator clones Xcode creates for parallel UI and unit test runs.
Can you delete it?
Yes, it is rebuilt automatically. Xcode creates them again for the next test run. Old ones are left behind after testing.
How to clean it safely
- Quit Xcode and the Simulator.
- Run:
rm -rf ~/Library/Developer/XCTestDevices/*
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/"Library/Developer/XCTestDevices" 2>/dev/nullStep-by-step guide: Clean up Xcode →
Related folders
- SwiftUI preview simulators ·
~/Library/Developer/Xcode/UserData/Previews - Mint packages ·
~/.mint - Xcode Archives ·
~/Library/Developer/Xcode/Archives - Old Xcode versions ·
/Applications/Xcode-*.app - CocoaPods download cache ·
~/Library/Caches/CocoaPods/Pods - Carthage cache ·
~/Library/Caches/org.carthage.CarthageKit
Questions
Is it safe to delete ~/Library/Developer/XCTestDevices?
Yes, it is rebuilt automatically. Xcode creates them again for the next test run. Old ones are left behind after testing.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac