1
- # Installation - Latest Release (Swift 6.0.3 )
1
+ # Installation - Latest Release (Swift 6.1 )
2
2
3
3
SwiftWasm provides [ Swift SDK] ( https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md ) s for WebAssembly.
4
4
@@ -8,25 +8,25 @@ Before installing the Swift SDK, you need to ensure the following:
8
8
- You cannot use toolchains bundled with Xcode to use the Swift SDK.
9
9
- If you are using macOS, please follow the [ official guide] ( https://www.swift.org/install/macos/package_installer/ ) to install the toolchain.
10
10
11
- Please ensure you have installed the Swift 6.0.3 Open Source toolchain.
11
+ Please ensure you have installed the Swift 6.1 Open Source toolchain.
12
12
13
13
``` sh
14
14
swift --version
15
15
```
16
16
17
17
| Toolchain | Output |
18
18
| -----------| --------|
19
- | ❌ Xcode | ` Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600 .0.30.1 ) ` |
20
- | ✅ Open Source (macOS) | ` Apple Swift version 6.0.3 (swift-6.0.3 -RELEASE) ` |
21
- | ✅ Open Source (Others) | ` Swift version 6.0.3 (swift-6.0.3 -RELEASE) ` |
19
+ | ❌ Xcode | ` Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700 .0.13.3 ) ` |
20
+ | ✅ Open Source (macOS) | ` Apple Swift version 6.1 (swift-6.1 -RELEASE) ` |
21
+ | ✅ Open Source (Others) | ` Swift version 6.1 (swift-6.1 -RELEASE) ` |
22
22
23
23
Once you have installed the Open Source toolchain, you can install the Swift SDK for WebAssembly:
24
24
25
25
``` bash
26
- swift sdk install " https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.0.3 -RELEASE/swift-wasm-6.0.3 -RELEASE-wasm32-unknown-wasi.artifactbundle.zip" --checksum " 31d3585b06dd92de390bacc18527801480163188cd7473f492956b5e213a8618 "
26
+ swift sdk install " https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.1 -RELEASE/swift-wasm-6.1 -RELEASE-wasm32-unknown-wasi.artifactbundle.zip" --checksum " 7550b4c77a55f4b637c376f5d192f297fe185607003a6212ad608276928db992 "
27
27
```
28
28
29
- After installing the Swift SDK, you can see ` 6.0.3 -RELEASE-wasm32-unknown-wasi ` in the Swift SDK list:
29
+ After installing the Swift SDK, you can see ` 6.1 -RELEASE-wasm32-unknown-wasi ` in the Swift SDK list:
30
30
31
31
``` bash
32
32
swift sdk list
@@ -74,12 +74,12 @@ $ swift --version | head -n1
74
74
75
75
| Toolchain | Output |
76
76
| -----------| --------|
77
- | Xcode | ` Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600 .0.30.1 ) ` |
78
- | Open Source (macOS) | ` Apple Swift version 6.0.3 (swift-6.0.3 -RELEASE) ` |
79
- | Open Source (Others) | ` Swift version 6.0.3 (swift-6.0.3 -RELEASE) ` |
77
+ | Xcode | ` Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700 .0.13.3 ) ` |
78
+ | Open Source (macOS) | ` Apple Swift version 6.1 (swift-6.1 -RELEASE) ` |
79
+ | Open Source (Others) | ` Swift version 6.1 (swift-6.1 -RELEASE) ` |
80
80
81
81
82
- ### ` <unknown>:0: error: module compiled with Swift 6.0.3 cannot be imported by the Swift x.y.z `
82
+ ### ` <unknown>:0: error: module compiled with Swift 6.1 cannot be imported by the Swift x.y.z `
83
83
84
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
85
0 commit comments