swig

Install command:
brew install swig

Generate scripting interfaces to C/C++ code

https://www.swig.org/

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/swig.json

Formula code: swig.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 4.5.1
head ⚡️ HEAD

Depends on:

pcre2 10.49 Perl compatible regular expressions library with a new API

Uses from macOS: python (test)

Binaries: ccache-swig, swig

GitHub Packages downloads:

Last 30 days45,642
Downloads3,348,197
Analytics install events (30 days)5,780
Downloads / install events (30 days)7.9×

Source: GitHub Packages, fetched 2026-11-18T00:59:42Z. Analytics dates: 2026-10-19 to 2026-11-18. 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 days90 days365 days
Installs5,77515,826109,230
Installs (--HEAD)5852
Installs on Request1,7845,26429,026
Installs on Request (--HEAD)5852
Build Errors47
Build Errors (--HEAD)5