-
环境搭建及编译
1.安装brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
执行这一步的时候可能会error443 connect报错,则用下面方法安装
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
2. 使用brew安装protoc
brew install protobuf
3.安装 automake

本文介绍了如何在Ruby环境中搭建Protobuf,包括使用brew安装protobuf和automake,以及将ProtoBuf协议文件编译为Objective-C文件的步骤。此外,还讲解了 Protobuf语法中的Required、Optional和Repeated字段的含义。
最低0.47元/天 解锁文章
704

被折叠的 条评论
为什么被折叠?



