Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Compiler-SDK Version Mismatch Error in Tokamak #555

@Designrpros

Description

@Designrpros

Describe the bug
Encountered a build failure due to a mismatch between the Swift compiler version and the SDK version. The error message indicates that the SDK is built with Apple Swift version 5.9, while the compiler is SwiftWasm Swift version 5.8.

Error Message:
/Package.swift:1:8: error: failed to build module 'Foundation'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.9 (swiftlang-5.9.0.123.203 clang-1500.0.37.1)', while this compiler is 'SwiftWasm Swift version 5.8 (swiftlang-5.8.0)'). Please select a toolchain which matches the SDK.
import Foundation
^

To Reproduce:
Steps to reproduce the behavior:

Set up a Tokamak project on macOS.
Use SwiftWasm version 5.8 and Apple Swift SDK version 5.9.
Attempt to build the project.
Encounter the above-mentioned error.
Expected Behavior:
Expected the project to build without version compatibility issues between the Swift compiler and the SDK.

Additional Context:
This issue seems to stem from a version mismatch between the SwiftWasm compiler and the Apple Swift SDK. It's unclear if this is an issue with the Tokamak setup or a broader compatibility issue with SwiftWasm and the latest Swift SDK.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions