Announcing Swift 6.4.1
We are happy to announce the release of Swift 6.4.1.
Install Swift Toolchain
- Install via Swiftly
swiftly install 6.4.1orswiftly install latest - Download toolchain directly from Install Swift | Swift.org
- Docker images will be available on hub.docker.com/_/swift soon (PR)
- Swift toolchain will be available on WinGet soon (PR)
Release Notes
Swift
- Compiler and Optimizer
- Fixed a SIL verification failure triggered by multiple [weak self] closures when compiling with -Osize and cross-module optimization. (swift#92707)
- Fixed a miscompile during alias analysis where writes to a local variable via a pointer (like MutableSpan) were dropped by the optimizer. (swift#92631)
- Fixed a release mode compiler failure caused by the LoopInvariantCodeMotion optimizer incorrectly moving assignment instructions. (swift#92506)
- Runtime and Backtracing
- Fixed DWARF parsing issues that caused the backtracer to crash on Linux when libc symbols were installed. (swift#92184)
Swift Package Manager
- Fixed an infinite loop in PubGrub dependency resolution when repairing a decision node. (swift-package-manager#10487)
- Fixed dependency resolution failures caused by incorrect handling of default package traits. (swift-package-manager#10577)
- An undeclared
PrivacyInfo.xcprivacyis now ignored when not targeting Apple platforms. (swift-package-manager#10580)
Swift Build
- Fixed autolink entries for Foundation when statically linking the standard library. (swift-build#1772)
Foundation
- Fixed
XMLNodename,stringValue, andprefixfor DTD and namespace nodes. (swift-corelibs-foundation#5545) URLSessionno longer sets an explicitConnection: keep-aliveheader. (swift-corelibs-foundation#5551)
Swift Testing
- Fixed test repetition policies to no longer treat warnings and known issues as test failures. (swift-testing#1924)
- Added support for non-finite floating-point values in exit test captures. (swift-testing#1842)
Windows
- Repaired the Android SDK layout in the installer and fixed the WiX
.wxsto conform to the early schema. (swift-installer-scripts#568, swift-installer-scripts#571)