# 使用 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
- **版本:** 1.1.0
- **来源摘要:** Environment diagnostics for Kotlin Multiplatform Mobile app development
- **主页:** <https://github.com/kotlin/kdoctor>
- **仓库:** <https://github.com/Kotlin/kdoctor>
- **最后更新:** 2026-06-22T14:03:52-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kdoctor (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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


## Combined YAML source

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


## 来源

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