swift

Install command:
brew install swift

High-performance system programming language

https://www.swift.org

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
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 6.3.3

Keg-only because macOS already provides this software.

Depends on:

python@3.14 3.14.7 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.3 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.3.xctoolchain

This can be symlinked for use within Xcode:
    ln -s $HOMEBREW_PREFIX/opt/swift/Swift-6.3.xctoolchain ~/Library/Developer/Toolchains/Swift-6.3.xctoolchain

Analytics:

30 days90 days365 days
Installs2,4618,86022,199
Installs (--HEAD)129
Installs on Request1,2603,68311,904
Installs on Request (--HEAD)129
Build Errors63