Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird error when enabling guard malloc

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?

like image 514
marsrover Avatar asked Nov 02 '12 17:11

marsrover


People also ask

How do I enable guard for malloc?

Click on the Diagnostics tab then turn on the Enable Guard Malloc check box.

What is malloc stack logging?

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.


1 Answers

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.

like image 69
InfalibleCoinage Avatar answered Oct 21 '22 17:10

InfalibleCoinage