Xcode 在哪里保存程序的可执行文件或等效文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13521614/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where does Xcode save the program's executable files or equivalent files?
提问by user1681673
I'm trying to do a I/O redirection to get input into my program from a file. I need to know where the executable file is located to enter it into the terminal. I'm on a mac, using Xcode, in C. Also, I can only use the terminal to get the input.
我正在尝试进行 I/O 重定向以从文件中输入我的程序。我需要知道可执行文件的位置才能将其输入终端。我在 Mac 上,使用 Xcode,在 C 中。另外,我只能使用终端来获取输入。
回答by DrummerB
Go to Xcode > Preferences > Locations:
转到 Xcode > 首选项 > 位置:
回答by Justin Lubin
I believe that you are looking for ~/Library/Developer/Xcode/DerivedData
.
In newer versions of Mac OS X, to get to the Library folder, open up Finder, then press "Go" in the menu bar. Once the menu is open, press the Option(alt) key, and Library should appear.
Hope this helps!
我相信你正在寻找~/Library/Developer/Xcode/DerivedData
。在较新版本的 Mac OS X 中,要进入 Library 文件夹,请打开 Finder,然后按菜单栏中的“Go”。菜单打开后,按 Option(alt) 键,应该会出现库。希望这可以帮助!