从 Swift 6.3 开始并于 Swift 6.4 中完成的更改,改进了 Swift 编译器在调试信息中跟踪显式构建的 Swift 模块的方式,使 LLDB 的表达式求值器能够找到并导入确切的模块及其依赖项,而不再依赖不精确的按名称查找和特殊的链接器步骤。这使得调试更快、更可靠,同时大幅缩减二进制文件和 dSYM 包的体积,这些文件将不再内嵌二进制 Swift 模块。使用 SwiftPM 或 Xcode 的开发者将自动受益,而维护自定义构建系统的开发者则可以移除现已弃用的 -modulewrap 操作和 -add_ast_path 链接器选项。
When your Swift program hits a breakpoint and stops so you can inspect it, the debugger’s expression evaluator has to find the exact Swift module your code was built from. Until now, that lookup wasn’t always precise. The upcoming Swift 6.4 release will include changes, begun in Swift 6.3, that address this by updating how the Swift compiler references explicitly-built Swift modules in debug info.
The majority of developers will automatically benefit from faster, more reliable debugging and smaller build products, without any modifications to their SwiftPM or Xcode projects.
For developers who maintain their own build systems using, for example, Bazel, Buck, or CMake, some adjustments may be necessary to take advantage of these changes.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要The November 2026 edition of "What's new in Swift" features a guest contribution from Dave Verwer announcing that CocoaPods will stop accepting new pods and pod versions on December 2, 2026, urging developers still using it to migrate to Swift Package Manager while noting existing pods will remain available in read-only form. The digest also rounds up community content, including talks on migrating C++ to Swift, building Android apps with Swift, and creating Minecraft mods, along with new package releases such as Swift Kafka Client 1.0.0, swift-ros2, and Perfect-NIO. It concludes with an overview of Swift Evolution proposals under active review or recently accepted, covering features like Unicode bidirectional class lookup, build configuration conditionals for dependencies, task identity, and SwiftPM compilation caching.
AI 摘要The Swift project participated in Google Summer of Code 2026, running three successfully completed projects pairing newcomers with mentors. The projects added DocC language features to SourceKit-LSP (such as go-to-definition and syntax highlighting for documentation), a high-performance task registry for tracking Swift Concurrency tasks to aid debugging, and qualified name lookup support in swift-syntax for tool developers. The article concludes by thanking the contributors and mentors, and directs readers to previous years' projects and future participation opportunities.
AI 摘要This September 2026 edition of 'What's new in Swift' celebrates the Vapor web framework's tenth anniversary with the first beta of Vapor 5, a complete rewrite adding full structured concurrency and dropping EventLoopFutures, and covers the release of Swift 6.4 with Swift Build as the new SwiftPM default, Subprocess 1.0, and up to 40x faster WebAssembly bridging. Community highlights include Google's official Cloud client libraries for Swift, a Swift-written kernel demo, Solbach Leads' migration of a production AI pipeline from Kotlin to Swift and Vapor, and new releases like WasmKit 0.4 and Swift AWS Lambda Runtime 3.0. The digest also rounds up Swift Evolution activity, including the under-review SE-0554 deployment target conditional compilation and recently accepted proposals such as SE-0546 same-file memberwise initializer extensions and SE-0540 default target settings.
AI 摘要Swift 6.4 is now available, with highlights including Swift Build as the default build system in Swift Package Manager, the Subprocess library reaching 1.0, and deeper interoperability with C++, Java, WebAssembly, and Android. The release simplifies everyday coding through features like optional some/any types without parentheses, the @diagnose attribute for controlling compiler warnings, and module selectors for resolving name conflicts, while performance work introduces non-copyable element arrays without copy-on-write overhead and the new Iterable protocol. Additional improvements span faster WebAssembly bridging (up to 40x), more robust debugging with precise module tracking, broader IDE support, and Embedded Swift gaining existential types and richer error handling for microcontroller targets.
AI 摘要This August 2026 edition of "What's new in Swift" features a guest post from Simon Leeb describing his Elementary and ElementaryUI projects, which aim to make Swift a first-class choice for the web through server-rendered HTML and a state-driven browser UI framework compiled to WebAssembly. The digest also rounds up videos on Swift memory safety, Windows support, and Embedded Swift on Raspberry Pi, community articles, new package releases such as SwiftTUI, lexic, and StructuredQueries, and several Swift Evolution proposals under review or recently accepted, covering topics like package registry search, non-copyable type deinits, and a TaskLocal test trait.