• 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
Custom Working Directory not working for me...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Working Directory not working for me...


  • Subject: Custom Working Directory not working for me...
  • From: David Hoerl <email@hidden>
  • Date: Mon, 14 Nov 2011 09:49:32 -0500

Maybe someone can help shed light on this. Xcode 4.2 (Lion), building a command line utility. I want a specific working directory for it, so I go to the scheme menu and set one. Its not having any affect.

I added this line to main.c, the first executable line:

 printf("CWD=%s\n", getcwd(NULL, 100) );

What it prints out is "CWD=/"

I'm using a Release build no debugger. I even copied the directory from the custom working directory and did a "ls" on the string just to convince myself it was correct (I used the popup control to set it initially).

I closed and reopened the project, shut down and reopened Xcode, no change.


David _______________________________________________ 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: Custom Working Directory not working for me...
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: How to resolve this error ...
  • Next by Date: XCode 4.2 debugger fails to show proper local variable states
  • Previous by thread: Re: Stupid problem in llvm!
  • Next by thread: Re: Custom Working Directory not working for me...
  • Index(es):
    • Date
    • Thread