Search code examples
ios7xcode5llvm-clangprotocol-buffers

Compile protobuf with xCode 5


I want to use protobuf(https://code.google.com/p/protobuf/) in my project

Did you successfully compile protobuf with xCode 5, Please help to share your experience?

Thanks.


Solution

  • If you don't mind building Google Protobuf yourself then a good alternative to using Cocoapods is to run the bash script here.

    https://gist.github.com/BennettSmith/7150245

    This script will produce a proper build of Google Protobuf that supports the i386, armv7, armv7s, arm64 and x86_64 architectures. It will produce a static library that is universal. It will also produce the protoc compiler for use on OS X.