Use Locations preferences to specify different locations for project-generated files, to choose a version of the Xcode app for command-line tools such as xcodebuild to use, and to configure custom paths for your projects.
To open Locations preferences, choose Xcode > Preferences and click Locations.