Solution for "No launchable executable present to run"
Solution for "No launchable executable present to run"
- Subject: Solution for "No launchable executable present to run"
- From: David Thorup <email@hidden>
- Date: Sun, 21 Sep 2003 15:37:23 -0600
I just spent a lot of wasted development time trying to figure out why
my Project Builder project, that had worked the day before, suddenly
decided to produce executables that would not launch. I searched the
archives and all over the Internet, but I could not find a solution
that worked. The solutions I found all suggested cleaning the project,
deleting the build folder, or quitting and restarting Project Builder.
None of these worked and the only other suggestion was to rebuild the
project which I did not want to do.
This problem is characterized by the following symptoms:
When you try to build and run a program in Project Builder you get the
following error in the status bar at the bottom:
Run session cancelled: No launchable executable present to run."
When you try to double-click on the program in the Finder you get the
following error:
The operation could not be completed.
An unexpected error occurred (error code 1000).
I should note that this appears to happen without you having done
anything. I had been working on the project the day before, and
everything worked great. The next day I opened up Project Builder, and
BAM, it didn't work, I hadn't yet done anything with the newly opened
project.
The problem seems to arise when you change the executable name
(CFBundleExecutable) in the Info.plist Entries part of your project and
then quit Project Builder. The next time you open Project Builder,
your project will be hosed. The error occurs because the
CFBundleExecutable is set to something different from what is in your
application's "Contents/MacOS" folder. Since the two are different,
the program cannot be launched.
To fix the problem you need to make sure the CFBundleExecutable, set in
"Info.plist Entries -> Basic Information -> Executable", matches the
"Base product name" in the Summary section. These are all configurable
in the Target settings section of Project Builder.
I hope that this solution provide useful for others that have the
problem. Hopefully it will save them a few hours of frustration.
_____________________________
Dave Thorup
Software Engineer
email@hidden
http://www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.