我在 Xcode 中启用了内存检查(编辑方案 -> 选项)。现在,当我执行设备调试时,我收到以下信息:dyld:无法加载插入的库“/usr/lib/libgmalloc.dylib”,因为找不到镜像
。该措施是主动采取的,希望能够在周期的早期发现错误。
内存检查在设备上无效吗?它似乎是有效的,因为它已根据 http://lists.apple.com/archives/xcode-users/2012/Mar/msg00271.html 得到承认和调查。 。此外,Xcode 在编译和链接过程中没有任何提示。如果它对设备无效,为什么 Xcode 会插入该库?有什么解决办法吗? Googling returned a few hits ,但我没有看到任何具体的解决方案。
在设备上调试时如何启用 Xcode Guard Malloc?
最佳答案
您无法在设备上使用 GuardMalloc。
关于Xcode Guard Malloc 和设备调试 : 'libgmalloc.dylib' image not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13396907/