码迷,mamicode.com
首页 > 移动开发 > 详细

iOS protocbuf安装使用

时间:2016-06-15 22:25:13      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:

protobuf文件地址:https://github.com/google/protobuf


1.问题/usr/local.bak/lib /usr/local.bak/man /usr/local.bak/share .git
解决:$ rm -r /usr/local/.git

2.安装HomeBrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Homebrew网址:http://brew.sh

3.安装automake autoconf

brew install automake
Which should also install autoconf and allow rvm to finish installing.

4.安装libtool
brew install libtool

5.生成protoc编译器
执行脚本:objectivec/DevTools/full_mac_build.sh

问题:
1.列出brew安装的软件
2.查看protobuf的版本


使用protoc编译器
/Users/gua/Downloads/protobuf-master/src/protoc socket.proto --objc_out=./

 

PS:使用brew安装protobuf

http://www.tuicool.com/articles/JVNVVn

iOS protocbuf安装使用

标签:

原文地址:http://www.cnblogs.com/wfwenchao/p/5588961.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!