• 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
Re: XCode documentation index; executable runtime paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode documentation index; executable runtime paths


  • Subject: Re: XCode documentation index; executable runtime paths
  • From: Mike Lazear <email@hidden>
  • Date: Tue, 8 Mar 2005 18:38:38 -0800


On Mar 8, 2005, at 6:17 PM, Philip Lamb wrote:

Hi all,

Another question I have had for a long time; in one of my projects I have an executable which has to be built to a path outside the build directory.. actually, it is built into a bin/ subdiretory off the projcet root directory. Now, when it comes time to run the executable, I have no way of telling XCode to set the working directory to the executable's directory before it runs it.. the only options are "Project directory", "Build directory" and "Absolute path". The latter works, but only on my machine, so everyone I give the project to I have to explain how to edit the runtime path..which is quite well buried. So anyone know of a way to ask XCode to use a relative path (from the prject root or whatever) for the working directory of an executable?


In Xcode there are paths associated with the project, paths associated with targets and paths associated with executables. Since the only one that I see mention working directories is the paths associated with executables I'll assume those are the ones you are talking about. I would think the best solution would be to use a "Custom path".


In XCode 1.5
Select Project, Edit Active Executable '<appname>'
Select the General tab at the top
On the Select working directory question select "Custom directory"
Enter something like:
~/LIbrary/Application Support/AppName
The ~ equates to the users directory in my case /Users/Mike

I'm not sure where you want your working directory but hopefully that gives you something to start with.

Mike

_______________________________________________
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: XCode documentation index; executable runtime paths
      • From: Philip Lamb <email@hidden>
References: 
 >XCode documentation index; executable runtime paths (From: Philip Lamb <email@hidden>)

  • Prev by Date: XCode documentation index; executable runtime paths
  • Next by Date: Re: XCode documentation index; executable runtime paths
  • Previous by thread: XCode documentation index; executable runtime paths
  • Next by thread: Re: XCode documentation index; executable runtime paths
  • Index(es):
    • Date
    • Thread