Skip to content

Commit 9b4dc8a

Browse files
authored
Simplify toolchain installation in README.md (#21)
Toolchains on macOS can be installed with a CLI command.
1 parent d8baeef commit 9b4dc8a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ WebAssembly support in Swift is available for preview in latest Trunk Developmen
2323
the steps provided in ["How do I select the default version of Xcode"](https://developer.apple.com/library/archive/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-HOW_DO_I_SELECT_THE_DEFAULT_VERSION_OF_XCODE_TO_USE_FOR_MY_COMMAND_LINE_TOOLS_) section of
2424
["Building from the Command Line with Xcode FAQ"](https://developer.apple.com/library/archive/technotes/tn2339/_index.html).
2525
3. Download latest `main` development snapshot, you can use [`DEVELOPMENT-SNAPSHOT-2024-04-01-a`](https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2024-04-01-a/swift-DEVELOPMENT-SNAPSHOT-2024-04-01-a-osx.pkg) or a later version.
26-
4. Run the downloaded installer. Select "Install for me only" option during installation.
27-
5. Select the newly installed snapshot in terminal:
26+
4. Run the downloaded installer:
27+
28+
```sh
29+
installer -target CurrentUserHomeDirectory -pkg ~/Downloads/swift-DEVELOPMENT-SNAPSHOT-2024-04-01-a-osx.pkg
30+
```
31+
32+
5. Select the newly installed snapshot:
2833

2934
```sh
3035
export TOOLCHAINS=$(plutil -extract CFBundleIdentifier raw \

0 commit comments

Comments
 (0)