开发者

Xcode and input/output files

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 ?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜