Xcode 15 beta 8 | iOS 17 simulator RAM consumption significantly grows with each test run

When using Xcode 15 beta 8 / iOS 17 beta 8 simulator runtime, we can see in Activity Monitor that memory used by "SimRenderServer" proccess grows significantly with each UI test run. It reproduces even on an empty test, that just wait for a second without launching the application. Memory usage doesn't go down when test run finishes, so each consecutive run adds more to it.

For example, create an new project with a UI test

    // The contents of the test don't actually matter
    func testExample() async throws {
        try await Task.sleep(for: .seconds(1))
    }

Run this test repeatedly 100+ times and observe the "SimRenderServer" process in the Activity Monitor.

From what we observed it only reproduces when "Preferred Capture Format" in the test plan configuration is set to "Video". Setting it back to "Screenshot" does no result in growing memory usage.

This was reproducible on macOS Sonoma beta / macOS Ventura 13.5.1.

Feedback was submitted FB13098749.

For reference we have witnessed memory going up to 25GB 🤯

[Fixed for MAC M1] MacOS 14.0 (23A344) and iOS 17 on iPhone SE / 15 /15 Pro Max / [ Tested ].

Solution :

  1. clean install Xcode again
  2. reboot Mac
  3. [IMPORTANT] don't forget to update CocoaPods [ pod --version 1.13.0 ]

Has there been any update on this? I'm using Xcode 15.0, Sonoma, and seeing this issue with all the simulators. The memory usage makes it impossible for us to run thru our suite of tests without it failing. And even if I use a 64 GB machine, it will skyrocket up to like 40 GB of memory usage. It takes whatever it can get.

Xcode 15 beta 8 | iOS 17 simulator RAM consumption significantly grows with each test run
 
 
Q