Loading…

Bringing Swift to Arm SBC's

Downloads, Code Examples and More...
Start exploring

How To Install Swift

Swift Install packages are now available and hosted on packagecloud.io

The PackageCloud.io Swift-Arm Repo

How to use – sudo apt-get install<package name>
Example: To install swift3 = sudo apt-get install swift3
Example: To remove swift3 = sudo apt-get remove swift3
The repo will only make packages available that are compatible with your system.
This based on cpu architecture and the OS installed.
If you try to install a version that is not compatible you will get this error E: Unable to locate package


Swift Package Details on https://packagecloud.io/swift-arm/debian

To add repo:-
$ curl -s https://packagecloud.io/install/repositories/swift-arm/debian/script.deb.sh | sudo bash

Swift Armv6 Versions

Package = swift3-armv6 (This is a full version of Swift 3.1.1 including the Swift Package Manager)
Board = Armv6 e.g. RaspberryPi1, RaspberryPiZero, etc.
OS = Debian Stretch / Raspbian Stretch / Armbian Stretch / Other Debian Stretch based OS’s
Thanks to @uraimo for this build.
$ sudo apt-get install swift3-armv6

Swift Armv7 Versions

Package = swift3 (This is a full version of Swift 3.1.1 including the Swift Package Manager)
Board = Armv7 e.g. RaspberryPi2, RaspberryPi3, Asus TinkerBoard, Odroid, OrangePi, NanoPi etc.
OS = Debian Stretch / Raspbian Stretch / Armbian Stretch / Other Debian Stretch based OS’s
$ sudo apt-get install swift3

Package = swift-lite4 (This is a Swift 4.0.3 – No Swift Package Manager)
Board = Armv7 e.g. RaspberryPi2, RaspberryPi3, Asus TinkerBoard, Odroid, OrangePi, NanoPi etc.
OS = Debian Stretch / Raspbian Stretch / Armbian Stretch / Other Debian Stretch based OS’s
$ sudo apt-get install swift-lite4

Swift Arm64/aarch64 Versions

Note Needs 64bit OS
Package = swift4 (This is a full version of Swift 4.1 including the Swift Package Manager)
Board = Arm64/aarch64 e.g. Rock64, RaspberryPi3.
OS = Debian Stretch / Ubuntu Xenial / Other Debian Stretch based 64bit OS’s
$ sudo apt-get install swift4


Swift Package Details on https://packagecloud.io/swift-arm/test

To add repo:-
curl -s https://packagecloud.io/install/repositories/swift-arm/test/script.deb.sh | sudo bash

Swift Armv7 Versions

Package = swift4-chnmrc-dev (This is a full version of Swift 4.1 including the Swift Package Manager)
Board = Armv7 e.g. RaspberryPi3, Asus TinkerBoard, Odroid, OrangePi, NanoPi etc.
OS = Ubuntu Xenial 16.04
Thanks to @chnmrc for this build.
$ sudo apt-get install swift4-chnmrc-dev