Automic VaultAutomic Vault

brew

Install swift-protobuf with Homebrew, Nix

Plugin and runtime library for using protobuf with Swift. Version 1.38.1 via Homebrew; verified 2026-06-23.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install swift-protobuf

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#protoc-gen-swift

nixpkgs package indexes · pkgs/by-name/pr/protoc-gen-swift/package.nix · source: api.github.com

overview

Package summary

Plugin and runtime library for using protobuf with Swift

Commands and aliases

  • protoc-gen-swift

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2016: Public GitHub repository created.
  • Current docs: Provides both `protoc-gen-swift` and the SwiftProtobuf runtime library.
  • Current docs: Homebrew installs the protobuf compiler and Swift code-generator plugin.

Related projects

  • The README ties Swift Protobuf to Apple's Swift language, Google's Protocol Buffers and `protoc`, Swift Package Manager, Xcode package dependencies, and CocoaPods.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
protoc-gen-swiftcliglobal executable

freshness

Version and 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.

page generated2026-07-07
manager version1.38.1
manager updated2026-06-23
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/apple/swift-protobuf

install metadata

Package metadata

Package keybrew:swift-protobuf
Version1.38.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/swift-protobuf
Homepagehttps://github.com/apple/swift-protobuf
Repositoryhttps://github.com/apple/swift-protobuf
Upstream docshttps://github.com/apple/swift-protobuf#readme
LicenseApache-2.0
Source archivehttps://github.com/apple/swift-protobuf.git
Last updated2026-06-23T19:48:06Z
Pulseupdated
Dependenciesprotobuf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameswift-protobuf
Version Scheme0
Revision0
Head VersionHEAD
Requirements
  • xcode
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix92%

protoc-gen-swift

nix profile install nixpkgs#protoc-gen-swift
  • installed executable or alias match
  • Matched by: Protoc Gen Swift
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pr/protoc-gen-swift/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment