title: Xcode Guard Malloc and on Device Debugging: 'libgmalloc.dylib' image not found
body: <p>I enabled memory checking in Xcode (Edit Scheme -> Options). I'm now getting the following when I perform on device debugging: <code>dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found</code>. The measure was taken proactively in hopes of catching mistakes early in the cycle.</p>
  
  <p>Is memory checking not valid on a device? It appears its valid since it was acknowledged and investigated according to <a href="http://lists.apple.com/archives/xcode-users/2012/Mar/msg00271.html">http://lists.apple.com/archives/xcode-users/2012/Mar/msg00271.html</a>. Also, Xcode had no complaints during compile and link. If its not valid for a device, why is Xcode inserting the library? Are there any solutions? <a href="https://www.google.com/#q=dyld:+could+not+load+inserted+library+libgmalloc.dylib">Googling returned a few hits</a>, but I did not see any concrete solutions.</p>
  
  <p>How does one enable Xcode Guard Malloc when debugging on a device?</p>