OS X application on Lion 10.7.2 Xcode 4.3 :: error: could not start <exe path> - SBTarget is invalid

The application builds with zero errors and has one line of output after the appearance of Xcode "Launch AppName: AppName"

error: failed to start '/tmp/HungryMeProduct/Debug/HungryMe.app/Contents/MacOS/HungryMe' - Invalid SBTarget

The application will not start in Xcode.

This is my first OS X application. This was done well until recently. I changed the project name and xcodeproj file name. The name of the project, the executable name is the same. Deployment Goal 10.6

The executable ... / Contents / MacOS / HungryMe is launched by double-clicking on it. The terminal window displays the output.

Code Signing ID remains my Developer ID

In the diagrams, I see that LLDB is not selected by GDB. Is this a debugger problem? What is SBTarget?

+6
source share
3 answers

This happened to me, and the problem I ran into was a circuit. The goal was correct, but 64-bit was chosen as the architecture instead of the 32-bit version for the 32-bit project. As soon as I made the switch, it started working again.

GDB had the same problem, but it did not report it so elegantly, instead it reported "warning: posix_spawn failed, try_pp, error: 86". He launched the application, but could not debug it.

This can be easily done if you are debugging a project without creating a scheme, or if the scheme switches to you due to an external change to the project file (updating or returning the original repository using git, svn, ...)

+8
source

I tried everything that was said here. Nothing succeeded. It seems like I somehow imported Info.plist twice. To fix this, I selected the project and clicked the "Check Settings" button. Subsequently, he works for me.

+2
source

Try changing Target Architectures to Build Settings

+1
source

Source: https://habr.com/ru/post/909860/


All Articles