---
title: "Apple Internals: Swift in the Kernel"
url: https://daily.dev/posts/apple-internals-swift-in-the-kernel-iwp2wp6oq
source_url: https://blog.calif.io/p/apple-internals-swift-in-the-kernel
type: article
source: "Lobsters"
published: 2026-06-21T18:17:44.453Z
updated: 2026-08-24T07:04:27.160Z
tags: ["swift", "reverse-engineering", "kernel-development"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Apple Internals: Swift in the Kernel

**[Lobsters](https://daily.dev/sources/lobsters)** · 8 min read · 0 upvotes · 0 comments

## Summary

Apple has introduced a new framework called KernelKit in macOS 27 and iOS 27, representing the first steps toward writing kernel components in Swift. Through reverse engineering of the macOS 27 kernelcache, the author discovered an Embedded Swift runtime statically linked into the pthread kext under a new /System/KernelKit directory. Six new Mach-O platform IDs (25–30) were found in the Xcode 27 beta linker for per-OS KernelKit variants. The Embedded Swift runtime (~2.4 KB) includes real implementations of swift_retain, swift_release, swift_once, and swift_dynamicCast, verified via IDA disassembly. However, no other kernel component currently calls these Swift symbols — the runtime is loaded but idle. XNU's core (Mach, BSD, IOKit) remains entirely C/C++. The apparent rollout strategy is to ship the SDK and runtime first, verify stability across beta cycles, then begin landing actual Swift kernel components.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.calif.io/p/apple-internals-swift-in-the-kernel>

## Similar posts on daily.dev

- [Is Anyone Else Excited by Swift’s Progress as a Language? -- Fatbobman's Swift Weekly \#141](https://daily.dev/posts/is-anyone-else-excited-by-swift-s-progress-as-a-language----fatbobman-s-swift-weekly-141-8fi091hrq) · Fatbobman · 0 upvotes · 0 comments
- [SPI Joins Apple, and Swift Moves Toward Self-Hosting -- Fatbobman's Swift Weekly \#142](https://daily.dev/posts/spi-joins-apple-and-swift-moves-toward-self-hosting----fatbobman-s-swift-weekly-142-17xuqmtgh) · Fatbobman · 0 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift), [#reverse-engineering](https://daily.dev/tags/reverse-engineering), [#kernel-development](https://daily.dev/tags/kernel-development)

[View this post on daily.dev](https://daily.dev/posts/apple-internals-swift-in-the-kernel-iwp2wp6oq)
