← Guides

iOS Simulator using too much memory

By , who makes Ramback · Updated

Commands checked on my M1 MacBook Air (8 GB), macOS 26.5, Xcode 26.6.

Each booted simulator is a full copy of iOS. On Xcode 26, an idle iPhone 17 simulator runs close to 100 processes and holds about 1.5 GB before you open an app. Two or three of them, and a 16 GB Mac starts to swap. To get the memory back, run xcrun simctl shutdown all.

See which simulators are running

xcrun simctl list devices booted
== Devices ==
-- iOS 26.5 --
    iPhone 17 Pro (4F1A2C3E-…) (Booted)
    iPhone 17 (9B07D1AA-…) (Booted)

Expect more here than you have windows. Simulator's settings can keep a device running after you close its window or quit the app, and Xcode boots devices with no window at all for tests and builds. Activity Monitor won't help much: a simulator shows up as dozens of small processes, not one big one.

SwiftUI Previews run in a separate set of devices that the command above doesn't list:

xcrun simctl --set previews list devices booted

If you've never opened a preview canvas, it says the set path doesn't exist. That only means there are no Previews devices.

Shut down every booted simulator

# every booted simulator
xcrun simctl shutdown all

# just one, by the ID from the list
xcrun simctl shutdown 4F1A2C3E-…

# the Previews devices; Xcode boots them again when you open a canvas
xcrun simctl --set previews shutdown all

Shutting down keeps each simulator's apps and data. It only frees the memory. On my Mac, shutdown all took the simulator processes from 1.5 GB to under 30 MB.

Why is SimulatorTrampoline using so much memory?

On its own, it isn't. SimulatorTrampoline, CoreSimulatorService, simdiskimaged and SimLaunchHost are CoreSimulator's shared helpers, and they keep running whether or not a simulator is booted. On my Mac, with none booted, the four hold about 10 MB together. A simulator's memory sits in the processes under its own launchd_sim.

A menu bar monitor can still put gigabytes next to that name. One developer on Apple's forums saw SimulatorTrampoline at 10.7 GB in iStat Menus while running a Hello World app, with no process that size in Activity Monitor. The number came from iStat's Combine Processes setting: it was the simulator's processes added up under one name. Shutting the simulator down is still the fix.

Known memory problems in recent simulators

A simulator doesn't enforce an iPhone's memory limit. Apple said at WWDC19 that the device's memory and CPU limits aren't simulated, so an app can allocate as much as your Mac has. A leak that iOS would stop on a phone keeps growing until the Mac swaps. Check your app's memory in Xcode's Debug navigator before you blame the simulator.

Some developers also see the iOS 26 runtime itself use far more than older ones. During the Xcode 26 beta, one reported the iOS 26 simulator taking all the memory of a 16 GB M1 Pro, while the iOS 18.5 simulator used very little. Apple asked for a bug report, and the thread has no fix.

Keep simulators from piling up