# 使用 Homebrew Cask 安装 kotlin-native

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

## 安装

```sh
sudo av install cask:kotlin-native
```

其他安装命令:

### macOS

- Homebrew Cask (100%):

```sh
brew install --cask kotlin-native
```

  证据: local Homebrew cask metadata

## 软件包事实

- **软件包键:** cask:kotlin-native
- **软件包管理器:** Homebrew Cask
- **版本:** 2.4.10
- **来源摘要:** LLVM backend for Kotlin
- **主页:** <https://kotlinlang.org/docs/reference/native-overview.html>
- **最后更新:** 2026-07-14T10:52:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cinterop (二进制)
- generate-platform (二进制)
- klib (二进制)
- konan-lldb (二进制)
- konanc (二进制)
- kotlinc-native (二进制)
- run_konan (二进制)
- cinterop (别名)
- generate-platform (别名)
- klib (别名)
- konan-lldb (别名)
- konanc (别名)
- kotlinc-native (别名)
- run_konan (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Kotlin/Native is the Kotlin compiler backend and runtime path for producing native binaries without a virtual machine. It uses LLVM and a native Kotlin standard-library implementation, and it made Kotlin a practical language for iOS, desktop, command-line, embedded-style, and other non-JVM targets.

### 项目历史

JetBrains announced the first Kotlin/Native Technology Preview in April 2017 as 'Kotlin without a VM.' The technology preview compiled Kotlin directly to machine code and produced standalone executables, extending Kotlin beyond its early JVM and JavaScript focus.

Kotlin/Native became a central piece of Kotlin Multiplatform. Kotlin 1.3, released in October 2018, brought Kotlin/Native Beta and expanded multiplatform capabilities so that shared business logic could cover Android and iOS applications as well as server, web, and mobile clients.

The Kotlin 1.9.20 release in November 2023 continued the Kotlin/Native maturation story with native runtime work such as a custom memory allocator enabled by default and garbage-collector performance improvements, while Kotlin Multiplatform was declared stable in the same release cycle.

### 采用历史

Kotlin/Native adoption followed Kotlin Multiplatform adoption rather than standalone CLI usage alone. Mobile teams used it to share Kotlin code with iOS, while package managers such as Homebrew Cask exposed the command-line toolchain directly through executables including `konanc`, `kotlinc-native`, `cinterop`, and `klib`.

Its importance grew as Kotlin moved from a JVM-first language into a cross-platform language family. Kotlin 2.0 in May 2024 made the K2 compiler stable across JVM, Native, Wasm, and JS, reinforcing Native as a first-class target in the compiler architecture.

### 使用方式

The package provides native compilation and interop tools. Typical package-manager usage is installing the prebuilt toolchain, then using `kotlinc-native` or `konanc` to produce platform-native artifacts and `cinterop` or `klib` to work with native libraries and Kotlin/Native library packages.

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

Kotlin/Native is interesting to package nerds because it ships as a sizable prebuilt compiler runtime rather than a small formula-built utility. It also represents the point where a language package stops being just `kotlin` and splits into target-specific toolchains, artifacts, and compatibility surfaces.

### 时间线

- 2017-04: JetBrains announced the first Kotlin/Native Technology Preview.
- 2018-10: Kotlin 1.3 shipped with Kotlin/Native Beta.
- 2023-11: Kotlin 1.9.20 shipped major Kotlin/Native runtime improvements and stable Kotlin Multiplatform.
- 2024-05: Kotlin 2.0 shipped the stable K2 compiler across JVM, Native, Wasm, and JS.
- 2026-06-03: Kotlin 2.4.0 was released and supplied the Kotlin/Native source archive version used by this Homebrew Cask batch.

### Related projects

- Kotlin/Native is developed in the JetBrains Kotlin repository and is closely related to Kotlin Multiplatform, Kotlin/JS, Kotlin/Wasm, the K2 compiler, LLVM, Kotlin Gradle tooling, and iOS-oriented shared-code workflows.

### 来源

- <https://blog.jetbrains.com/kotlin/2017/04/kotlinnative-tech-preview-kotlin-without-a-vm/>
- <https://blog.jetbrains.com/kotlin/2018/10/kotlin-1-3/>
- <https://blog.jetbrains.com/kotlin/2023/11/kotlin-1-9-20-released/>
- <https://blog.jetbrains.com/kotlin/2024/05/celebrating-kotlin-2-0-fast-smart-and-multiplatform/>
- <https://kotlinlang.org/docs/native-overview.html>
- <https://kotlinlang.org/docs/releases.html>


## 安全说明

没有找到 kotlin-native 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - kotlin-native: normalized package name match | nixpkgs package indexes: kotlin-native from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Scoop - main/kotlin-native: normalized package name match | Scoop official bucket manifest trees: bucket/kotlin-native.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- zypper - klib - 1.0~git.20251221-1.2: installed executable or alias match | openSUSE Tumbleweed package metadata: klib from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C library with utility functions | https://github.com/attractivechaos/klib
- zypper - klib-devel - 1.0~git.20251221-1.2: installed executable or alias match | openSUSE Tumbleweed package metadata: klib-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for klib | https://github.com/attractivechaos/klib


## Combined YAML source

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


## 来源

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