-1

Is there any SDK for leak memory on iOs for I used Allocation & Leaks instrument for my Swift project but it usually crash after some minutes running on devices. Thank you!

1 Answers1

2

Run the app so that you get into the state where you suspect a leak, and switch to the Memory Graph debugger. If there's a leak, it will tell you instantly.

In this screen shot, a Dog and a Cat are retaining each other.

enter image description here

If you also turn on Malloc Stack in your scheme, the Memory Graph debugger gives you a backtrace.

enter image description here

matt
  • 515,959
  • 87
  • 875
  • 1,141