Xcode 4 无法启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7482717/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 4 failed to launch
提问by Trenskow
I'm currently migrating an old OS X project from Xcode 3 GCC to Xcode 4 LLVM.
我目前正在将旧的 OS X 项目从 Xcode 3 GCC 迁移到 Xcode 4 LLVM。
The migration has so far gone fine. I've updated the code from 10.4 to 10.6, with a lot of deprecated API, and it all compiles just fine.
到目前为止,迁移进展顺利。我已将代码从 10.4 更新到 10.6,其中包含大量已弃用的 API,并且所有编译都很好。
But when I try do debug using LLDB, I get the following error:
但是当我尝试使用 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'
The application runs fine on it's own (besides the runtime errors I am trying to debug).
该应用程序本身运行良好(除了我试图调试的运行时错误)。
When I switch back to LLVM GCC and GDB, it launches fine, but Xcode never stops at the breakpoints. The application stops, but I do not get any indication of a breakpoint is being hit by Xcode.
当我切换回 LLVM GCC 和 GDB 时,它启动良好,但 Xcode 永远不会在断点处停止。应用程序停止,但我没有得到任何迹象表明 Xcode 正在击中断点。
采纳答案by LearnCocos2D
Long shot, but:
远射,但是:
The Famous Web Editor
Xcode and the compiler can sometimes trip over spaces in the project/target name. This usually shows up in broken header or library search paths, so I'm not sure if it applies here. But it's certainly worth a try to rename the target so it contains no spaces.
Xcode 和编译器有时会跳过项目/目标名称中的空格。这通常出现在损坏的标题或库搜索路径中,所以我不确定它是否适用于此。但是,重命名目标以使其不包含空格当然值得一试。
回答by kunalg
First clear your DerivedData (/Library/Developer/Xcode/DerivedData/) delete every thing from there.
Now restart your XCode, Restart your device.
现在重启你的 XCode,重启你的设备。
run Xcode
运行 Xcode