In the Xcode settings, you can change the location of the compiled binaries relative to your project or any absolute path that you like. Go to Preferences → Locations and click the Advanced... button under the Derived Data text box.
On the pop-up sheet, set Build Location to Custom , and then select the option you want from the drop-down list next to it and enter any paths that you like in the Products field.

source share