# 使用 Homebrew 安装 xcdiff

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

## 安装

```sh
sudo av install brew:xcdiff
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xcdiff
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:xcdiff
- **软件包管理器:** Homebrew
- **版本:** 0.14.0
- **来源摘要:** Tool to diff xcodeproj files
- **主页:** <https://github.com/bloomberg/xcdiff>
- **仓库:** <https://github.com/bloomberg/xcdiff>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xcdiff (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

xcdiff is Bloomberg's Swift-based tool for comparing Xcode project files. Its README describes it as an extensible "git diff for .xcodeproj files", usable both as a command-line program and as a library for custom tools.

### 项目历史

The project appeared publicly in the Xcode project-generation era, when teams increasingly used tools such as XcodeGen and Tuist to generate .xcodeproj files rather than editing them entirely by hand. Swift Package Index records xcdiff's first public release, 0.2.0, on 22 October 2019, and the GitHub releases page shows continued maintenance through the 0.14.0 release in September 2025.

xcdiff builds on other Swift/Xcode infrastructure instead of parsing project files in isolation. The README credits Tuist's XcodeProj library and Swift Package Manager's utility library, which places xcdiff in the same small ecosystem of tools that inspect, generate, or normalize Xcode project metadata.

### 采用历史

The project is niche by design: it is aimed at teams that need to compare two generated or hand-maintained Xcode projects in a meaningful way. Swift Package Index lists xcdiff as an active package with one executable, two libraries, and roughly a thousand GitHub stars, indicating modest but real use among Swift and Apple-platform tooling users.

### 使用方式

The canonical workflow is to run `xcdiff` in a directory containing two .xcodeproj files, or to pass two project paths explicitly with `-p1` and `-p2`. The README's main use case is migration to project generation: compare a generated project against the original one and inspect differences in targets, sources, headers, and related project structure.

Beyond the CLI, xcdiff exposes XCDiffCore as a Swift Package Manager dependency. That makes it useful for package-nerd workflows where a team wants project-file comparison inside another migration, review, or CI tool rather than only as terminal output.

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

Xcode projects are serialized as large property-list-like graphs, so ordinary text diffs are noisy and often misleading. xcdiff matters in its niche because it treats the project file as structured data, which helps teams review generated-project changes without hand-reading unstable .pbxproj ordering and identifiers.

### 时间线

- 2019-10-22: Swift Package Index records xcdiff 0.2.0 as the first public release.
- 2021-01-22: xcdiff 0.6.0 adds additional comparators, including Swift Package and project attributes.
- 2025-09-08: GitHub releases list xcdiff 0.14.0 as a current release.

### Related projects

- XcodeGen and Tuist are named by the README as project-generation tools whose output can be checked with xcdiff.
- Tuist's XcodeProj library is credited by xcdiff and provides the underlying Xcode project modeling used in the wider Swift tooling ecosystem.

### 来源

- <https://github.com/bloomberg/xcdiff#readme>
- <https://github.com/bloomberg/xcdiff/releases>
- <https://swiftpackageindex.com/bloomberg/xcdiff>


## 安全说明

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


## 来源

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