# 使用 Homebrew 安装 mtoc

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

## 安装

```sh
sudo av install brew:mtoc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mtoc
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:mtoc
- **软件包管理器:** Homebrew
- **版本:** 1035.1.102
- **来源摘要:** Mach-O to PE/COFF binary converter
- **主页:** <https://opensource.apple.com/>
- **仓库:** <https://github.com/apple-oss-distributions/cctools>
- **最后更新:** 2026-06-25T13:37:55+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mtoc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

mtoc is a narrow Apple/Darwin build tool: a Mach-O to PE/COFF binary converter built from Apple's open-source cctools distribution. Homebrew packages it from the apple-oss-distributions/cctools source archive, builds the mtoc Xcode scheme, installs the mtoc binary and man page, and marks it as conflicting with ocmtoc because both provide the same command name.

### 项目历史

Its main visible adoption path is firmware development on macOS. The TianoCore EDK II Xcode guide says Xcode supplies many development tools but not all tools needed for TianoCore, and names mtoc as the utility required to convert macOS Mach-O images to the PE/COFF form required by the UEFI specification. In that workflow, developers build EDK II firmware on macOS with Xcode and use mtoc as the format bridge between Apple's native object/executable format and UEFI's PE/COFF image expectations.

### 使用方式

As a package, mtoc is not a general binary-conversion suite like objconv and not the whole cctools collection. It is the small extract a Homebrew user installs when the build chain specifically asks for mtoc, most often through EDK II or related UEFI build instructions.

### 来源

- <https://formulae.brew.sh/formula/mtoc>
- <https://github.com/apple-oss-distributions/cctools>
- <https://github.com/tianocore/tianocore.github.io/wiki/xcode>
- <https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/m/mtoc.rb>


## 安全说明

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/mtoc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mtoc.yml)


## 来源

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