# 使用 Homebrew 安装 xcdiff

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xcdiff
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:xcdiff
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/xcdiff>
- **版本:** 0.14.0
- **来源摘要:** Tool to diff xcodeproj files
- **主页:** <https://github.com/bloomberg/xcdiff>
- **仓库:** <https://github.com/bloomberg/xcdiff>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/bloomberg/xcdiff.git>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- xcdiff (cli)
- xcdiff (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.14.0
- 本地数据: OK
- 上游仓库: https://github.com/bloomberg/xcdiff
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** xcdiff
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, 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.
- [xcp](https://pkg.so/zh-hans/brew/xcp/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode, xcodeproj.
- [xcbeautify](https://pkg.so/zh-hans/brew/xcbeautify/) - Shares pkgdb curated category or tags: cli, developer-tools, xcode.
- [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.
- [xclogparser](https://pkg.so/zh-hans/brew/xclogparser/) - 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.
- [dyff](https://pkg.so/zh-hans/brew/dyff/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, diff, files.
- [kin](https://pkg.so/zh-hans/brew/kin/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, files, xcode.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
