# 使用 Homebrew 安装 xclogparser

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

## 安装

```sh
sudo av install brew:xclogparser
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xclogparser
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:xclogparser
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/xclogparser>
- **版本:** 0.2.49
- **来源摘要:** Tool to parse the SLF serialization format used by Xcode
- **主页:** <https://github.com/MobileNativeFoundation/XCLogParser>
- **仓库:** <https://github.com/MobileNativeFoundation/XCLogParser>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/MobileNativeFoundation/XCLogParser/archive/refs/tags/v0.2.49.tar.gz>
- **最后更新:** 2026-07-07T20:35:03Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- xclogparser (cli)
- xclogparser (别名)

## macOS 提供的库

- swift

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.49
- 管理器更新时间: 2026-07-07
- 本地数据: OK
- 上游仓库: https://github.com/MobileNativeFoundation/XCLogParser
- 检测到的最新版本: v0.2.49 (当前)
## 项目历史与用法

XCLogParser is a Swift command-line tool for parsing Xcode and `xcodebuild` logs stored as compressed `.xcactivitylog` files in Apple's SLF format. Its README presents it as a way to turn opaque build and test logs into JSON, HTML, Chrome trace, issue, and summary reports.

### 项目历史

The project came from Spotify's Apple-platform build tooling work and later moved under the Mobile Native Foundation organization. Its README points to Erick Camacho's AltConf 2019 talk about the `.xcactivitylog` format, and Spotify's later XCMetrics writing explains that XCLogParser was created to extract human-readable data from Xcode build logs.

XCLogParser's scope expanded from dumping raw logs to producing structured reports for build times, warnings, errors, unit-test results, Swift compiler timings, linker statistics, and Clang time-trace data. The GitHub releases page shows ongoing maintenance through v0.2.48 in June 2026, including parser updates for newer Xcode activity-log sections.

### 采用历史

The most visible downstream adoption is XCMetrics, Spotify's build-metrics system. Spotify and XCMetrics documentation state that XCMetrics is built on top of XCLogParser and has used it to collect large-scale build metrics across Spotify iOS applications, turning the parser from a standalone CLI into an engine for continuous developer-productivity measurement.

### 使用方式

Typical use is either `xclogparser dump` for raw JSON or `xclogparser parse` with a reporter such as `json`, `flatJson`, `summaryJson`, `chromeTracer`, `issues`, or `html`. The README documents locating logs by project, workspace, xcodeproj, explicit file, or DerivedData path.

The README also documents Xcode integration through a post-scheme build action, plus a caveat that since Xcode 11, command-line `xcodebuild` only generates `.xcactivitylog` build logs when `-resultBundlePath` is supplied. That detail is central to using the tool reliably in CI.

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

XCLogParser is significant because `.xcactivitylog` files are not pleasant text logs: they are gzipped binary SLF data in DerivedData. The tool gives package, CI, and build-performance nerds a stable way to mine Xcode's hidden build graph and timing data without depending on the Xcode UI.

### 时间线

- 2019: README points users to an AltConf 2019 talk about the Xcode activity-log format.
- 2020: Spotify introduces XCMetrics as a system built on top of XCLogParser for continuous build metrics.
- 2026-06-09: GitHub releases list v0.2.48 with parser updates for newer Xcode activity logs.

### Related projects

- XCMetrics is the major related project and uses XCLogParser as its log-parsing foundation.
- xcbeautify and similar xcodebuild log tools address console output readability, while XCLogParser focuses on `.xcactivitylog` and structured build telemetry.

### 来源

- <https://engineering.atspotify.com/introducing-xcmetrics-our-all-in-one-tool-for-tracking-xcode-build-metrics>
- <https://github.com/MobileNativeFoundation/XCLogParser#readme>
- <https://github.com/MobileNativeFoundation/XCLogParser/blob/master/docs/Xcactivitylog%20Format.md>
- <https://github.com/MobileNativeFoundation/XCLogParser/releases>
- <https://xcmetrics.io/docs/>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [xcbeautify](https://pkg.so/zh-hans/brew/xcbeautify/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode, xcodebuild.
- [cocoapods](https://pkg.so/zh-hans/brew/cocoapods/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode.
- [xcodegen](https://pkg.so/zh-hans/brew/xcodegen/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode.
- [xcresultparser](https://pkg.so/zh-hans/brew/xcresultparser/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode.
- [xctesthtmlreport](https://pkg.so/zh-hans/brew/xctesthtmlreport/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode.
- [xcodes](https://pkg.so/zh-hans/brew/xcodes/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode.
- [stern](https://pkg.so/zh-hans/brew/stern/) - Shares pkgdb curated category or tags: cli, developer-tools, logs.
- [periphery](https://pkg.so/zh-hans/brew/periphery/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode.
- [alp](https://pkg.so/zh-hans/brew/alp/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, logs.

## Combined YAML source

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


## 来源

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