Join the waitlistJoin
← All cleanup guides
Xcode

XCTest devices: is it safe to delete?

Simulator clones that Xcode creates to run tests in parallel.

Where it lives
  • ~/Library/Developer/XCTestDevices/*
Risk
Review. Safe in many cases, but only you know if you still need it. Never preselected.
Comes back on its own
Yes
If you delete it
Xcode creates the clones again on the next parallel test run, which then starts more slowly.
What SPACE256 does
Shows what it is and how big it is. It does not delete it.

What it is

When you run tests in parallel, Xcode clones a simulator several times so each clone runs part of the suite. The clones live in XCTestDevices, separate from the simulators you use by hand. They appear when tests run in parallel, an option in a scheme’s test settings or xcodebuild -parallel-testing-enabled YES.

Why it grows

Each clone is a full simulator with the app under test installed. Parallel runs across several destinations, and clones left behind by interrupted runs, add up.

When to clear it

When you are not running tests. The clones hold nothing you created by hand.

When to keep it

If you run parallel tests often, Xcode will recreate the clones on the next run, so clearing them only saves space until then. SPACE256 shows their size so you can decide.

Questions

Do I lose anything if these are removed?

No test results or code. Xcode creates the clones again the next time it runs tests in parallel; that run just starts more slowly.

Get SPACE256 at launch