【发布时间】:2012-03-15 06:19:23
【问题描述】:
我正在尝试 Xcode 提供的不同分析选项,但是当我在 Diagnostics 选项卡中启用 Guard Malloc 选项并尝试运行时,我收到了这个错误立即崩溃:
dyld: could not load inserted library: /usr/lib/libgmalloc.dylib
没错,/usr/lib/ 不包含这个库。我把它定位在:
Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/
所以我创建了链接,并启动了命令行工具(只是为了确定,因为它显然是 MacOS SDK 的一部分),再次启用了 Guard Malloc,但问题仍然存在。
我不太明白问题出在哪里:是新的 Xcode 4.3 疏忽、我的系统出现问题还是 Apple 计划决定用其他东西替换它(可能是 Instruments)?
【问题讨论】:
标签: iphone ios xcode debugging profiling