# swift-protobuf mit Homebrew, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für swift-protobuf in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:swift-protobuf
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install swift-protobuf
```

  Evidenz: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#protoc-gen-swift
```

  Evidenz: 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

## Paketfakten

- **Paketschlüssel:** brew:swift-protobuf
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/swift-protobuf>
- **Version:** 1.38.1
- **Quellzusammenfassung:** Plugin and runtime library for using protobuf with Swift
- **Homepage:** <https://github.com/apple/swift-protobuf>
- **Repository:** <https://github.com/apple/swift-protobuf>
- **Lizenz:** Apache-2.0
- **Quellarchiv:** <https://github.com/apple/swift-protobuf.git>
- **Zuletzt aktualisiert:** 2026-06-23T19:48:06Z
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- protoc-gen-swift (cli)
- protoc-gen-swift (Alias)

## Abhängigkeiten

- protobuf

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 1.38.1
- Manager aktualisiert: 2026-06-23
- lokale Daten: OK
- Upstream-Repository: https://github.com/apple/swift-protobuf
- Info: No cached GitHub release or tag data was available.
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

- <https://api.github.com/repos/apple/swift-protobuf>
- <https://formulae.brew.sh/api/formula/swift-protobuf.json>
- <https://github.com/apple/swift-protobuf#readme>
- <https://github.com/apple/swift-protobuf/tree/main/Documentation>


## Sicherheitshinweise

Für swift-protobuf wurde kein passendes lokales Secret-Handling-Manifest gefunden. Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.


## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swift-protobuf
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Andere Paketmanager-Einträge

- Nix - protoc-gen-swift: installed executable or alias match | 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


## Verwandte Links

- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [protobuf](https://pkg.so/de/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [protoc-gen-grpc-swift](https://pkg.so/de/brew/protoc-gen-grpc-swift/) - Popular package that depends on this formula.
- [buffa](https://pkg.so/de/brew/buffa/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf, serialization.
- [sourcery](https://pkg.so/de/brew/sourcery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [mockolo](https://pkg.so/de/brew/mockolo/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [rswift](https://pkg.so/de/brew/rswift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [protoc-gen-go-grpc](https://pkg.so/de/brew/protoc-gen-go-grpc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf.
- [mogenerator](https://pkg.so/de/brew/mogenerator/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [kaitai-struct-compiler](https://pkg.so/de/brew/kaitai-struct-compiler/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, serialization.
- [protoc-gen-doc](https://pkg.so/de/brew/protoc-gen-doc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf.

## Combined YAML source

View the package source record on GitHub. [combined/swift-protobuf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/swift-protobuf.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
