Running swift build or repl on a package that imports Foundation from Swift 6 downloaded toolchain will crash #76546
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Installing the Swift 6.0 toolchain from https://www.swift.org/download/ on an ARM macOS 15 host with Xcode 16 installed attempting to build a package that uses Foundation will crash (see "Reproduction" for full output).
Also, running
swift repl
, attempting toimport Foundation
will fail with many errors after 2 minutes. Some choice examples of the errors are:Running
import Foundation
a second time appears to work, and some types are available (like URLSession), but other types (likeURL
) are not.This sounds similar to #58658 and swiftlang/swift-package-manager#5467
Reproduction
To reproduce the repl error:
import Foundation
Expected behavior
swift repl
should work when running from the official toolchain.Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: