You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, create a new directory for your project and navigate into it:
@@ -79,6 +78,27 @@ $ swift --version | head -n1
79
78
| Open Source (macOS) |`Apple Swift version 6.0.3 (swift-6.0.3-RELEASE)`|
80
79
| Open Source (Others) |`Swift version 6.0.3 (swift-6.0.3-RELEASE)`|
81
80
81
+
82
+
### `<unknown>:0: error: module compiled with Swift 6.0.3 cannot be imported by the Swift x.y.z`
83
+
84
+
This error occurs when the Swift toolchain version you are using is different from the version of the Swift SDK you have installed.
85
+
86
+
To resolve this issue, you can either:
87
+
88
+
1. Switch the Swift toolchain to the same version as the Swift SDK you have installed. Check the [official guide](https://www.swift.org/install/macos/package_installer/) for how to switch the toolchain.
89
+
2. Install the Swift SDK for the same version as the Swift toolchain you are using.
90
+
Use the following shell snippet to query compatible Swift SDK for your current toolchain version:
0 commit comments