# 使用 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
- **版本:** 3.2.1
- **来源摘要:** Little beautifier tool for xcodebuild
- **主页:** <https://github.com/cpisciotta/xcbeautify>
- **仓库:** <https://github.com/cpisciotta/xcbeautify>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xcbeautify (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
