Xcode Guard Malloc和设备调试:找不到"libgmalloc.dylib"映像 [英] Xcode Guard Malloc and on Device Debugging: 'libgmalloc.dylib' image not found

查看:100
本文介绍了Xcode Guard Malloc和设备调试:找不到"libgmalloc.dylib"映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xcode(编辑方案->选项)中启用了内存检查.在执行设备调试时,我得到以下信息:dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found.该措施是积极采取的,希望能够在周期的早期发现错误.

I enabled memory checking in Xcode (Edit Scheme -> Options). I'm now getting the following when I perform on device debugging: dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found. The measure was taken proactively in hopes of catching mistakes early in the cycle.

内存检查在设备上无效吗?自从根据 http://lists.apple接受并调查以来,它似乎是有效的. com/archives/xcode-users/2012/Mar/msg00271.html .另外,Xcode在编译和链接过程中也没有任何抱怨.如果它对设备无效,为什么Xcode会插入库?有什么解决办法吗? Google搜索返回了一些匹配结果,但我没有查看任何具体解决方案.

Is memory checking not valid on a device? It appears its valid since it was acknowledged and investigated according to http://lists.apple.com/archives/xcode-users/2012/Mar/msg00271.html. 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? Googling returned a few hits, but I did not see any concrete solutions.

在设备上调试时如何启用Xcode Guard Malloc?

How does one enable Xcode Guard Malloc when debugging on a device?

推荐答案

要解决此问题,我创建了两个新的Xcode方案.一个名为"XXX设备",不包括malloc保护;第二个是"XXX Simulator",并且确实包含malloc防护.

To work around, I created two new Xcode schemes. One is named 'XXX Device' and does not include the malloc guards; the second is 'XXX Simulator' and does include the malloc guards.

为设备/模拟器目的添加方案是有问题的(http://www.cocoabuilder.com/archive/xcode/303307-why-does-xcode-create-nonsensical-destinations-in-every-scheme.html) .显然,Dave Duncan并未遇到Xcode无法正确执行某些操作(或他未使用诸如malloc防护之类的工具)的问题.

Adding a scheme for device/simulator purposes is questionable (http://www.cocoabuilder.com/archive/xcode/303307-why-does-xcode-create-nonsensical-destinations-in-every-scheme.html). Apparently, Dave Duncan has not encountered an issue where Xcode does not do something correctly (or he does not use tools such as malloc guards).

这是库比蒂诺(Cupertino)软件垃圾的后代.对苹果及其糟糕的质量检查部门+1,以便让另一个错误免费发布.

This reeks of Cupertino software junk. +1 to Apple and its crappy QA department (if it exists) which let another bug fly free.

这篇关于Xcode Guard Malloc和设备调试:找不到"libgmalloc.dylib"映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆