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
You can verify the integrity of the archive using the PGP signature. This will download the signature, install the swift.org signatures into your keychain, and verify the signature.
13
+
14
14
```
15
-
tar zxf swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
tar -zxf swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
22
24
```
23
-
Swiftly will install itself and download the latest available Swift toolchain. Follow the prompts for any additional steps. Once everything is done you can begin using swift.
24
-
25
-
```
26
-
$ swift --version
27
-
28
-
29
-
Swift version 6.0.3 (swift-6.0.3-RELEASE)
30
-
...
31
25
26
+
Run the following command in your terminal, to configure swiftly for your account, and automatically download the latest swift toolchain.
32
27
33
-
$ swift build # Build with the latest (6.0.3) toolchain
34
28
```
35
-
36
-
You can install (and use) another release toolchain:
37
-
29
+
./swiftly init
38
30
```
39
-
$ swiftly install --use 5.10
40
31
32
+
Your current shell may need some additional steps to update your session. Follow the guidance at the end of the installation for a smooth install experience, such as sourcing the environment file, and rehashing your shell's PATH.
41
33
42
-
$ swift --version
34
+
There can be certain packages that need to be installed on your system so that the Swift toolchain can function. The swiftly initialization routine will show you how to install any missing packages.
43
35
36
+
Now that swiftly and swift are installed, you can access the `swift` command from the latest Swift release:
44
37
45
-
Swift version 5.10.1 (swift-5.10.1-RELEASE)
46
-
...
38
+
```
39
+
swift --version
40
+
--
41
+
Swift version {{ site.data.builds.swift_releases.last.name }} (swift-{{ site.data.builds.swift_releases.last.name }}-RELEASE)
42
+
Target: x86_64-unknown-linux-gnu
43
+
```
47
44
45
+
Or, you can install (and use) another swift release:
48
46
49
-
$ swift build # Build with the 5.10.1 toolchain
50
47
```
48
+
swiftly install --use 5.10
49
+
swift --version
50
+
--
51
+
Swift version 5.10 (swift-5.10-RELEASE)
52
+
Target: x86_64-unknown-linux-gnu
53
+
```
54
+
55
+
There's also an option to install the latest snapshot release and get access to the latest features:
51
56
52
-
Quickly test your package with the latest nightly snapshot to prepare for the next release:
53
57
```
54
-
$ swiftly install main-snapshot
55
-
$ swiftly run swift test +main-snapshot # Run "swift test" with the main-snapshot toolchain
56
-
$ swift build # Continue to build with my usual toolchain
58
+
swiftly install --use main-snapshot
57
59
```
58
60
59
-
Uninstall this toolchain after you’re finished with it:
61
+
Check for updates to swiftly and install them by running the self-update command:
60
62
61
63
```
62
-
$ swiftly uninstall main-snapshot
64
+
swiftly self-update
63
65
```
64
66
65
-
[Learn more about Swiftly](https://www.swift.org/swiftly/documentation/swiftlydocs)
67
+
You can discover more about swiftly in the [documentation](https://www.swift.org/swiftly/documentation/swiftlydocs/)
Run the following command in your terminal, to configure swiftly for your account, and automatically download the latest swift toolchain.
15
+
19
16
```
20
-
Swiftly will install itself and download the latest available Swift toolchain. Follow the prompts for any additional steps. Once everything is done you can begin using swift.
17
+
~/usr/local/bin/swiftly init
21
18
```
22
-
$ swift --version
23
19
20
+
<divclass="warning"markdown="1">
21
+
Depending on how you installed the package the swiftly binary can be in your home directory. You can run in from there like this: `~/swiftly init`
24
22
25
-
Swift version 6.0.3 (swift-6.0.3-RELEASE)
26
-
...
23
+
Your current shell may need some additional steps to update your session. Follow the guidance at the end of the installation for a smooth install experience, such as sourcing the environment file, and rehashing your shell's PATH.
24
+
</div>
27
25
26
+
Now that swiftly and swift are installed, you can access the `swift` command from the latest Swift release:
28
27
29
-
$ swift build # Build with the latest (6.0.3) toolchain
30
28
```
31
-
32
-
You can install (and use) another release toolchain:
29
+
swift --version
30
+
--
31
+
Apple Swift version {{ site.data.builds.swift_releases.last.name }} (swift-{{ site.data.builds.swift_releases.last.name }}-RELEASE)
32
+
Target: arm64-apple-macosx15.0
33
33
```
34
-
$ swiftly install --use 5.10
35
-
36
34
37
-
$ swift --version
35
+
Or, you can install (and use) another swift release:
38
36
39
-
40
-
Swift version 5.10.1 (swift-5.10.1-RELEASE)
41
-
...
42
-
43
-
44
-
$ swift build # Build with the 5.10.1 toolchain
45
37
```
38
+
swiftly install --use 5.10
39
+
swift --version
40
+
--
41
+
Apple Swift version 5.10 (swift-5.10-RELEASE)
42
+
Target: arm64-apple-macosx15.0
43
+
```
44
+
45
+
There's also an option to install the latest snapshot release and get access to the latest features:
46
46
47
-
Quickly test your package with the latest nightly snapshot to prepare for the next release:
48
47
```
49
-
$ swiftly install main-snapshot
50
-
$ swiftly run swift test +main-snapshot # Run "swift test" with the main-snapshot toolchain
51
-
$ swift build # Continue to build with my usual toolchain
48
+
swiftly install --use main-snapshot
52
49
```
53
50
54
-
Uninstall this toolchain after you’re finished with it:
51
+
Check for updates to swiftly and install them by running the self-update command:
52
+
55
53
```
56
-
$ swiftly uninstall main-snapshot
54
+
swiftly self-update
57
55
```
58
56
59
-
[Learn more about Swiftly](https://www.swift.org/swiftly/documentation/swiftlydocs)
57
+
You can discover more about swiftly in the [documentation](https://www.swift.org/swiftly/documentation/swiftlydocs/)
0 commit comments