Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

RealityKit/ARKit Memory Not Fully Released After AR Session Cleanup

Hi,

I'm developing a SwiftUI app using RealityKit and ARKit for an AR measuring feature. I’ve noticed that after navigating away from my AR view and performing extensive cleanup (including removing all anchors/entities, pausing the ARSession, and nil-ing out all references), memory usage remains elevated and sometimes grows with repeated AR sessions.

  • Each time I enter and exit the AR view, memory increases
  • The memory does not return to the baseline after cleanup, even though all custom objects are deallocated.

Are there best practices beyond what I’ve described to ensure all ARKit/RealityKit resources are released after an AR session?

RealityKit/ARKit Memory Not Fully Released After AR Session Cleanup
 
 
Q