Module Tracking in Swift Debug Info
Swift 6.3 and 6.4 change how explicitly-built Swift modules are referenced in debug info so LLDB's expression evaluator can import the exact module for the code at a breakpoint instead of looking it up by base name. Binary Swift modules now record their Swift module dependencies, and a new -debug-module-path compiler option stores each object file's own module path in DWARF, honoring path remapping and compilation caching. As a result, -modulewrap on Linux/Windows and ld -add_ast_path on Darwin are no longer needed, dSYMs and binaries shrink because they no longer embed binary modules, and slow implicit-import fallbacks go away. SwiftPM and Xcode users get this automatically, while custom build systems (Bazel, Buck, CMake) that call the frontend directly must pass -debug-module-path. Swift 6.4 also lets LLDB import precompiled bridging headers.
Related posts
- Swift 6.3 Released
Swift.org mediumAdeptSwift 6.3 adds a `@c` attribute for exposing Swift functions and enums to C (or implementing C-declared functions in Swift via `@c @implementation`), `Module::name` selectors for disambiguating APIs from different imported modules, and library performance attributes `@specialize`, `@inline(always)` and `@export(implementation)`. SwiftPM gains a preview of the unified Swift Build engine, prebuilt swift-syntax for macro libraries and a `show-traits` command. Swift Testing adds warning-severity issues, test cancellation and image attachments, and DocC gains experimental Markdown output, static HTML content and code block annotations. The release also ships the first official Swift SDK for Android and further Embedded Swift improvements.
- What's new in Swift: September 2026 Edition
Swift.org easyNoviceSwift 6.4 shipped with Swift Build as the default SwiftPM build system, Subprocess 1.0, up to 40x faster WebAssembly bridging via JavaScriptKit, path-based module tracking in debug info (build systems should switch to `-debug-module-path`), and Embedded Swift improvements. Vapor turned ten and released the Vapor 5 beta, a rewrite built on structured concurrency and the new Swift HTTP Server that drops `EventLoopFuture`. Other items include Google Cloud client libraries for Swift, WasmKit 0.4 with a 2x faster interpreter, Swift AWS Lambda Runtime 3.0, and Evolution proposals such as `#if deploymentTargetAtLeast`, same-file memberwise initializer extensions, `resignRemoteID` for distributed actors, and default package settings.
- Swift 6.4 Released
Swift.org mediumAdeptSwift 6.4 makes Swift Build the default backend for SwiftPM, giving consistent builds across Linux, macOS and Windows, adds SBOM generation, and ships Subprocess 1.0 for cross-platform process execution on Swift concurrency. Language changes include async calls in defer blocks, task cancellation shields for guaranteed cleanup, module selectors (`::`) for resolving name conflicts, and a source-level `@diagnose` attribute for controlling warnings. Interop expands with C++20 `std::span` bridging to `Span`, `@c`/`@implementation` for C, and broader Swift/Java async support. JavaScriptKit Wasm bridging is up to 40x faster, Embedded Swift gains existential types, and new ownership-oriented types such as `UniqueArray`, `UniqueBox`, `Ref` and the `Iterable` protocol avoid copies and copy-on-write overhead while staying memory-safe.
- GSoC 2026 Showcase
Swift.org easyNoviceSwift's three Google Summer of Code 2026 projects all shipped. SourceKit-LSP now understands DocC, adding go-to-definition for symbol links, clickable preview links and Markdown highlighting in any LSP editor. The concurrency runtime gained an always-on task registry, sharded into 64 lists to avoid false sharing, that lldb and swift-inspect can query. In a 600,000-task stress test it added about 0.015s to a 0.37s run. swift-syntax's SwiftLexicalLookup module also gained qualified name lookup that resolves members through extensions and typealiases.
- Swift at Apple: Migrating the TrueType Hinting Interpreter
Swift.org mediumAdeptApple rewrote the TrueType font hinting bytecode interpreter from C to memory-safe Swift for its Fall 2025 OS releases. The new version renders pixel-identically and runs 13% faster on average. Correctness was checked with a unit suite at 99.7% coverage on both implementations and a fuzzer-minimized corpus of 4,200 PDFs containing 27 million glyphs, compared bitmap-for-bitmap against the C reference. Performance came from four changes: ~Copyable value types and Span to avoid ARC and exclusivity overhead, zero-copy projection types over the C structs instead of bridging copies that had cost ~20% of runtime, continuation-passing APIs to drop short-lived allocations, and inlining so generics get specialized. Only a few documented unsafe statements remain at the interop boundary, and the source has been published as a reference implementation.