#!/bin/sh # The app's protobuf messages (#469), generated from the .proto files ipx serves them by # (crates/wire/proto) into Sources/Wire, which is committed: XcodeGen and Xcode build it as it is, # with no protoc in the build. Run again after a change to those files. Needs protoc and # protoc-gen-swift, the generator at the version of the SwiftProtobuf package in project.yml, which # refuses code from another: on a Mac `brew install protobuf swift-protobuf`, here /src/install.sh. set -eu cd "$(dirname "$0")/.." proto=../crates/wire/proto rm -f Sources/Wire/*.pb.swift protoc -I "$proto" --swift_out=Sources/Wire --swift_opt=Visibility=Internal "$proto/ipx.proto" "$proto/directory.proto" protoc-gen-swift --version