So I try to debug an EXC_BAD_ACCESS
error by editing my scheme, enabling all the different checks.
But the damn compiler gives me this error:
dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found
I've googled around, someone solved by installing some kind of OS X combo installer (OS X 10.7.3), but I'm already running a newer version.
My Xcode is up to date so what is going wrong here?
Click on the Diagnostics tab then turn on the Enable Guard Malloc check box.
You can enable something called Malloc Stack Logging that will give the Xcode memory debugger the ability to find the exact lines of code that are causing memory leaks.
According to official docs:https://developer.apple.com/library/mac/documentation/performance/Conceptual/ManagingMemory/Articles/MallocDebug.html
To enable debugging using Guard Malloc, configure your project to run with Guard Malloc in Xcode’s scheme editor. You can use this option for Mac apps and iOS apps running in the simulator.
So no device support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With