2025-07-31 Swift now available as a package for FreeBSD
Awhile back I noted the availability of swift for FreeBSD. Looks like it is now available as a package if you aren't into compiling compilers (for fun).
The following one liner should be sufficient for finding the package
$ doas pkg update && pkg search swift510
swift510-5.10.1_2 Swift programming language
To install from a package run
$ doas pkg install swift510
If you prefer ports see my previous post for the ports way. Also note, that I have not been able to get the swift repl to work on FreeBSD (see below for error) but other aspects of port work.
$ swift repl
error: LLDB isn't configured with REPL support for any languages.