This is a modified ARC enabled version of the Protocol Buffers in Objective C project. It is optimized for iOS5 and up. This version is updated for Protobuf 2.5.
Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. This project is based on an implementation of Protocol Buffers from Google. See the Google protobuf project for more information.
I use homebrew to install it, you must install homebrew first and use this commend.
brew tap superbil/protobuf
brew install protobuf-objc
This will install protobuf and protobuf-objc compiler, after that you can use this command to compiler you proto
file
protoc --objc_out objc Example.proto
Because you want Objctive-C classes, you use the --objc_out
option
This generates the following files in your specified destination directory (objc):
Example.pb.h
, the header which declares your generated classes.Example.pb.m
, which contains the implementation of your classes.
- David Bonnefoy
- Superbil
- Ragy Eleish ragy@regwez.com
- Jon Parise jon@booyah.com
- Cyrus Najmabadi (http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers)
- Sergey Martynov (http://github.com/martynovs/protobuf-objc)
- Kenton Varda, Sanjay Ghemawat, Jeff Dean, and others