2

I have to put my input files directly in the root directory for xcode to see them, and the output files are always in the same root directly.

How can I configure xcode to change the input/output directories ?

2
  • Do you mean code file input to Xcode or the input files to the application you are building with Xcode Commented Feb 2, 2010 at 14:44
  • input files to the application I'm building. Commented Feb 2, 2010 at 14:58

1 Answer 1

1

Your application should never make any assumptions about the current working directory when it is launched. It will be different when launched with Xcode than when launched from a command line or from the Finder or via other means. You need to either use absolute paths for your input/output files (icky, but may be acceptable for "research" type code), or put them in some specific location, or have some other reliable way of defining the location.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.