Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running swift build or repl on a package that imports Foundation from Swift 6 downloaded toolchain will crash #76546

Open
marcprux opened this issue Sep 18, 2024 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@marcprux
Copy link

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).

% ~/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift run

Building for debugging...
error: emit-module command failed due to signal 6 (use -v to see invocation)
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/marc/Desktop/swift-demo/Sources/main.swift -target arm64-apple-macosx10.13 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -I /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules -I /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/testing -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -entry-point-function-name swift_demo_main -empty-abi-descriptor -plugin-path /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/host/plugins/testing -resource-dir /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/marc/Desktop/swift-demo -Xcc -isysroot -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -Xcc -F -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name swift_demo -package-name swift_demo -plugin-path /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 15.0 -target-sdk-name macosx15.0 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -emit-module-doc-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.swiftdoc -emit-module-source-info-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.swiftsourceinfo -emit-dependencies-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/swift_demo.build/swift_demo.emit-module.d -o /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.swiftmodule -emit-abi-descriptor-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.abi.json
1.	Apple Swift version 6.0 (swift-6.0-RELEASE)
2.	Compiling with the current language version
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for Darwin)
4.	While running pass #2548 SILModuleTransform "MandatorySILLinker".
5.	While deserializing SIL function "$s6Darwin14POSIXErrorCodeO8rawValueACSgs5Int32V_tcfC"
6.	*** DESERIALIZATION FAILURE ***
*** If any module named here was modified in the SDK, please delete the ***
*** new swiftmodule files from the SDK and keep only swiftinterfaces.   ***
module '_errno', builder version '6.0(6.0)/Apple Swift version 6.0 (swift-6.0-RELEASE)', built from swiftinterface, resilient, loaded from '/Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/ModuleCache/_errno-34Y7TTNVVGYEJ.swiftmodule'
SILFunction type mismatch for '$s6Darwin14POSIXErrorCodeO8rawValueACSgs5Int32V_tcfC': '$@convention(method) (Int32, @thin POSIXErrorCode.Type) -> Optional<POSIXErrorCode>' != '$@convention(method) (Int32, @thin POSIXErrorCode.Type) -> Optional<POSIXErrorCode>'

Also, running swift repl, attempting to import Foundation will fail with many errors after 2 minutes. Some choice examples of the errors are:

objc[79208]: Class _TtCs25CheckedContinuationCanary is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x277303120) and /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x100461848). One of the two will be used. Which one is undefined.
arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug

Running import Foundation a second time appears to work, and some types are available (like URLSession), but other types (like URL) are not.

This sounds similar to #58658 and swiftlang/swift-package-manager#5467

Reproduction

zap Desktop/swift-demo % ~/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift package init --type=executable
Creating executable package: swift-demo
Creating Package.swift
Creating .gitignore
Creating Sources/
Creating Sources/main.swift

zap Desktop/swift-demo % ~/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift run
Building for debugging...
[8/8] Applying swift-demo
Build of product 'swift-demo' complete! (1.99s)
Hello, world!

zap Desktop/swift-demo % echo 'import Foundation' >> Sources/main.swift 

zap Desktop/swift-demo % ~/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift run

Building for debugging...
error: emit-module command failed due to signal 6 (use -v to see invocation)
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/marc/Desktop/swift-demo/Sources/main.swift -target arm64-apple-macosx10.13 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -I /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules -I /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/testing -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -entry-point-function-name swift_demo_main -empty-abi-descriptor -plugin-path /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/host/plugins/testing -resource-dir /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/marc/Desktop/swift-demo -Xcc -isysroot -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -Xcc -F -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name swift_demo -package-name swift_demo -plugin-path /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 15.0 -target-sdk-name macosx15.0 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -emit-module-doc-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.swiftdoc -emit-module-source-info-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.swiftsourceinfo -emit-dependencies-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/swift_demo.build/swift_demo.emit-module.d -o /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.swiftmodule -emit-abi-descriptor-path /Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/Modules/swift_demo.abi.json
1.	Apple Swift version 6.0 (swift-6.0-RELEASE)
2.	Compiling with the current language version
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for Darwin)
4.	While running pass #2548 SILModuleTransform "MandatorySILLinker".
5.	While deserializing SIL function "$s6Darwin14POSIXErrorCodeO8rawValueACSgs5Int32V_tcfC"
6.	*** DESERIALIZATION FAILURE ***
*** If any module named here was modified in the SDK, please delete the ***
*** new swiftmodule files from the SDK and keep only swiftinterfaces.   ***
module '_errno', builder version '6.0(6.0)/Apple Swift version 6.0 (swift-6.0-RELEASE)', built from swiftinterface, resilient, loaded from '/Users/marc/Desktop/swift-demo/.build/arm64-apple-macosx/debug/ModuleCache/_errno-34Y7TTNVVGYEJ.swiftmodule'
SILFunction type mismatch for '$s6Darwin14POSIXErrorCodeO8rawValueACSgs5Int32V_tcfC': '$@convention(method) (Int32, @thin POSIXErrorCode.Type) -> Optional<POSIXErrorCode>' != '$@convention(method) (Int32, @thin POSIXErrorCode.Type) -> Optional<POSIXErrorCode>'


Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000109f05e28 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000109f045f4 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000109f06470 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x0000000187180184 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000018714af70 pthread_kill + 288
5  libsystem_c.dylib        0x0000000187057908 abort + 128
6  swift-frontend           0x00000001057c1adc swift::ModuleFileSharedCore::fatal(llvm::Error) const + 1224
7  swift-frontend           0x00000001057574dc swift::ModuleFile::getSourceLoc() const + 0
8  swift-frontend           0x000000010579ba44 swift::SILDeserializer::readSILFunctionChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILFunction*, llvm::StringRef, bool, bool) + 1896
9  swift-frontend           0x00000001057acbbc swift::SILDeserializer::lookupSILFunction(swift::SILFunction*, bool) + 184
10 swift-frontend           0x000000010584bbfc swift::SerializedSILLoader::lookupSILFunction(swift::SILFunction*, bool) + 148
11 swift-frontend           0x0000000105883d68 swift::SILLinkerVisitor::process() + 484
12 swift-frontend           0x0000000105883b54 swift::SILLinkerVisitor::processFunction(swift::SILFunction*) + 108
13 swift-frontend           0x00000001058ff43c swift::SILModule::linkFunction(swift::SILFunction*, swift::SILModule::LinkingMode) + 108
14 swift-frontend           0x000000010559b1e4 (anonymous namespace)::SILLinker::run() + 128
15 swift-frontend           0x000000010546181c swift::SILPassManager::runModulePass(unsigned int) + 856
16 swift-frontend           0x0000000105463bc0 swift::SILPassManager::execute() + 624
17 swift-frontend           0x000000010545e5ac swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 72
18 swift-frontend           0x000000010545e52c swift::ExecuteSILPipelineRequest::evaluate(swift::Evaluator&, swift::SILPipelineExecutionDescriptor) const + 68
19 swift-frontend           0x0000000105499934 swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 28
20 swift-frontend           0x0000000105479e90 swift::ExecuteSILPipelineRequest::OutputType swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()>(swift::ExecuteSILPipelineRequest const&, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()) + 204
21 swift-frontend           0x000000010545e788 swift::executePassPipelinePlan(swift::SILModule*, swift::SILPassPipelinePlan const&, bool, swift::irgen::IRGenModule*) + 64
22 swift-frontend           0x000000010547c358 swift::runSILDiagnosticPasses(swift::SILModule&) + 192
23 swift-frontend           0x0000000104c9aff4 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 80
24 swift-frontend           0x0000000104ca6118 swift::ExplicitModuleInterfaceBuilder::buildSwiftModuleFromInterface(llvm::StringRef, llvm::StringRef, bool, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>*, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, llvm::StringRef) + 2372
25 swift-frontend           0x0000000104ca774c std::__1::error_code llvm::function_ref<std::__1::error_code (swift::SubCompilerInstanceInfo&)>::callback_fn<swift::ImplicitModuleInterfaceBuilder::buildSwiftModuleInternal(llvm::StringRef, bool, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>*, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>)::$_3::operator()() const::'lambda'(swift::SubCompilerInstanceInfo&)>(long, swift::SubCompilerInstanceInfo&) + 208
26 swift-frontend           0x0000000104cb2760 swift::InterfaceSubContextDelegateImpl::runInSubCompilerInstance(llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef, swift::SourceLoc, bool, llvm::function_ref<std::__1::error_code (swift::SubCompilerInstanceInfo&)>) + 2372
27 swift-frontend           0x0000000104ca74e0 void llvm::function_ref<void ()>::callback_fn<swift::ImplicitModuleInterfaceBuilder::buildSwiftModuleInternal(llvm::StringRef, bool, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>*, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>)::$_3>(long) + 268
28 swift-frontend           0x0000000109e7c438 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 164
29 swift-frontend           0x0000000109e7c558 RunSafelyOnThread_Dispatch(void*) + 52
30 swift-frontend           0x0000000109e7c580 void* llvm::thread::ThreadProxy<std::__1::tuple<void (*)(void*), (anonymous namespace)::RunSafelyOnThreadInfo*>>(void*) + 24
31 libsystem_pthread.dylib  0x000000018714b2e4 _pthread_start + 136
32 libsystem_pthread.dylib  0x00000001871460fc thread_start + 8

To reproduce the repl error:

  1. Download and install https://download.swift.org/swift-6.0-release/xcode/swift-6.0-RELEASE/swift-6.0-RELEASE-osx.pkg for the current user
  2. Run ~/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift repl
  3. Enter import Foundation
  4. Observe the following errors:
zap homebrew-skip/Casks % ~/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swift repl
Welcome to Apple Swift version 6.0 (swift-6.0-RELEASE).
Type :help for assistance.
  1> import Foundation 
objc[76159]: Class _TtCs25CheckedContinuationCanary is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x277303120) and /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x100461848). One of the two will be used. Which one is undefined.
objc[76159]: Class _TtCs17DispatchQueueShim is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x2773031b8) and /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x1004618e0). One of the two will be used. Which one is undefined.
objc[76159]: Class _TtCs32_DefaultGlobalConcurrentExecutor is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x277303250) and /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x100461990). One of the two will be used. Which one is undefined.
objc[76159]: Class _TtCs9MainActor is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x2773032e8) and /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x100461a28). One of the two will be used. Which one is undefined.
error: error while processing module import: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Foundation.framework/Modules/Foundation.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import Darwin
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface:5:8: failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.24 clang-1600.0.25.1)', while this compiler is 'Apple Swift version 6.0 (swift-6.0-RELEASE)'). Please select a toolchain which matches the SDK.
import Combine
       ^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

…

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/swift/_errno.swiftmodule/arm64e-apple-macos.swiftinterface:2:1: fatal error encountered while reading from module '_errno'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^

error: /Users/marc/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/lib/swift/macosx/Darwin.swiftmodule/arm64-apple-macos.private.swiftinterface:2:1: failed to build module 'Darwin' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

Expected behavior

swift repl should work when running from the official toolchain.

Environment

% ~/Library/Developer/Toolchains/swift-6.0-RELEASE.xctoolchain/usr/bin/swiftc -version
Apple Swift version 6.0 (swift-6.0-RELEASE)
Target: arm64-apple-macosx15.0

% /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx15.0

Additional information

No response

@marcprux marcprux added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant