Infinite result dump when creating a `ISO8601DateFormatter` in the REPL

When running

import Foundation
let formatter = ISO8601DateFormatter()


swift-driver version: 1.82.2 Apple Swift version 5.9 (swiftlang- clang-1500.0.27.1)
Target: x86_64-apple-macosx14.0

I get an infinite result dump loop, as shown here:

How can I work around it?

Looks macOS 14 related, can't reproduce this on macOS 13 (using the same swift version).

1 Like