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.