Automic VaultAutomic Vault

brew

使用 Homebrew 安装 swiftgen

查看 swiftgen 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install swiftgen

local Homebrew formula metadata

概览

软件包摘要

Swift code generator for assets, storyboards, Localizable.strings, etc.

命令和别名

  • swiftgen

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
swiftgen.yml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
swiftgencli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本6.6.3
管理器更新时间
本地数据OK
上游当前
检测到的最新版本6.6.3

https://github.com/SwiftGen/SwiftGen

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:swiftgen
版本6.6.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/swiftgen
主页https://github.com/SwiftGen/SwiftGen
仓库https://github.com/SwiftGen/SwiftGen
上游文档https://github.com/SwiftGen/SwiftGen#readme
许可证MIT
源码归档https://github.com/SwiftGen/SwiftGen/archive/refs/tags/6.6.3.tar.gz
Bottle可用 (于 arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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