-
-
Notifications
You must be signed in to change notification settings - Fork 159
[Swift 6]: Update installation instructions #840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,22 +1,43 @@ | ||||||||
# Installing Swift | ||||||||
|
||||||||
## macOS | ||||||||
|
||||||||
In order to use the Swift exercises, install Xcode version 10.0 or greater. | ||||||||
On the first launch of Xcode, install the command line tools when prompted. | ||||||||
|
||||||||
The current release version is available at the [Mac App Store][xcode]. | ||||||||
|
||||||||
Swift is available on macOS, Linux, and Windows. | ||||||||
The installation process varies depending on the operating system you are using. | ||||||||
Important to note with Linux support is that Swift is only (offically) supported on the following distributions: | ||||||||
- Ubuntu | ||||||||
- Debian | ||||||||
- RedHat | ||||||||
- Fedora | ||||||||
- Amazon Linux | ||||||||
|
||||||||
If you are using a different distribution of Linux, you will have to find a way to install Swift yourself. | ||||||||
|
||||||||
## Xcode (macOS) | ||||||||
|
||||||||
Swift is included with Xcode, Apple's IDE for macOS and iOS development. | ||||||||
For the exercism track you will need to have Xcode version 16.0 or greater installed. | ||||||||
Xcode is available for free on the [Mac App Store][xcode]. | ||||||||
Additional versions of Xcode (including the most recent beta) are available at [Apple's developer center][apple-developer-center]. | ||||||||
|
||||||||
## Linux & Windows | ||||||||
## macOS & Linux | ||||||||
|
||||||||
For macOS and Linux, there is a Swift installation manager called [swiftly][swiftly]. | ||||||||
It is a command line tool that allows you to install and manage multiple versions of Swift on your system. | ||||||||
The command to install swiftly on macOS can be found [here][swiftly-macos], and [bere][swiftly-linux] for linux. | ||||||||
|
||||||||
Other installation methods for macOS is [Homebrew][homebrew]. | ||||||||
As for Linux, you can install the Tarball from the official [Swift website][tarbell]. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typically you would use the OS package manager on Linux. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would be true, but the Swift package is quite hard to find. I use Arch and Ubuntu. It isn't in the Ubuntu packages and on arch it can only be found with an aur, and then it is a repackaged fedora binary. The easiest if you run on a supported platform which is listed, is just to use Swiftly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
The latest release is available on [Swift.org][swift-download]. | ||||||||
Swift.org installation [instructions][swift-installation-instructions]. | ||||||||
## Windows | ||||||||
|
||||||||
The recommended way to install Swift on Windows is to use the [WinGet installer][winget-windows]. | ||||||||
But it is also possible to install Swift using the Scoop package manager or doing a manual installation, for all the options available, check the [Install Swift for Windows][swift-windows] page. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
[xcode]: https://developer.apple.com/xcode/ | ||||||||
[apple-developer-center]: https://developer.apple.com/xcode/downloads/ | ||||||||
[swift-download]: https://swift.org/download/#releases | ||||||||
[swift-installation-instructions]: https://swift.org/getting-started/#installing-swift | ||||||||
[swiftly]: https://github.com/swiftlang/swiftly | ||||||||
[swiftly-macos]: https://www.swift.org/install/macos/swiftly/ | ||||||||
[swiftly-linux]: https://www.swift.org/install/linux/swiftly/ | ||||||||
[homebrew]: https://formulae.brew.sh/formula/swift#default | ||||||||
[tarbell]: https://www.swift.org/install/linux/ | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
[winget-windows]: https://www.swift.org/install/windows/winget/ | ||||||||
[swift-windows]: https://www.swift.org/install/windows/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.