Sample project with Protocol Buffers for client/server in Swift
APIClient uses URLSession
with swift-protobuf
Web framework, Kitura provides HTTP server with swift-protobuf
Swift 3.1
Xcode 8.3
protoc 3.2
swift-protobuf 0.9.903
Kitura 1.3
Carthage 0.20
Follow this instruction to install protoc
Follow this instruction to install swift-protobuf
Run command below to generate swift files from proto files
$ make generate
Run command below to install libraries for Server/Client app
$ make setup
Run command below to run server app
$ make run-server
Open Client.xcodeproj
and simply run it.
https://developer.ibm.com/swift/2016/09/30/protocol-buffers-with-kitura/ https://github.com/KyoheiG3/ProtobufExample