!此安装过程需要brew工具进行安装
如果你的Mac上没有安装brew,可以查看我上一篇文章进行安装
https://blog.csdn.net/wenge20/article/details/120233463?spm=1001.2014.3001.5502
1.安装protobuf: 在终端执行:brew install protobuf
2.安装protobuf依赖库:在终端执行:git clone https://github.com/alexeyxo/protobuf-objc.git
3.在终端执行:protoc --version查看当前安装的protobuf版本信息