# 使用 Homebrew, MacPorts, Nix 安装 xcbeautify

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

## 安装

```sh
sudo av install brew:xcbeautify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xcbeautify
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xcbeautify
```

  证据: MacPorts ports tree: devel/xcbeautify/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xcbeautify
```

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

## 软件包事实

- **软件包键:** brew:xcbeautify
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/xcbeautify>
- **版本:** 3.2.1
- **来源摘要:** Little beautifier tool for xcodebuild
- **主页:** <https://github.com/cpisciotta/xcbeautify>
- **仓库:** <https://github.com/cpisciotta/xcbeautify>
- **许可证:** MIT
- **源码归档:** <https://github.com/cpisciotta/xcbeautify/archive/refs/tags/3.2.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- xcbeautify (cli)
- xcbeautify (别名)

## macOS 提供的库

- libxml2

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.2.1
- 本地数据: OK
- 上游仓库: https://github.com/cpisciotta/xcbeautify
- 检测到的最新版本: 3.2.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

xcbeautify is a Swift command-line formatter for xcodebuild output. Its README presents it as a faster alternative to xcpretty, with colored human-readable output and support for modern Xcode, Swift Package Manager, and CI rendering workflows.

### 项目历史

The GitHub release history shows xcbeautify releases from 0.3.6 in December 2018 to the 3.x series in 2026. The project has remained focused on parsing and presenting Apple's verbose build and test output while tracking changes in Xcode behavior.

The README emphasizes being written in Swift and compiling to a static binary, reducing Ruby dependence in development and CI environments compared with xcpretty. Later features include JUnit report generation and dedicated renderers for GitHub Actions, TeamCity, and Azure DevOps Pipeline.

### 采用历史

xcbeautify's adoption is most visible in the iOS and macOS CI ecosystem. fastlane's xcodebuild formatter documentation says fastlane 2.201.0 and later can select an xcodebuild_formatter, defaults to xcbeautify when it is installed, and describes xcbeautify as the recommended formatter.

The same fastlane documentation explains the transition context: xcpretty had historically been tightly integrated with fastlane as a RubyGem dependency, while xcbeautify became preferred for new build-system output, parallel testing output, Swift Package Manager formatting, and speed.

### 使用方式

The basic usage is to pipe xcodebuild output into xcbeautify. The README also recommends `set -o pipefail` in CI so the pipeline preserves xcodebuild's exit status, and shows unbuffered/combined output for parallel or concurrent destination testing.

CI users can select specialized renderers, such as `--renderer github-actions`, so warnings, errors, and test results appear directly in the CI provider interface instead of only in raw logs.

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

xcbeautify is important in Apple-platform packaging because xcodebuild is unavoidable but noisy. It provides a small CLI layer that makes Xcode builds readable in terminal and CI logs without tying the workflow to Ruby.

Its role is also a good example of ecosystem succession: a Swift-native formatter increasingly replacing or supplementing xcpretty in places where Xcode's newer build and parallel-test output needed better handling.

### 时间线

- 2018: GitHub release history includes xcbeautify 0.3.6.
- 2022: fastlane 2.201.0 and later document xcodebuild_formatter support and default to xcbeautify when installed.
- 2023: 1.0.1 is published in the release stream.
- 2024: 2.0.1 is published in the release stream.
- 2026: 3.2.1 is released with fixes and additional CLI test coverage.

### Related projects

- xcbeautify is directly related to xcodebuild, Swift Package Manager, fastlane scan/gym/snapshot, and xcpretty.

### 来源

- <https://docs.fastlane.tools/best-practices/xcodebuild-formatters/>
- <https://github.com/cpisciotta/xcbeautify/releases>
- <https://github.com/xcpretty/xcpretty>
- <https://raw.githubusercontent.com/cpisciotta/xcbeautify/main/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals
- **审批门规则:** 2

## 源数据库详情

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

## 其他软件包管理器记录

- Nix - xcbeautify: normalized package name match | nixpkgs package indexes: pkgs/by-name/xc/xcbeautify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - xcbeautify: normalized package name match | MacPorts ports tree: devel/xcbeautify/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [xcodegen](https://pkg.so/zh-hans/brew/xcodegen/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [xclogparser](https://pkg.so/zh-hans/brew/xclogparser/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode, xcodebuild.
- [swiftformat](https://pkg.so/zh-hans/brew/swiftformat/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, swift.
- [periphery](https://pkg.so/zh-hans/brew/periphery/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [swift-format](https://pkg.so/zh-hans/brew/swift-format/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, swift.
- [xcode-build-server](https://pkg.so/zh-hans/brew/xcode-build-server/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [swift-outdated](https://pkg.so/zh-hans/brew/swift-outdated/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [unxip](https://pkg.so/zh-hans/brew/unxip/) - Shares pkgdb curated category or tags: cli, developer-tools, swift, xcode.
- [configen](https://pkg.so/zh-hans/brew/configen/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, swift, xcode.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- approval-gate seed metadata
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
