swift-protobuf|swift-protobuf 环境配置

项目地址:https://github.com/apple/swift-protobuf
第一步

$ brew install swift-protobuf

第二步
进入.proto所在文件夹,执行
$ protoc --swift_out=. my.proto

其中 my.proto为你的文件名
第三步
【swift-protobuf|swift-protobuf 环境配置】导入SwiftProtobuf
pod 'SwiftProtobuf', '~> 1.0'

    推荐阅读