Where does xcode save the executable files that it creates?

I have developed in X-code, but it has been several years ago. I am trying out xcode 4, developing a simple command line program in Objective C. The code builds and runs, but I can't find the executable file. I just used the default settings when creating the project. I have searched everywhere. Any help would be appreciated.

xcode 4-OTHER, Mac OS X (10.6.7)

Posted on Apr 25, 2011 4:49 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 18, 2016 10:56 AM

Just to build on K T's informative response, here's a step-by-step (maybe obvious for Mac experts but I'm an old Linux guy...)


In Project Navigator (click the "file" icon at top left of Xcode window so that tree of files and folders are visible):


Open the Products folder. Find the executable, which has the file name assigned in the project settings and a Terminal icon.


Right-click the executable and choose "Show in Finder"


Right-click the executable in the Finder window and choose "Get Info"


Select the "Where: " path, copy and paste into a terminal window, e.g.:

cd /Users/blisterpeanuts/Library/Developer/Xcode/DerivedData/HelloWorld-biqrclqfye npjzgwyyffpreysovr/Build/Products/Debug


Voila! Your awesome executable will be there, ready to run, or deploy to a more convenient directory such as /usr/local/bin 🙂

11 replies
Question marked as Top-ranking reply

Feb 18, 2016 10:56 AM in response to K T

Just to build on K T's informative response, here's a step-by-step (maybe obvious for Mac experts but I'm an old Linux guy...)


In Project Navigator (click the "file" icon at top left of Xcode window so that tree of files and folders are visible):


Open the Products folder. Find the executable, which has the file name assigned in the project settings and a Terminal icon.


Right-click the executable and choose "Show in Finder"


Right-click the executable in the Finder window and choose "Get Info"


Select the "Where: " path, copy and paste into a terminal window, e.g.:

cd /Users/blisterpeanuts/Library/Developer/Xcode/DerivedData/HelloWorld-biqrclqfye npjzgwyyffpreysovr/Build/Products/Debug


Voila! Your awesome executable will be there, ready to run, or deploy to a more convenient directory such as /usr/local/bin 🙂

Apr 25, 2011 5:27 PM in response to debryro

Look in the 'build' folder that Xcode creates in your project folder....


Or, toggle the triangle on the left of 'Products' in the resources window to expose the contents, right-click and choose 'view in Finder' - hover the mouse over the app name and the path that is shown will be to the app.

Feb 29, 2012 5:05 PM in response to red_menace

Because it's buried. No sane human would imagine that, after days of work on an application all contained in a nice/neat folder tree, that when you finally decide you want to run the app itself outside the debugger, you go hunting for it, and it's written it miles away.


And then I just spent another hour trying to figure out how to get a release build. How do you get one of those? They used to be there next to the release, created by default. In XCode 4, you choose "archive". "Archive"? Really? Archive? What the heck!


If they could have made XCode more complicated, I'm not sure how...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Where does xcode save the executable files that it creates?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.