# xcodegen を Homebrew, MacPorts, Nix でインストール

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

## インストール

```sh
sudo av install brew:xcodegen
```

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

### macOS

- Homebrew (100%):

```sh
brew install xcodegen
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xcodegen
```

  証拠: MacPorts ports tree: devel/xcodegen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xcodegen
```

  証拠: nixpkgs package indexes: pkgs/by-name/xc/xcodegen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:xcodegen
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/xcodegen>
- **バージョン:** 2.46.0
- **ソース概要:** Generate your Xcode project from a spec file and your folder structure
- **ホームページ:** <https://github.com/yonaskolb/XcodeGen>
- **リポジトリ:** <https://github.com/yonaskolb/XcodeGen>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/yonaskolb/XcodeGen/archive/refs/tags/2.46.0.tar.gz>
- **最終更新:** 2026-07-16T12:10:29Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- xcodegen (cli)
- xcodegen (エイリアス)

## macOS 提供ライブラリ

- swift

## インストール挙動

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

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.46.0
- マネージャ更新日: 2026-07-16
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/yonaskolb/XcodeGen
- 検出された最新: 2.46.0 (最新)
## プロジェクトの歴史と使われ方

XcodeGen is a Swift command-line project generator that turns a YAML or JSON project specification plus a source tree into an Xcode project. Its core appeal is making Xcode project structure reproducible, reviewable, and less prone to merge conflicts.

### プロジェクトの歴史

Yonas Kolb created the XcodeGen repository on 2017-07-19, and the first 0.1 release followed on 2017-07-28. The README has consistently positioned the tool around generating an Xcode project from a folder structure and project spec, with sensible defaults for common targets, schemes, configurations, build settings, and source references.

Across the 2.x series, XcodeGen became a maintained part of the Swift/Xcode automation ecosystem rather than a one-off generator. Its changelog shows ongoing adaptation to newer Xcode project formats, Swift Package Manager integration, local packages, visionOS/watchOS destinations, string catalogs, privacy manifests, and Xcode 16 synchronized folders.

### 採用の歴史

The repository's long-running contributor base and thousands of GitHub stars show broad adoption among iOS and macOS developers who prefer a text source of truth over hand-edited .xcodeproj files. Articles and community comparisons commonly place XcodeGen beside Tuist as one of the main answers to generated Xcode projects, with XcodeGen favoring declarative YAML or JSON configuration.

The project is also distributed through multiple developer package channels, including Homebrew, MacPorts, Nix, Mint, and Swift Package Manager. That spread matters because XcodeGen is often run on CI or developer bootstrap scripts before Xcode itself opens the generated project.

### 使われ方

Typical use starts with a project.yml or project.json file checked into the repository. Running xcodegen generate reads that spec, scans source directories, and writes an .xcodeproj. Teams may then omit generated project files from version control or regenerate them in CI to avoid pbxproj churn.

Advanced usage includes splitting specs into included files, sharing build setting groups, generating multiple schemes, defining multi-platform frameworks, using cache support to avoid unnecessary regeneration, and dumping the resolved spec for inspection or automation.

### パッケージ好きにとっての重要性

XcodeGen is package-nerd significant because it treats an opaque IDE project file as a generated artifact. That makes Xcode projects more like other language ecosystems where build configuration is text, diffable, and reproducible, while still targeting Apple's native .xcodeproj format.

### タイムライン

- 2017-07-19: Repository created on GitHub.
- 2017-07-28: 0.1 release published.
- 2024-06-03: 2.39.0 added support for artifact bundles, string catalogs, and visionOS defaults.
- 2025-07-17: 2.44.0 added basic support for Xcode 16 synchronized folders.
- 2026-04-14: 2.45.4 released with fixes for generated project path and synchronized folder behavior.

### Related projects

- Tuist is the most common point of comparison: both generate or manage Xcode projects, but Tuist centers more of the workflow in Swift manifests and a broader project automation platform, while XcodeGen stays close to YAML/JSON project specifications.
- XcodeGen depends conceptually on the same Xcode project-file automation niche as libraries such as XcodeProj, which parse and write pbxproj structures.

### ソース

- <https://github.com/yonaskolb/XcodeGen>
- <https://github.com/yonaskolb/XcodeGen/blob/master/CHANGELOG.md>
- <https://github.com/yonaskolb/XcodeGen/releases>
- <https://tuist.dev/blog/2025/02/25/project-generation>
- <https://yonaskolb.github.io/XcodeGen>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./project.yml, ./project.json
## ソースデータベース詳細

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

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

- Nix - xcodegen: normalized package name match | nixpkgs package indexes: pkgs/by-name/xc/xcodegen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - xcodegen: normalized package name match | MacPorts ports tree: devel/xcodegen/Portfile from https://api.github.com/repos/macports/macports-ports/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.
- [xcbeautify](https://pkg.so/ja/brew/xcbeautify/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [periphery](https://pkg.so/ja/brew/periphery/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [xcode-build-server](https://pkg.so/ja/brew/xcode-build-server/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [vapor](https://pkg.so/ja/brew/vapor/) - Shares pkgdb curated category or tags: cli, developer-tools, project-generator, swift.
- [swift-outdated](https://pkg.so/ja/brew/swift-outdated/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [unxip](https://pkg.so/ja/brew/unxip/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [xcp](https://pkg.so/ja/brew/xcp/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [configen](https://pkg.so/ja/brew/configen/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [cookiecutter](https://pkg.so/ja/brew/cookiecutter/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, generator, project.
- [kickstart](https://pkg.so/ja/brew/kickstart/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, generator, project.

## Combined YAML source

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


## ソース

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