ProtocolBuffer for Objective-C运行环境配置

1、检查是否含有Homebrew

$brew -v

2、如果不存在Homebrew,安装

$ruby -e "$(curl -fsSL

https://raw.githubusercontent.com/Homebrew/install/master/install)"

3、安装所需要的Protobuf编译器和工具

$brew install automakebrew install libtoolbrew install protobuf

4、(可选)为你的Protobuf编译器创建一个编译符.

ln -s/usr/local/Cellar/protobuf/2.6.1/bin/protoc /usr/local/bin

5、克隆这个存储库

$git clone

https://github.com/alexeyxo/protobuf-objc.git

6、构建它

$cdprotobuf-objc

$./scripts/build.sh

你可能感兴趣的:(ProtocolBuffer for Objective-C运行环境配置)