I\'ve installed Xcode 4.2.1 on Mac OS X Lion.
When I create a new (Mac OS X Cocoa) project and I click \"Run\", Xcode says build succeeded, but does
I had the same issue in late 2017 with Xcode 9.2.
I had to uncheck 'Debug Executable' and then my app was able to both run and stop.
You can open the settings by clicking Product -> Scheme -> Edit Scheme...
Select the desired active scheme and device/simulator from the toolbar (next to the "play" and "stop" buttons).
The scheme selection should look something like below where the name is that of the appropriate target.
I had similar problems. I found that the problem was in ~/.gdbinit file. And a second time - at the window initialization function loadWithNibName/initWithWindow (wrong name nib file or frame properties). Also check the file Info.plist in your project (parameters "Main nib file base name" and "Principal class").
Try removing the dev tools by running
sudo Developer/Library/uninstall-devtools --mode=all
in Terminal. This will properly remove all components of the dev tools, including the command-line components.
You can then try a re-install.