Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 failed to launch

I'm currently migrating an old OS X project from Xcode 3 GCC to 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.

But when I try do debug using LLDB, I get the following error:

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.

like image 682
Trenskow Avatar asked Sep 20 '11 09:09

Trenskow


2 Answers

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.

like image 92
LearnCocos2D Avatar answered Sep 30 '22 15:09

LearnCocos2D


First clear your DerivedData  (/Library/Developer/Xcode/DerivedData/) delete every thing from there.

Now restart your XCode, Restart your device.

run Xcode

like image 39
kunalg Avatar answered Sep 30 '22 15:09

kunalg