# swift-protobuf を Homebrew, Nix でインストール

swift-protobuf のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

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

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  証拠: 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

## パッケージ情報

- **パッケージキー:** brew:swift-protobuf
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/swift-protobuf>
- **バージョン:** 1.38.1
- **ソース概要:** Plugin and runtime library for using protobuf with Swift
- **ホームページ:** <https://github.com/apple/swift-protobuf>
- **リポジトリ:** <https://github.com/apple/swift-protobuf>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/apple/swift-protobuf.git>
- **最終更新:** 2026-06-23T19:48:06Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- protoc-gen-swift (cli)
- protoc-gen-swift (エイリアス)

## 依存関係

- protobuf

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.38.1
- マネージャ更新日: 2026-06-23
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/apple/swift-protobuf
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

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


## セキュリティノート

swift-protobuf に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。


## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- 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


## 関連リンク

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


## ソース

- 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
