<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j" -->

---
title: Module Tracking in Swift Debug Info | daily.dev
description: Swift 6.3 and the upcoming Swift 6.4 change how the Swift compiler and LLDB track module dependencies in debug info. Explicitly-built Swift modules now record...
canonical: https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Module Tracking in Swift Debug Info | daily.dev
og:description: Swift 6.3 and the upcoming Swift 6.4 change how the Swift compiler and LLDB track module dependencies in debug info. Explicitly-built Swift modules now record...
og:url: https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j
og:image: https://api.daily.dev/og/posts/2YffIrQ0j.png
og:image:alt: Module Tracking in Swift Debug Info
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# Module Tracking in Swift Debug Info

**[Swift.org](https://daily.dev/sources/swift)** · 10 min read · 0 upvotes · 0 comments

## Summary

Swift 6.3 and the upcoming Swift 6.4 change how the Swift compiler and LLDB track module dependencies in debug info. Explicitly-built Swift modules now record their Swift module dependencies (not just Clang), and a new -debug-module-path compiler option lets debug info store the exact path to a file's own module, replacing imprecise name-based lookups. This yields faster, more reliable debugging and smaller build products for most developers automatically. Teams with custom build systems (Bazel, Buck, CMake) can drop -modulewrap and -add_ast_path linker steps starting in Swift 6.4, though they may need to pass -debug-module-path directly if bypassing the Swift driver. dSYM bundles will no longer embed binary Swift modules, shrinking their size, while LLDB continues resolving variable types via reflection metadata (available since Swift 5.6). Swift 6.4 will also speed up bridging header imports in LLDB by using precompiled headers instead of recompiling from source.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://swift.org/blog/module-tracking-in-debug-info>

## Questions this post answers

### What replaces -modulewrap and -add_ast_path in Swift build systems starting with Swift 6.4?

The -debug-module-path compiler option replaces both -modulewrap and -add_ast_path starting in Swift 6.4. Third-party build systems doing explicit module builds can remove swiftc -modulewrap actions on Linux and Windows and drop the -add_ast_path linker option on Darwin, since module paths are now communicated via debug info instead.

_Teams maintaining custom Swift build pipelines can track compiler flag changes like this through daily.dev before their next upgrade._

### Why is LLDB expression evaluation for Swift unreliable when relying on module name lookups?

LLDB previously imported Swift modules by base name found in debug info, but the same name can refer to multiple modules, such as a private module with full declarations versus a public interface-only variant, or macOS versus Mac Catalyst copies. Starting in Swift 6.3, explicitly-built modules track their exact Swift dependencies, making imports precise and unambiguous instead of name-based.

_Developers debugging complex Swift codebases can follow module tracking changes like this on daily.dev._

### Do dSYM bundles still need binary Swift modules for debugging after Swift 6.4?

No, dsymutil will no longer process binary Swift modules once these changes land, since LLDB has been able to resolve local variable types via reflection metadata since Swift 5.6 rather than needing binary modules. Binary Swift modules remain necessary only for evaluating complex expressions like function calls or computed getters, and expression evaluation still works as long as LLDB can find the original binary modules.

_Anyone relying on dSYM bundles for production debugging can watch for changes like this via daily.dev._

## Similar posts on daily.dev

- [Swift 6.4 Released](https://daily.dev/posts/swift-6-4-released-tm86auvxn) · Swift.org · 3 upvotes · 0 comments
- [DWARF support for macOS and Linux by joelreymont · Pull Request \#14369 · ocaml/ocaml](https://daily.dev/posts/dwarf-support-for-macos-and-linux-by-joelreymont-pull-request-14369-ocaml-ocaml-xtpltcswt) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift), [#build-systems](https://daily.dev/tags/build-systems)

[View this post on daily.dev](https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Module Tracking in Swift Debug Info","url":"https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j"},"datePublished":"2026-09-11T19:30:06.970Z","dateModified":"2026-09-16T12:15:54.249Z","description":"Swift 6.3 and the upcoming Swift 6.4 change how the Swift compiler and LLDB track module dependencies in debug info. Explicitly-built Swift modules now record...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"Swift.org","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Swift.org","logo":"https://media.daily.dev/image/upload/s--x7Cjs0jz--/f_auto,q_auto/v1787487412/logos/swift?_a=BAMAMicg0","url":"https://daily.dev/sources/swift"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"swift,build-systems","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Swift.org","item":"https://daily.dev/sources/swift"},{"@type":"ListItem","position":3,"name":"Module Tracking in Swift Debug Info"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/module-tracking-in-swift-debug-info-2yffirq0j#faq","mainEntity":[{"@type":"Question","name":"What replaces -modulewrap and -add_ast_path in Swift build systems starting with Swift 6.4?","acceptedAnswer":{"@type":"Answer","text":"The -debug-module-path compiler option replaces both -modulewrap and -add_ast_path starting in Swift 6.4. Third-party build systems doing explicit module builds can remove swiftc -modulewrap actions on Linux and Windows and drop the -add_ast_path linker option on Darwin, since module paths are now communicated via debug info instead. Teams maintaining custom Swift build pipelines can track compiler flag changes like this through daily.dev before their next upgrade."}},{"@type":"Question","name":"Why is LLDB expression evaluation for Swift unreliable when relying on module name lookups?","acceptedAnswer":{"@type":"Answer","text":"LLDB previously imported Swift modules by base name found in debug info, but the same name can refer to multiple modules, such as a private module with full declarations versus a public interface-only variant, or macOS versus Mac Catalyst copies. Starting in Swift 6.3, explicitly-built modules track their exact Swift dependencies, making imports precise and unambiguous instead of name-based. Developers debugging complex Swift codebases can follow module tracking changes like this on daily.dev."}},{"@type":"Question","name":"Do dSYM bundles still need binary Swift modules for debugging after Swift 6.4?","acceptedAnswer":{"@type":"Answer","text":"No, dsymutil will no longer process binary Swift modules once these changes land, since LLDB has been able to resolve local variable types via reflection metadata since Swift 5.6 rather than needing binary modules. Binary Swift modules remain necessary only for evaluating complex expressions like function calls or computed getters, and expression evaluation still works as long as LLDB can find the original binary modules. Anyone relying on dSYM bundles for production debugging can watch for changes like this via daily.dev."}}]}
```

