macOS
brew install swift-protobuflocal Homebrew formula metadata
brew
Plugin and runtime library for using protobuf with Swift. Version 1.38.1 via Homebrew; verified 2026-06-23.
install
brew install swift-protobuflocal Homebrew formula metadata
nix profile install nixpkgs#protoc-gen-swiftnixpkgs package indexes · pkgs/by-name/pr/protoc-gen-swift/package.nix · source: api.github.com
overview
Plugin and runtime library for using protobuf with Swift
history
Swift Protobuf is Apple's Swift implementation for Protocol Buffers, combining a `protoc` code-generation plugin with the SwiftProtobuf runtime library used by generated Swift code.
The public repository was created in 2016, after Swift had become open source. The project joined Google's schema-first Protocol Buffers ecosystem by adding a Swift generator, `protoc-gen-swift`, and an idiomatic Swift runtime for generated types.
The README documents multiple ways to consume the project: building the plugin with SwiftPM, installing the command-line generator through Homebrew, adding the runtime as a SwiftPM dependency, or consuming it through Xcode or CocoaPods. That mix reflects its dual role as both a CLI tool and a library dependency.
Developers install or build `protoc-gen-swift`, run `protoc --swift_out=...` on `.proto` files, and add the SwiftProtobuf runtime to their Swift package, Xcode project, or CocoaPods project. The official documentation covers plugin behavior, generated-code APIs, internals, and contribution style.
Swift Protobuf matters to package-manager users because it bridges a language-specific package ecosystem with a cross-language serialization format. It gives Swift packages a generated-code workflow that stays compatible with Protocol Buffers used by Java, C++, Python, Objective-C, and other stacks.
security posture
No matching local secret-handling manifest was found for swift-protobuf. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
protoc-gen-swift | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/apple/swift-protobuf
install metadata
| Package key | brew:swift-protobuf |
|---|---|
| Version | 1.38.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/swift-protobuf |
| Homepage | https://github.com/apple/swift-protobuf |
| Repository | https://github.com/apple/swift-protobuf |
| Upstream docs | https://github.com/apple/swift-protobuf#readme |
| License | Apache-2.0 |
| Source archive | https://github.com/apple/swift-protobuf.git |
| Last updated | 2026-06-23T19:48:06Z |
| Pulse | updated |
| Dependencies | protobuf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | swift-protobuf |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
protoc-gen-swift
nix profile install nixpkgs#protoc-gen-swiftsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.