• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding auxiliary executables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Adding auxiliary executables
      • From: "Alexander v. Below" <email@hidden>
  • Prev by Date: Re: Bundle loader chicken-and-egg problem
  • Next by Date: Re: Adding auxiliary executables
  • Previous by thread: Re: Bundle loader chicken-and-egg problem
  • Next by thread: Re: Adding auxiliary executables
  • Index(es):
    • Date
    • Thread