Using Xcode and Guard Malloc should be easier than this.. could not load inserted library: libgmalloc.dylibPosted in Apple, Objective-C, iphone development on 10/12/2009 09:05 am by ashlux
After running into a nasty (read: can’t figure it the problem) EXC_BAD_ACCESS error I turned to guard malloc.
Enabling guard malloc in Xcode is deceptively simple: Run > Enable Guard Malloc. Done. Easy right?
It would be, and I believe it is supposed to be this simple. Of course when I run the app in debug mode through the iPhone Simulator I get a EXC_BAD_ACCESS error right off the bat. The debug console is a little more helpful here:
dyld: could not load inserted library: /usr/lib/libgmalloc.dylib
I do not find it inside /usr/lib. I do find it located in /Devloper/usr/lib as well as /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib.
Apparently I don’t know what I’m doing. Luckily Google is giving me comfort in knowing I’m not alone. However, it would be better if I hadn’t burned two hours so far on a EXC_BAD_ACCESS error…
Update: Upgrading to Xcode 3.2.1 does the trick. Weird.