Skip to content

Commit 69e0963

Browse files
Update setup.md for the latest Swift release (6.1)
1 parent ebd266e commit 69e0963

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/getting-started/setup.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Installation - Latest Release (Swift 6.0.3)
1+
# Installation - Latest Release (Swift 6.1)
22

33
SwiftWasm provides [Swift SDK](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md)s for WebAssembly.
44

@@ -8,25 +8,25 @@ Before installing the Swift SDK, you need to ensure the following:
88
- You cannot use toolchains bundled with Xcode to use the Swift SDK.
99
- If you are using macOS, please follow the [official guide](https://www.swift.org/install/macos/package_installer/) to install the toolchain.
1010

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

1313
```sh
1414
swift --version
1515
```
1616

1717
| Toolchain | Output |
1818
|-----------|--------|
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)` |
2222

2323
Once you have installed the Open Source toolchain, you can install the Swift SDK for WebAssembly:
2424

2525
```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"
2727
```
2828

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:
3030

3131
```bash
3232
swift sdk list
@@ -74,12 +74,12 @@ $ swift --version | head -n1
7474

7575
| Toolchain | Output |
7676
|-----------|--------|
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)` |
8080

8181

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`
8383

8484
This error occurs when the Swift toolchain version you are using is different from the version of the Swift SDK you have installed.
8585

0 commit comments

Comments
 (0)