user1681673
user1681673

Reputation: 368

Where does Xcode save the program's executable files or equivalent files?

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.

Upvotes: 8

Views: 15397

Answers (2)

Justin Lubin
Justin Lubin

Reputation: 41

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!

Upvotes: 4

DrummerB
DrummerB

Reputation: 40211

Go to Xcode > Preferences > Locations:

enter image description here

Upvotes: 12

Related Questions