Installation

RaspberryPi All Models

Swift-Lite v1.1 (Swift 3.0) and Helloworld Sample (Swift 3.0) Installation

Step 1 - Open a terminal window and connect to your device.

$ ssh pi@raspberrypi.local

Step 2 - update system

$ sudo apt-get update

Step 3 - Install dependancies

$ sudo apt-get install -y clang

Step 4 - Install Swift-Lite

$ wget https://s3-us-west-2.amazonaws.com/swiftpi.swiftlite.v1/swift-lite-3.0-raspberrypi-universal.tar.gz
$ sudo tar -xzpf swift-lite-3.0-raspberrypi-universal.tar.gz -C/

Step 5 - Install Samples (This will also create 2 new directories, swiftProjects and swiftModules)

$ wget https://s3-us-west-2.amazonaws.com/swiftpi.swiftlite.v1/helloworld3.tar.gz
$ tar -xzpf helloworld3.tar.gz

Step 6 - Cleanup

$ rm swift-lite-3.0-raspberrypi-universal.tar.gz helloworld3.tar.gz

Step 7 - Build Helloworld Sample

$ cd swiftProjects
$ swift-lite-build helloworld.swift

Step 8 - Test Run Swapp

$ ./helloworld.swapp