# Tutorial: Swift on Raspberry Pi - building natively and cross compilation

**URL:** <https://forums.swift.org/t/tutorial-swift-on-raspberry-pi-building-natively-and-cross-compilation/78355>\
**Category:** Community Showcase\
**Tags:** raspberrypi, cross-compilation\
**Created:** [March 7, 2025, 2:21pm UTC](https://forums.swift.org/t/tutorial-swift-on-raspberry-pi-building-natively-and-cross-compilation/78355 "2025-03-07T14:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![natanrolnik](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/natanrolnik/32/6496_2.png) [@natanrolnik](https://forums.swift.org/u/natanrolnik)\
**Post date:** [March 7, 2025, 2:21pm UTC](https://forums.swift.org/t/tutorial-swift-on-raspberry-pi-building-natively-and-cross-compilation/78355/1 "2025-03-07T14:21:44Z")

</div>

Hello everyone 👋🏻

I’ve published today [an article about getting Swift files and applications running on a Raspberry Pi](https://swifttoolkit.dev/posts/r-pi).

It covers setting up a raspberry pi and access to it, installing Swift via Swiftly, building and running locally, and a subject I was excited about: cross compilation on a Mac to Linux.

Please let me know your thoughts. Huge thanks to @jessezamora for his help!

---

<div class="post-metadata">

**Author:** ![Diggory](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/diggory/32/4320_2.png) [@Diggory](https://forums.swift.org/u/Diggory)\
**Post date:** [March 7, 2025, 4:45pm UTC](https://forums.swift.org/t/tutorial-swift-on-raspberry-pi-building-natively-and-cross-compilation/78355/2 "2025-03-07T16:45:51Z")

</div>

This is great. Thanks very much.  
One small typo. In para 2

> “some tips on hot to setup”

---

<div class="post-metadata">

**Author:** ![natanrolnik](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/natanrolnik/32/6496_2.png) [@natanrolnik](https://forums.swift.org/u/natanrolnik)\
**Post date:** [March 8, 2025, 4:26pm UTC](https://forums.swift.org/t/tutorial-swift-on-raspberry-pi-building-natively-and-cross-compilation/78355/3 "2025-03-08T16:26:28Z")

</div>

Thank you for the correction!
