This package automates the setup, build, and installation of local Swift toolchains.
Setting up the toolchain and knowing what to build when wanting to contribute to the Swift repo can be daunting when starting out.
This tool aims to remove this initial complexity and lower the barrier to entry for anyone wanting to contribute to Swift and its related repos through a simple and easy to use command line interface tool.
Important
This tool assumes you are running on a Mac with an Apple Silicon chip (M1, M2 etc.)
Run this command to check your Mac is running on Apple Silicon, if it prints arm, you're good to go.
uname -p
Install the swift-helper tool:
source <(curl -sL https://raw.githubusercontent.com/adammcarter/swifthelper/main/install.sh)Preflight: Clone the Swift repo
Warning
Skip this step if you've already cloned the Swift repo.
Important
Clones in to your current working directory.
swift-helper clone1. Setup your environment
swift-helper doctor2. Build your toolchain
swift-helper build3. Activate in Xcode Select Swift Local from the Xcode > Toolchains menu.