Before Xcode 4 the build used to be created in the root folder of my project. I can no longer find it.
Where can i find the build folder?
Before Xcode 4 the build used to be created in the root folder of my project. I can no longer find it.
Where can i find the build folder?
~/Library/Developer/Xcode/DerivedData
is now the default.
You can set the prefs in Xcode to allow projects to specify their build directories.
It should by located in: ~/Library/Developer/Xcode/DerivedData
.
If you changed the defaults, you can see where the build directory is by going to File->Workspace Settings then look at Build Location
You can configure the output directory using the CONFIGURATION_BUILD_DIR
environment variable.
Source: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/0-Introduction/introduction.html#//apple_ref/doc/uid/TP40003931-CH1-SW1
With a project previously created in Xcode3, I see an intermediate directory under build/
called Foo.build
where Foo
is my project's name, and then in that are the directories you'd expect (Debug-iphonesimulator, Release-iphoneos, etc, assuming you've done a build of that type) containing the object files and products.
Now, I suspect that if you start a new project in Xcode4, the default location is under DerivedData, but if you open an Xcode3 project in Xcode4, then Xcode4 uses the build/ directory (as described above). So, there are several correct answers. :-) Under the File menu, Project Settings, you can see you can customize how XCode works in this regard as much or as little as you like.
I wondered the same myself. I found that under File(menu) there is an item "Project Settings". It opens a dialog box with 3 choices: "Default Location", "Project-relative Location", and "Custom location" "Project-relative" puts the build products in the project folder, like before. This is not in the Preferences menu and must be set every time a project is created. Hope this helps.
Configure XCode project settings, it can solve your problem.
In case of Debug Running
~/Library/Developer/Xcode/DerivedData/{your app}/Build/Products/Debug/{Project Name}.app/Contents/MacOS
You can find standalone executable file(Mach-O 64-bit executable x86_64)