One skeleton server for two OSes
Before implementing the server, we need to prepare a build environment for both OS X and Linux; also, let's prepare a HelloWorld
server, which handles a GET
and POST
request in a predefined URL.
An OS X skeleton server
The Swift open source version for OS X can be downloaded from https://swift.org/download/#latest-development-snapshots; however, because a new version is released every week, it could be too complicated to be aligned with the version.
Preparing the OS X environment
Fortunately, taking inspiration from projects in different languages, such as PyEnv for Python, Kyle Fuller released a useful version manager for Swift called Swift Version Manager, which can install and manage different versions of Swift ...
Get Swift 2 By Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.