Using Alternative Toolchains
Xcode supports using alternative toolchains instead of the default tools, such as toolchains downloaded from Swift.org, for indexing, building, and debugging your projects.
Installing Alternative Toolchains
Alternative toolchains for Xcode are installed into either the top level library (/Library/Developer/Toolchains) or into a user library (~/Library/Developer/ Toolchains). Installing a toolchain into a user library makes it available only to that user, where installation into the top level library makes it available for all users who share accounts on that computer. For information on using alternative toolchains with Xcode Server, see Create Bots to Perform Integrations in Xcode Server and Continuous Integration Guide.
Viewing and Managing Installed Toolchains
Alternative toolchains appear in the Toolchains pane of Components preferences. The Toolchains pane is only available when alternative toolchains are installed.shows the pane with one alternative toolchain.
In the Toolchains pane, you can:
View installed alternative toolchains
Switch between toolchains
Verify the code signature of a toolchain
Reveal the location of a toolchain in the Finder
Delete an installed toolchain
Viewing and Switching Toolchains
Each item in the Toolchains pane shows the name, version, origin, and size of the toolchain. For example, inthe alternative toolchain is a development snapshot from Swift Open Source, and is 618 MB.
Xcode indicates that an alternative toolchain is selected by:
Adding the alternative toolchain indicator () to the activity view in the Workspace toolbar as shown in
Adding the name of the alternative toolchain to the About window
Adding the name of the alternative toolchain to the Welcome window
Clicking the alternative toolchain indicator opens the Toolchains pane of Components preferences.
Use the Toolchains pane of Components preferences to switch between installed alternative toolchains. For information on how to do this, see Switching Toolchains in Components Preferences Help.
Verifying, Revealing, and Deleting Alternative Toolchains
Control-click on an installed toolchain to reveal the contextual menu seen in. Alternatively, move the pointer over an item in the Toolchains pane and click on the Action button () that appears.
Use the menu's commands to verify the toolchain's associated Code Signature, reveal the location of the toolchain in the file system, or delete the toolchain.
Building, Running, and Debugging Apps with Alternative Toolchains
Xcode uses the selected toolchain to build, run, and debug your app. For example, you can use the development snapshots from Swift.org to build and run your app on OS X, on devices, or on simulators for iOS, tvOS, and watchOS.