Coder Social home page Coder Social logo

swiftonthepi2021's Introduction

Swift on the PI

Prepared for SwiftMiami meetup between Giannini Charles and Benjamin Law.

A lot of the knowledge was gleaned and adapted from the amazing Marc Aupont, iOS Engineer at Lickability!

His guides are here!

For now, here's a step-by-step on how you can setup a raspberry pi 4 to run using Swift code in April 2021!

Will update this as we work on the repo

Setting up Remote Build System

This allows you to remote into the raspberry pi and update the code using Xcode, the preferred IDE for iOS/ MacOS/ tvOS/ watchOS developers.

  • Setup passwordless SSH between your machine and the pi.

  • Install Xport to build your Swift project on a remote machine.

  • Install Xport on your machine:

  • I used Mint, install mint, then install Xport.

  • Launch Xcode, create a new project. build external build system.

  • Follow the lickablility directions I named mine RemotePiBuilder, and the SwiftPackage I named SwiftOnThePi.

  • Important: Change the Swift-tools-version in Package.swift to match the version of Swift your raspberry pi has installed, or you could have issues.

swiftonthepi2021's People

Contributors

gcharles-chwy avatar

Watchers

James Cloos avatar Nilson Nascimento avatar

Forkers

benjaminkylelaw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.