Xcode 4 无法启动

标签 xcode debugging xcode4 llvm lldb

我目前正在将旧的 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 正在击中断点。

最佳答案

远射,但是:

The Famous Web Editor

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

关于Xcode 4 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7482717/

相关文章:

iphone - 发布对象是否必要?

iphone - 关闭动画不会运行

ios - XCode 6 Beta 4 错误 - "An error was encountered while running (Domain = com.apple.CoreSimulator.SimError, Code = 146)"

c++ - JNI C++ 调试技术?

php - 将 session 变量插入 MySQL

android - 如何维护无限 ScrollView anchor ?

xcode - 需要调试 Cocoa 绑定(bind)的技巧

swift - 将文件从子文件夹添加到阵列

ios - 如何将参数传递给 Facebook,fb ://publish/?

arrays - JSON解析全局变量Swift 4