【发布时间】:2013-12-18 09:21:20
【问题描述】:
一些用户报告说,有时当我的应用崩溃时,会收到如下消息框:
The lldb command requires the command line developer tools. Would you like to install the tools now?
崩溃 (SIGABRT) 看起来像是我代码中某处的竞争条件。但是为什么当这种情况发生时它似乎试图启动lldb?我从来没有见过这样的东西,它似乎对几个用户来说相当孤立,而且我无法在本地复制 - 尽管我确实安装了开发者工具。
这几乎就像在 .NET 中进行 JIT 调试,但我从未听说过在 Cocoa 中这样做,而且我在 Google 上的搜索也没有结果。
编辑:
如果我运行ps,我们可以同时看到Problem Reporter 和Install Command Line Developer Tools:
19582 0.0 0.4 2568032 33224 ?? S 10:22AM 0:00.72 /System/Library/CoreServices/Problem Reporter.app/Contents/MacOS/Problem Reporter
19579 0.0 0.2 2531748 13276 ?? S 10:22AM 0:00.16 /System/Library/CoreServices/Install Command Line Developer Tools.app/Contents/MacOS/Install Command Line Developer Tools
列表中没有其他可疑之处。如果我使用-f 开关运行ps,我可以看到Install Command Line Developer Tools 的父进程是launchd。
【问题讨论】:
标签: macos cocoa debugging osx-mavericks lldb