Adding auxiliary executables
Adding auxiliary executables
- Subject: Adding auxiliary executables
- From: Andrew Ebling <email@hidden>
- Date: Thu, 2 Nov 2006 08:21:19 +0000
The Background:
I'm trying to follow the MathPaper example in "Building Cocoa
Applications, a step-by-step guide" (Garfunkel and Mahoney).
So far I've found the book really useful, although it is a bit old
now, so the instructions refer to Project Builder rather than XCode.
One area where Project Builder seems to differ to XCode is in the
setup of build phases and creating an auxiliary executable (as
described in chapter 11, p322).
The Problem:
I can't seem to manage to create an auxiliary executable from an
existing target within a project. I've tried adding a "copy files"
build phase and adding the product executable to be added to the
"Executables" section, but when this line of code runs ("Evaluator"
is the name of the auxiliary executable):
NSBundle *currentExecDir = [NSBundle mainBundle];
path = [currentExecDir pathForAuxiliaryExecutable:@"Evaluator"];
currentExecDir points to the right place, but path is null - it can't
seem to find the auxiliary executable. Hence my project falls in a
big heap.
The Questions:
- where does NSBundle pathForAuxiliaryExecutable look inside
the .app folder? The documentation does not make this clear.
- how do I make XCode put the build product in the right place?
Any help would be very much appreciated.
thanks,
Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden