
Then you’ll take stock of the new bits offered by Apple, and finish off with a look into into the misty crystal ball of time, and guess what this all means for the future. In this tutorial, you’ll set up a Linux environment on your Mac, install Swift, and compile and run some basic Swift examples on Linux.

This creates exciting possibilities, such as running Swift on platforms from Linux servers right down to five-dollar Raspberry Pi Zeros, or in the kajillions of other environments that host Linux. Less than a week ago, the Swift world woke up to an early Christmas present - open source Swift - that you can run on Linux!Īnd there was even a present inside the present: Apple announced new projects and tools intended to make Swift an incredibly practical choice for Linux development. As a result, some dates and version numbers in this tutorial have been updated from the time of the initial relase of Swift on Linux.

Note: This tutorial has been updated to work with the latest versions of Ubuntu 14.04 and the Swift 3.0 development snapshots as of April 20, 2016.
