Git Product home page Git Product logo

protobuf-objc's Introduction

Protocol Buffers, Objective C

An implementation of Protocol Buffers in Objective C.

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.

Cocoa Pods Support

In testing for Cocoa Pods. It's not been submitted to the central repo yet.

Plug 'n Play

  • added pre-compiled binaries for protoc and protoc-gen-obj
  • added universal binary
  • compiled with maverick

Add the ProtocolBuffers.framework to your project. The library will work for iOS Simulator and iOS 7.0 on iPhone 4,4s,5,5s.

To generate protocol buffers model, create a .proto file, in terminal navigate to the bin/protobuf/2.5.0/bin directory and run protoc --objc_out=./ <your_folder_with_.protofiles>.

Installation

  1. Install XCode and XCode command line tools
  2. Install brew
  3. brew install autogen
  4. brew install aclocal
  5. brew install automake
  6. brew install protobuf
  7. Download source or clone repository to local machine
  8. cd into root directory of project
  9. ./autogen.sh
  10. ./configure
  11. make -B -d & make install

Usage

cd /folder/with/.proto files/ && protoc --objc_out=/my/output/folder *

Troubleshooting

Issue installing Protobufs 2.5.0 in Mavericks. Comment out the iosfwd.

#ifdef __DECCXX
// HP C++'s iosfwd doesn't work.
#include <iostream>
#else
#include <sstream>
//#include <iosfwd> // comment out this for the sstream
#endif

File locations

/usr/local/bin 
  protoc (file or symlink)
  protoc-gen-objc (file or symlink)
/usr/local/include
  needs a symlink called "protobuf" to /usr/local/Cellar/protobuf/2.5.0/include
/usr/local/opt
  needs a symlink called "protobuf" to /usr/local/Cellar/protobuf/2.5.0

Credits

Booyah Inc.

Google Protocol Buffers, Objective C

Google Protocol Buffers

  • Kenton Varda, Sanjay Ghemawat, Jeff Dean, and others

protobuf-objc's People

Contributors

asarazan avatar jparise avatar puppybits avatar chapados avatar macdrevx avatar andrewlmurray avatar evanj avatar jhhsia avatar dicej avatar wader avatar michaelpetrov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.