Using Xcode and Guard Malloc should be easier than this.. could not load inserted library: libgmalloc.dylib
Posted in Apple, Objective-C, iphone development on 10/12/2009 09:05 am by ashluxAfter 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.
I have updated to , so maybe this has something to do with it? I’m going to try the only thing I can think of and install the iPhone SDK 3.1.2 with Xcode 3.2.1.
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.


















