
#Xcode projects how to
1.2 How To Set Xcode Workspace Build Directory Location.īesides the Xcode default build directory, you can also specify the build directory for each Xcode workspace. If you select Absolute, then you should specify the build output directory absolute path ( Products, Intermediates, Index Datastore directory path) in the related input text box accordingly.If you select Relative to Workspace, then the Build directory is saved in the current Xcode workspace folder, it is something like /Users/songzhao/Documents/WorkSpace/……/Build/Products/…….If you select Relative to Derived Data, then the build output directory is something like /Users/songzhao/Library/Developer/Xcode/ DerivedData/Build/Products/…….If you choose the Custom radio button, then you can select one of the three items from the drop-down list, they are Relative to Derived Data, Relative to Workspace, and Absolute.
Then the Xcode build output directory is something like this /Users/songzhao/Library/Developer/Xcode/DerivedData/ SharedBuild( this is the shared folder name that you input )/Products/Debug-iphonesimulator/……
If you choose the Shared Folder radio button, you need to input the shared folder name in the input text box after it. For example /Users/songzhao/Library/Developer/Xcode/DerivedData/ SwiftPromptAlertWhenClickButtonExample -aveftcahakzongcarcpgsevmbaur /Build/……. If you choose the Unique radio button, then Xcode will add a unique string at the end of the build directory name to make it uniquely. There are 4 radio buttons in the Build Location popup dialog, they are Unique, Shared Folder, Custom, Legacy. You can click the Advanced… button after the Derived Data directory path to open a Build Location popup dialog to specify the Xcode build directory name and location in detail. When you select one item, it will display the build output directory absolute path beneath the Derived Data drop-down list. In the Derived Data drop-down list, you can choose one of the Default, Relative, Custom drop-down items. Then click the Locations tab in the popup dialog. Click Xcode -> Preferences… menu item at Xcode top menu bar. 1.1 How To Set Xcode Default Build Directory Location. Project-level build directory location settings will be used first, then workspace settings will be used, then Xcode preferences default settings will be used if all the above level settings are not used.
You can set Xcode build directory location in Xcode preferences by default or per workspace or per project.
How To Configure Xcode Build Directory Location.