使用xCode 5编译protobuf [英] Compile protobuf with xCode 5
问题描述
我想使用protobuf( https://code.google.com/p/protobuf/ )我的项目
I want to use protobuf(https://code.google.com/p/protobuf/) in my project
您是否使用xCode 5成功编译了protobuf,请帮助分享您的经验?
Did you successfully compile protobuf with xCode 5, Please help to share your experience?
谢谢。
推荐答案
如果您不介意构建Google然后使用Cocoapods的另一个好方法就是在这里运行bash脚本。
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
此脚本将生成适当版本的Google Protobuf,支持i386,armv7,armv7s,arm64和x86_64架构。它将生成一个通用的静态库。它还将生成用于OS X的protoc编译器。
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.
这篇关于使用xCode 5编译protobuf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!