# 使用 Homebrew, Nix 安装 kdoctor

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

## 安装

```sh
sudo av install brew:kdoctor
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kdoctor
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kdoctor
```

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

## 软件包事实

- **软件包键:** brew:kdoctor
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/kdoctor>
- **版本:** 1.1.0
- **来源摘要:** Environment diagnostics for Kotlin Multiplatform Mobile app development
- **主页:** <https://github.com/kotlin/kdoctor>
- **仓库:** <https://github.com/kotlin/kdoctor>
- **上游文档:** <https://github.com/Kotlin/kdoctor#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/Kotlin/kdoctor/archive/refs/tags/v1.1.0.tar.gz>
- **最后更新:** 2026-06-22T14:03:52-07:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- kdoctor (cli)
- kdoctor (别名)

## 构建依赖

- gradle@8
- openjdk@21

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.1.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/Kotlin/kdoctor
- 检测到的最新版本: v1.1.0 (当前)
## 项目历史与用法

KDoctor is a Kotlin-team command-line diagnostic tool for checking whether a macOS development environment is ready for Kotlin Multiplatform Mobile work. It tests the surrounding toolchain rather than compiling Kotlin code itself: operating system, JDK, Android Studio, Xcode, CocoaPods, and related setup details.

### 项目历史

The GitHub repository was created on 2022-01-17 under the Kotlin organization, and its first public pre-release, v0.0.1, was published on 2022-02-04. The README presents it as a JetBrains incubator project and documents the simple `kdoctor` workflow for diagnosing a Kotlin Multiplatform Mobile environment.

The 2022-05-20 Kotlin Multiplatform Mobile beta roadmap update singled out KDoctor as a tool for improving onboarding. Its release history moved from the 0.0.x series in 2022 to v1.0.0 on 2023-03-15, with v1.0.0 adding project-analysis diagnostics and team-id reporting.

### 采用历史

KDoctor's adoption is tied to Kotlin Multiplatform Mobile onboarding: it is used by developers and support channels to quickly identify missing or mismatched macOS, Android, Xcode, Java, or CocoaPods setup. Homebrew packaging made it convenient for macOS developers to install as a standalone diagnostic command.

### 使用方式

The normal workflow is to run `kdoctor` in a terminal and review its report before building or debugging a Kotlin Multiplatform Mobile project. Later releases added more specific diagnostics, including analysis of Gradle project configuration via command-line options.

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

KDoctor is notable as a single-purpose ecosystem health check: it turns a traditionally fragile mobile cross-toolchain setup into one small package-manager-installable command. For package nerds, it is the kind of glue CLI that captures the real state of an SDK stack better than a version number alone.

### 时间线

- 2022-01-17: GitHub repository created under the Kotlin organization.
- 2022-02-04: v0.0.1 pre-release published.
- 2022-05-20: JetBrains' Kotlin Multiplatform Mobile beta roadmap update highlighted KDoctor for onboarding.
- 2023-03-15: v1.0.0 published with project-analysis diagnostics and team-id reporting.
- 2023-11-01: v1.1.0 published.

### Related projects

- KDoctor is adjacent to Kotlin Multiplatform, Kotlin Multiplatform Mobile, Android Studio, Xcode, CocoaPods, and Gradle. It is diagnostic glue around those projects rather than a replacement for any of them.

### 来源

- <https://api.github.com/repos/Kotlin/kdoctor>
- <https://blog.jetbrains.com/kotlin/2022/05/kotlin-multiplatform-mobile-beta-roadmap-update/>
- <https://github.com/Kotlin/kdoctor>
- <https://github.com/Kotlin/kdoctor/releases>


## 安全说明

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:** kdoctor
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - kdoctor: normalized package name match | nixpkgs package indexes: pkgs/by-name/kd/kdoctor/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk@21](https://www.automicvault.com/zh-hans/pkg/brew/openjdk-21/) - Build dependency declared by Homebrew.
- [ios-deploy](https://www.automicvault.com/zh-hans/pkg/brew/ios-deploy/) - Shares av.db curated category or tags: cli, developer-tools, mobile-development.
- [ios-sim](https://www.automicvault.com/zh-hans/pkg/brew/ios-sim/) - Shares av.db curated category or tags: cli, developer-tools, mobile-development.
- [ipapatch](https://www.automicvault.com/zh-hans/pkg/brew/ipapatch/) - Shares av.db curated category or tags: cli, developer-tools, mobile-development.
- [ipatool](https://www.automicvault.com/zh-hans/pkg/brew/ipatool/) - Shares av.db curated category or tags: cli, developer-tools, mobile-development.
- [react-native-cli](https://www.automicvault.com/zh-hans/pkg/brew/react-native-cli/) - Shares av.db curated category or tags: cli, developer-tools, mobile-development.
- [rswift](https://www.automicvault.com/zh-hans/pkg/brew/rswift/) - Shares av.db curated category or tags: cli, developer-tools, mobile-development.
- [skip](https://www.automicvault.com/zh-hans/pkg/brew/skip/) - Shares av.db curated category or tags: cli, developer-tools, mobile-development.
- [bacon-ls](https://www.automicvault.com/zh-hans/pkg/brew/bacon-ls/) - Shares av.db curated category or tags: cli, developer-tools, diagnostics.

## Combined YAML source

View the package source record on GitHub. [combined/kdoctor.yml](https://github.com/automic-vault/db/blob/main/combined/kdoctor.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
