swift
brew install swiftHigh-performance system programming language
License: Apache-2.0
Development: Pull requests
Formula JSON API: /api/formula/swift.json
Formula code: swift.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 6.4.2 |
Patches:
| https://github.com/Homebrew/homebrew-core/blob/main/Patches/swift/homebrew-resource-dir.diff |
Keg-only because macOS already provides this software.
Depends on:
| python@3.15 | 3.15.2 | Interpreted, interactive, object-oriented programming language |
| zstd | 1.5.7 | Zstandard is a real-time compression algorithm |
Depends on when building from source:
| cmake | 4.4.5 | Cross-platform make |
| ninja | 1.13.2 | Small build system for use with gyp or CMake |
Uses from macOS: llvm (build), rsync (build), curl, libedit, libxml2, ncurses, sqlite
Requires: Xcode >= 14.3 (build)
Binaries:
sourcekit-lsp,
sourcekitd-repl,
swift,
swift-api-checker.py,
swift-api-digester,
swift-api-dump.py,
swift-autolink-extract,
swift-build,
swift-build-sdk-interfaces,
swift-build-tool,
swift-cache-tool,
swift-compatibility-symbols,
swift-def-to-strings-converter,
swift-demangle,
swift-driver,
swift-experimental-sdk,
swift-frontend,
swift-help,
swift-legacy-driver,
swift-package,
swift-package-collection,
swift-package-registry,
swift-plugin-server,
swift-reflection-dump,
swift-run,
swift-scan-test,
swift-sdk,
swift-serialize-diagnostics,
swift-symbolgraph-extract,
swift-synthesize-interface,
swift-test,
swiftc,
swiftc-legacy-driver
| An Xcode toolchain has been installed to: $HOMEBREW_PREFIX/opt/swift/Swift-6.4.xctoolchain This can be symlinked for use within Xcode: ln -s $HOMEBREW_PREFIX/opt/swift/Swift-6.4.xctoolchain ~/Library/Developer/Toolchains/Swift-6.4.xctoolchain |
GitHub Packages downloads:
| Last 30 days | 9,767 |
|---|---|
| Downloads | 290,127 |
| Analytics install events (30 days) | 1,911 |
| Downloads / install events (30 days) | 5.1× |
Source: GitHub Packages, fetched 2026-11-07T00:51:27Z. Analytics dates: 2026-10-08 to 2026-11-07. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 1,911 | 6,836 | 23,654 |
Installs (--HEAD) | 0 | 1 | 9 |
| Installs on Request | 1,101 | 3,321 | 11,429 |
Installs on Request (--HEAD) | 0 | 1 | 9 |
| Build Errors | 40 |