# 使用 Homebrew 安装 swift-section

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swift-section
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:swift-section
- **软件包管理器:** Homebrew
- **版本:** 0.14.0
- **来源摘要:** CLI tool for parsing mach-o files to obtain Swift information
- **主页:** <https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection>
- **仓库:** <https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection>
- **最后更新:** 2026-07-26T12:33:35Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- swift-section (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.14.0
## 项目历史与用法

MachOSwiftSection is a Swift library and `swift-section` CLI for inspecting Swift metadata in Mach-O files, including dumping Swift sections and generating Swift interface-like output from binaries.

### 项目历史

The public repository was created in 2025. Its README states that the library was developed as an extension of MachOKit and focuses on parsing Swift information from Mach-O files, including types, protocols, conformances, runtime metadata inspection, and interface generation.

### 采用历史

The README documents installation through GitHub Releases, Homebrew, and source builds, placing the command-line tool in both release-artifact and package-manager workflows. Homebrew lists the formula as `swift-section` for macOS bottles.

### 使用方式

Users run `swift-section dump` to inspect Swift information in Mach-O files or dyld shared caches, and `swift-section interface` to generate Swift interface output. The README also documents SwiftPM library products such as MachOSwiftSection, SwiftInspection, SwiftDump, SwiftInterface, and TypeIndexing.

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

The package is relevant to Swift and macOS tooling specialists because it packages low-level Mach-O and Swift ABI inspection as both a SwiftPM library and a Homebrew-installable CLI. That combination makes binary reverse-engineering workflows scriptable and reproducible from the package manager.

### 时间线

- 2025: Public GitHub repository created.
- Current docs: README describes the project as an extension of MachOKit.
- Current docs: CLI installation documented through GitHub Releases, Homebrew, and source builds.

### Related projects

- The README names MachOKit as the base project and documents related products including SwiftInspection, SwiftDump, SwiftInterface, and TypeIndexing.

### 来源

- <https://api.github.com/repos/MxIris-Reverse-Engineering/MachOSwiftSection>
- <https://formulae.brew.sh/api/formula/swift-section.json>
- <https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection#readme>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
