开发者

Xcode and input/output files

开发者 https://www.devze.com 2022-12-18 15:57 出处:网络
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.

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

精彩评论

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