美文网首页
ProtocolBuffer for Objective-C运行

ProtocolBuffer for Objective-C运行

作者: 猿二胖 | 来源:发表于2017-11-15 10:28 被阅读0次

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运行

      本文链接:https://www.haomeiwen.com/subject/jalcvxtx.html