Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Memory Leaks detection in Unit Test

Is it possible to test if memory leaks occur when running a Unit Test? I want to check if my memory management is handled correctly.

Thanks

like image 677
Mats Stijlaart Avatar asked Jul 03 '26 21:07

Mats Stijlaart


1 Answers

You can try running your unit tests under Instruments with the Leak Detection Instrument.

However, this will only work for Application (bundle) tests, if you're using OCUnit. If you happen to use something else, please let us know.

like image 126
Johannes Rudolph Avatar answered Jul 06 '26 10:07

Johannes Rudolph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!