On 28 Jul 2011, at 22:12, Jim Brandt wrote:
I am working through the exercises of the book "Programming in Objective-C 2.0" by Stephen Kochan.
I have entered a very simple exercise in XCode which built without an error but won't execute.
The error is "No launchable executable present at current path."
Since there are no build errors, what does this error mean?
These are all shots in the dark, because I don't know exactly what you are doing:
Depending on your set-up and how you are doing things; the final part of the "build" process may attempt to "run" the final "product". If you have created something that does not produce a product then you may get this message.
Things to look out for if you are writing a command line program:
When it has finished the status message at the bottom of Xcode should say something like (from memory) "<program name> exited normally"
If that is the case everything is fine.
Whether it is fine or not look in the console window to see any output from your program (or to see if any errors were reported).
If you are still getting problems, try creating a new project. Run this from scratch (without altering anything) and see Xcode behaves as you expect it to.
If so, start re-adding your code and making changes, and re-compiling until you get to the action that produces the wrong result.
Hope this helps,
Dave
------