This project builds Kitura project on iOS, to enable Kitura testing on iOS.
- Enable Server-Side Swift with Kitura - see http://www.kitura.io/en/starter/settingup.html
- Install Xcode Command Line Tools by running
xcode-select --install
command in the terminal - Run
make Builder/Makefile
- it will fetch theBuilder
submodule (and also theServerSide
submodule) - Create an iOS static library for
curl
package. Download curl zipped source from https://curl.haxx.se/download/, unzip it and runBuilder/buildCurlStaticLibrary.sh <path to the unzipped curl source directory>
. For example, if you unzip curl in the current directory, incurl-7.43.0
directory, runBuilder/buildCurlStaticLibrary.sh curl-7.43.0
.
We tested working with curl 7.43.0 version.
- Type
make
in the terminal - it will fetch the required submodules and fixServerSide/Kitura.xcodeproj
- Open
ServerSide/Kitura.xcodeproj
- Change the environment of Kitura target to be an iOS Simulator (Kitura tests do not run on iOS devices, a limitation from Apple)
- Switch to Tests Navigator and run the tests
Run make test