swift-protobuf

Protocol buffer compiler plugin and runtime for Swift code generation

brewmacoslinux
Try with needOr install directly
Source

About

Plugin and runtime library for using protobuf with Swift

Commands

protoc-gen-swift

Examples

Generate Swift code from a .proto file$ protoc --swift_out=. myfile.proto
Generate Swift code with custom output directory$ protoc --swift_out=/path/to/output myfile.proto
Generate Swift code from multiple proto files$ protoc --swift_out=. file1.proto file2.proto file3.proto