Your Next Swift Target Is a Raspberry Pi

Title slide "Your Next Swift Target Is a Raspberry Pi" by Johannes Kinzig, with an evening garage scene: laptop with Swift code, Raspberry Pi, wallbox and electric car.
Title slide of my talk "Your Next Swift Target Is a Raspberry Pi" at a local developer meetup, December 2026. Image by the author, the background was generated with the help of AI image generation tools

In November 2026, I gave this talk at Main-Kinzig Nerds (MAIN-KINZIG), a local community and meetup bringing together tech enthusiasts, developers, and engineers from the Main-Kinzig region. It was a great setting to dig into a hands-on hardware-to-cloud project – one where a real-world EV charging solution met a language most people only associate with iPhones and Macs. The question I brought along was simple: can Swift run reliably on a Raspberry Pi that sits next to EV chargers and power meters, with no screen and nobody watching? Here’s what the talk covered.

Talk summary

Full-stack IoT usually means a technology zoo: Swift for iOS, Kotlin for Android, Java on the server, Python or C/C++ on the edge device. For SiincosCharge, an open-source EV charging solution for multi-unit buildings, a team of two couldn’t afford that. So we asked: what if Swift ran everywhere, including on the Raspberry Pi next to the chargers?

One language pays off for a small team: data models shared in a single Swift package, one mental model, and a compiler that catches errors before the customer does. With the Cyber Resilience Act, calibration law (Eichrecht) and ISO 15118-20 constantly reshaping the data model, changing it once beats refactoring it in three languages. And while AI can write any language, the people shipping the product still have to understand and review it.

The key lesson: rule out show-stoppers before writing product code. In a few evenings I verified the Swift toolchain on ARM64, signal handling, running as a systemd service, Modbus RTU over RS485 with modbus-swift, serial access without root, and MQTT with mqtt-nio.

The workflow stays in Xcode: develop and unit-test on the Mac, then a scheme post-action syncs the sources to the Pi, where swift build and swift test run against real hardware. No cross-compiling, no Docker. A fake gpioget script stands in for the GPIOs the Mac lacks.

What makes it a production edge service: clean SIGINT/SIGTERM handling, a hardened systemd unit with its own user and minimal capabilities, a read-only OverlayFS root, nightly reboots and status reports via MQTT.

My conclusion: if you’re a small team that already knows Swift and your edge device runs a full Linux, try it. Just don’t expect every library to exist, Foundation to behave exactly as on macOS, or the Pi to compile fast.

A typical IoT system architecture
A typical IoT system architecture
My talk compares a typical IoT system architecture……to a Swift on edge device architecture.