Swift on Ubuntu
On 3 Des 2015, Apple launched Swift as open source. This is a good news, and now we can install Swift not only on Mac OS, but also on Linux.
The Linux implementation of Swift currently only runs on Ubuntu 14.04 or Ubuntu 15.10. For our application, I’ll be using Ubuntu 14.04.
1. Install required dependencies
Open your terminal and type this code :)
sudo apt-get install clang libicu-dev
2. Download the latest binary release above
You can download the latest binary from this link. This may take a couple minutes to download. While you’re waiting, it’s a good time to watch Funny Video
3. Import PGP Keys
If you are downloading Swift packages for the first time, import PGP key into your keyring
wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
Then we must verify the PGP signature. The .tar.gz archives for Linux are signed using GnuPG with one of the keys of the Swift open source project. Everyone is strongly encouraged to verify the signatures before using the software.First, refresh the keys to download new key revocation certificates, if any are available:
gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift
Then, use the signature file to verify that the archive is intact:
gpg --verify swift-<VERSION>-<PLATFORM>.tar.gz.sig
5. Extract the archive
tar xzf swift-<VERSION>-<PLATFORM>.tar.gz
then add the Swift toolchain to your path
export PATH=/path/to/Swift Folder/usr/bin:"${PATH}"
Check your swift running well or not
swift --version
if you see like this message, your installation is doing well.
Swift version 3.0-devYou have a trouble? Let me know in the comment













