Server-side Swift notes
This is the result of a recent look into server-side Swift for my own personal use. This area is changing everyday, and with less than a month until WWDC, expect most of this to become incorrect in the future.
It all started with me researching the Amazon Alexa Skills SDK: apparently those are just calls to a previously defined Web Service with a predefined list of commands. And since I live outside the US testing Alexa is tricky, so I decided to try my idea with something similar: Slack’s slash commands.
I’ve heard that Swift on the server isn’t for serious projects so this was a perfect fit. With that in mind I followed Ben Snider’s tutorial (thank you) and quickly discovered that this wasn’t exactly the Swift I was used to.
The following is a list of caveats, problems or notes produced during this short project.
Managing Swift versions
The .swift-version
file contains the...