Read Swift on Raspberry Pi Workshop
Read Swift on Raspberry Pi Workshop: Part 1, from which I learned about Swish, script for remote building your Swift projects on a Linux machine. Unfortunately, is not updated since 2016. Anyway, I didn’t get how to use it without Xcode, only with Swift package manager. Probably, I need this tool Builder.