10

我目前正在将旧的 OS X 项目从 Xcode 3 GCC 迁移到 Xcode 4 LLVM。

到目前为止,迁移进展顺利。我已经将代码从 10.4 更新到了 10.6,其中包含很多已弃用的 API,并且编译得很好。

但是当我尝试使用 LLDB 进行调试时,我收到以下错误:

error: failed to launch '/Users/trenskow/Library/Developer/Xcode/DerivedData/The_Famous_Web_Editor-ddfqhzdztzzgfrcxaaywyxgtahzx/Build/Products/Debug/The Famous Web Editor.app/Contents/MacOS/The Famous Web Editor'

该应用程序自行运行良好(除了我试图调试的运行时错误)。

当我切换回 LLVM GCC 和 GDB 时,它可以正常启动,但 Xcode 永远不会在断点处停止。应用程序停止,但我没有得到任何断点被 Xcode 命中的迹象。

4

2 回答 2

5

远射,但是:

The Famous Web Editor

Xcode 和编译器有时会跳过项目/目标名称中的空格。这通常出现在损坏的标题或库搜索路径中,所以我不确定它是否适用于此。但肯定值得一试重命名目标,使其不包含空格。

于 2011-10-23T21:47:48.780 回答
2
First clear your DerivedData  (/Library/Developer/Xcode/DerivedData/) delete every thing from there.

现在重启你的 XCode,重启你的设备。

运行 Xcode

于 2012-10-22T07:48:21.757 回答