Custom Working Directory not working for me...
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