Search code examples
xcodemacosxcode4

Xcode 4 - Error Starting Executable


I've been working on a project in Xcode 3.2.5 and today I tried migrating it up to Xcode 4.0. It compiles just fine; I can navigate to and execute the .app without a hitch (as expected). The only thing that is screwy is the fact that Xcode cannot launch the application, and displays the following error when it tries:

"Error starting executable. No executable file specified. Use the "file" or "exec-file" command" (image not available)

I've scoured the Project and Xcode settings and have been googling for half the day, but all I can find are dead ends and people bashing other people about breaking Apple NDA. FYI Xcode 4 has been released, and is no longer under NDA.

Should I just start a new project and copy in my source? Sounds wrong to me, but brute force works when brute force works.

Thanks in advance


Solution

  • At a guess, the schemes it set up for you based on your v3 targets and build settings might not be quite right. From the schemes menu, choose to edit the current scheme, then select the Run action from the list and make sure the appropriate exectuable is selected.