# Announcing Swift 6.4.2

**URL:** <https://forums.swift.org/t/announcing-swift-6-4-2/90337>\
**Category:** Announcements\
**Created:** [October 30, 2026, 2:49am UTC](https://forums.swift.org/t/announcing-swift-6-4-2/90337 "2026-10-30T02:49:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishal\_shah](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mishal_shah/32/247_2.png) [@mishal\_shah](https://forums.swift.org/u/mishal_shah)\
**Post date:** [October 30, 2026, 2:49am UTC](https://forums.swift.org/t/announcing-swift-6-4-2/90337/1 "2026-10-30T02:49:02Z")

</div>

# Announcing Swift 6.4.2

We are happy to announce the release of Swift 6.4.2.

### Install Swift Toolchain

- Install via Swiftly  
`swiftly install 6.4.2` or `swiftly install latest`
- Download toolchain directly from [Install Swift | Swift.org](https://www.swift.org/install)
- Docker images will be available on [hub.docker.com/_/swift_](http://hub.docker.com/%3C/i%3E/swift) soon ([PR](https://github.com/docker-library/official-images/pull/22628))
- Swift toolchain will be available on WinGet soon ([PR](https://github.com/microsoft/winget-pkgs/pull/465858))
- Xcode 27.2 contains Swift 6.4.2

## Release Notes

### Compiler and Optimizer

- Fixed a miscompile in optimized builds affecting statically initialized arrays of imported C structs with trailing padding. ([swift#91557](https://github.com/swiftlang/swift/pull/91557))
- Fixed a miscompile that caused a false exclusivity violation at runtime in some cases involving `deinit`. ([swift#91820](https://github.com/swiftlang/swift/pull/91820))
- Fixed a debug-build crash in some `async` functions with large SIMD parameters such as `SIMD3<Double>`. ([llvm-project#14048](https://github.com/swiftlang/llvm-project/pull/14048))
- Fixed a 6.4 regression with `@TaskLocal` when it is followed by another attribute. ([swift#93063](https://github.com/swiftlang/swift/pull/93063))
- Fixed a crash when loading precompiled Clang modules with a missing directory. ([llvm-project#14045](https://github.com/swiftlang/llvm-project/pull/14045))
- Fixed a compiler error for `distributed var` properties when exported symbol validation is enabled. ([swift#91640](https://github.com/swiftlang/swift/pull/91640))
- Fixed an ABI stability issue for protocol conformances of types annotated with `@_originallyDefinedIn` that are moved into their protocol's module. ([swift#92673](https://github.com/swiftlang/swift/pull/92673))

### Availability

- Computed properties with an init accessor and an initial value can no longer be marked unavailable. ([swift#91742](https://github.com/swiftlang/swift/pull/91742))
- Structs with unavailable init accessors no longer get a synthesized memberwise initializer. ([swift#91748](https://github.com/swiftlang/swift/pull/91748))
- Fixed a 6.4 regression in availability checking for code unavailable in app extensions. ([swift#91750](https://github.com/swiftlang/swift/pull/91750))
- `@_originallyDefinedIn` is now always printed in swiftinterfaces. ([swift#92065](https://github.com/swiftlang/swift/pull/92065))
- Fixed a name collision involving availability domain macros. ([llvm-project#13986](https://github.com/swiftlang/llvm-project/pull/13986))
- Fixed an issue where `-define-availability` could treat equal versions as different. ([llvm-project#13291](https://github.com/swiftlang/llvm-project/pull/13291))

### Standard Library

- Fixed `Array` and `ContiguousArray init(unsafeUninitializedCapacity:initializingWith:)` so that an invalid `initializedCount` now traps instead of causing undefined behavior. ([swift#91690](https://github.com/swiftlang/swift/pull/91690))

### Debugger

- LLDB expressions no longer fail when a variable that is not used by the expression is not available. ([llvm-project#13990](https://github.com/swiftlang/llvm-project/pull/13990))
- Fixed a debugger crash on type names that can't be demangled. ([llvm-project#14060](https://github.com/swiftlang/llvm-project/pull/14060))
- Fixed an LLDB hang when a REPL expression hits a breakpoint. ([llvm-project#14452](https://github.com/swiftlang/llvm-project/pull/14452))
- Fixed an out-of-bounds write when parsing `MultiMemRead` responses; invalid responses now produce an error. ([llvm-project#14374](https://github.com/swiftlang/llvm-project/pull/14374))
- Fixed LLDB reading unmapped memory when loading libraries from the dyld shared cache. ([llvm-project#14297](https://github.com/swiftlang/llvm-project/pull/14297))
- Fixed incorrect Wasm data segment names in LLDB when name entries are out of order. ([llvm-project#14389](https://github.com/swiftlang/llvm-project/pull/14389))
- Fixed stepping through "lazy library" stubs in binaries built for macOS 27 and later. ([llvm-project#14491](https://github.com/swiftlang/llvm-project/pull/14491))

### Swift Package Manager

- Fixed package traits that are conditionally enabled by other traits sometimes not being enabled. ([swift-package-manager#10579](https://github.com/swiftlang/swift-package-manager/pull/10579))
- SwiftPM now warns instead of failing when traits are enabled on a dependency that declares none. ([swift-package-manager#10584](https://github.com/swiftlang/swift-package-manager/pull/10584))
- Fixed packages from different registries sharing a download cache, so each registry's copy is now validated. ([swift-package-manager#10574](https://github.com/swiftlang/swift-package-manager/pull/10574))
- Improved performance when a package's target directories contain symlink cycles. ([swift-package-manager#10462](https://github.com/swiftlang/swift-package-manager/pull/10462))
- Fixed a 6.4 build error when two dynamic library products shared a static library product. ([swift-package-manager#10482](https://github.com/swiftlang/swift-package-manager/pull/10482))
- Fixed executables used as plugin dependencies not being built in non-cross-compiling builds with Swift Build. ([swift-package-manager#10452](https://github.com/swiftlang/swift-package-manager/pull/10452))
- `PackageDescription.Trait` is now `Sendable`, so you can declare `static` trait variables in an extension of it. ([swift-package-manager#10453](https://github.com/swiftlang/swift-package-manager/pull/10453))

### Swift Build

- Fixed a build error ("no library for this platform was found") when using multi-architecture XCFrameworks on Linux, and a case where the wrong architecture's slice could be chosen. ([swift-build#1587](https://github.com/swiftlang/swift-build/pull/1587))
- Fixed framework builds re-running InstallAPI unnecessarily during incremental builds. ([swift-build#1681](https://github.com/swiftlang/swift-build/pull/1681), [swift-build#1722](https://github.com/swiftlang/swift-build/pull/1722), [swift-build#1742](https://github.com/swiftlang/swift-build/pull/1742))
- Deduplicated `-add_ast_path` linker arguments, which could exceed the command-line length limit when linking many Swift libraries. ([swift-build#1683](https://github.com/swiftlang/swift-build/pull/1683))
- Fixed an issue where a dynamic package product could be incorrectly diagnosed as a missing dependency. ([swift-build#1808](https://github.com/swiftlang/swift-build/pull/1808))
- Improved build failure handling by skipping an unnecessary sandbox log scan for tasks that fail during setup. ([swift-build#1691](https://github.com/swiftlang/swift-build/pull/1691))
- Fixed a hang in Swift Build on Windows and Linux when a process failed to launch. ([swift-build#1830](https://github.com/swiftlang/swift-build/pull/1830))
- Testing frameworks are no longer embedded into build products when building for the appropriate deployment target. ([swift-build#1718](https://github.com/swiftlang/swift-build/pull/1718))
- Fixed codesign failures when building inside a cloud-synced directory on macOS 14 and later. ([swift-build#1731](https://github.com/swiftlang/swift-build/pull/1731))

### Foundation

- Added a missing lower-bounds check to `Data.resetBytes(in:)`. ([swift-foundation#2214](https://github.com/swiftlang/swift-foundation/pull/2214))
- Fixed `Data.write(to:options: .atomic)` failing with a permissions error on some Linux file systems. ([swift-foundation#2240](https://github.com/swiftlang/swift-foundation/pull/2240))
- `Date` comparisons with `<=` and `>=` now handle NaN correctly. ([swift-foundation#2230](https://github.com/swiftlang/swift-foundation/pull/2230))
- Fixed a crash in `XMLNode` when a node name has no prefix, found with newer versions of libxml2 on Windows. ([swift-corelibs-foundation#5546](https://github.com/swiftlang/swift-corelibs-foundation/pull/5546))

### Swift Testing

- Fixed incorrect event descriptions in Swift Testing's JSON output when a test runs multiple iterations. ([swift-testing#1935](https://github.com/swiftlang/swift-testing/pull/1935))

### Regex

- Fixed an incorrect regex representation when `RegexBuilder` merged literals across nested regexes. ([swift-experimental-string-processing#875](https://github.com/swiftlang/swift-experimental-string-processing/pull/875))

### Corelibs libdispatch

- Fixed a Linux crash in `_dispatch_event_loop_drain` for read sources on pipes. ([swift-corelibs-libdispatch#971](https://github.com/swiftlang/swift-corelibs-libdispatch/pull/971))
