# Install swiftgen with Homebrew

Swift code generator for assets, storyboards, Localizable.strings, etc. Version 6.6.3 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:swiftgen
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install swiftgen
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:swiftgen
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/swiftgen>
- **Version:** 6.6.3
- **Source summary:** Swift code generator for assets, storyboards, Localizable.strings, etc.
- **Homepage:** <https://github.com/SwiftGen/SwiftGen>
- **Repository:** <https://github.com/SwiftGen/SwiftGen>
- **Upstream docs:** <https://github.com/SwiftGen/SwiftGen#readme>
- **License:** MIT
- **Source archive:** <https://github.com/SwiftGen/SwiftGen/archive/refs/tags/6.6.3.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- swiftgen (cli)
- swiftgen (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 6.6.3
- Local data: ok
- Upstream repository: https://github.com/SwiftGen/SwiftGen
- Upstream latest detected: 6.6.3 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

SwiftGen is a Swift code generator for project resources such as asset catalogs, localized strings, fonts, Interface Builder files, JSON, YAML, and plists. Its package-manager role is to make resource names type-safe and repeatable in iOS and Swift build pipelines.

### Project history

The SwiftGen repository was created in July 2015. Its README presents the project as a generator that removes stringly typed resource lookups by producing Swift constants and APIs from project files.

The project developed around a configuration-first workflow. The documented `swiftgen.yml` file describes parsers, inputs, templates, and outputs, which made SwiftGen easy to pin in repositories and run from Xcode build phases.

### Adoption history

Official installation documentation covers ZIP releases committed into a project, CocoaPods, Homebrew, Mint, and source builds. That set reflects a common Swift tooling pattern: either pin the binary inside the project or install it system-wide through a developer package manager.

The input package facts list Homebrew availability, and GitHub release metadata shows public releases at least as far back as the 0.5.x and 0.6.x series in 2016.

### How it is used

Common usage is `swiftgen config run` or simply `swiftgen` from a project root containing `swiftgen.yml`. Teams usually run it in an Xcode script phase so generated Swift files stay synchronized with assets and localization files.

SwiftGen is also used directly with parser subcommands when developing templates or testing one resource type, but the README recommends configuration-file usage for normal projects.

### Why package nerds care

SwiftGen is important to package-oriented Swift workflows because it turns app resources into generated source and therefore has to be versioned like a compiler-adjacent build tool. A different SwiftGen version can change generated APIs, so teams care about pinning and reproducible installation.

It also sits at the intersection of package managers and IDE builds: CocoaPods can install the binary beside dependencies, Homebrew can provide a system command, and checked-in release ZIPs can lock a project to one tool version.

### Timeline

- 2015: GitHub repository created.
- 2016: GitHub release metadata includes 0.5.x and 0.6.x releases.
- 2024: GitHub release metadata lists 6.6.3.

### Related projects

- Related Swift build tools include SwiftLint, SwiftFormat, Stencil templates, CocoaPods, Mint, and Xcode script build phases.

### Sources

- <https://api.github.com/repos/SwiftGen/SwiftGen>
- <https://github.com/SwiftGen/SwiftGen#readme>
- <https://github.com/SwiftGen/SwiftGen/blob/stable/Documentation/ConfigFile.md>
- input.source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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: swiftgen.yml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swiftgen
- **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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [objc-codegenutils](https://www.automicvault.com/pkg/brew/objc-codegenutils/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, ios, storyboards.
- [rswift](https://www.automicvault.com/pkg/brew/rswift/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, ios, swift.
- [configen](https://www.automicvault.com/pkg/brew/configen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, swift.
- [create-api](https://www.automicvault.com/pkg/brew/create-api/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, swift.
- [mockolo](https://www.automicvault.com/pkg/brew/mockolo/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, swift.
- [mogenerator](https://www.automicvault.com/pkg/brew/mogenerator/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, swift.
- [sourcery](https://www.automicvault.com/pkg/brew/sourcery/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, swift.
- [autogen](https://www.automicvault.com/pkg/brew/autogen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/swiftgen.yml](https://github.com/automic-vault/db/blob/main/combined/swiftgen.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
