Iphone iOS 5、Xcode 4.2和ProtoBuf

Iphone iOS 5、Xcode 4.2和ProtoBuf,iphone,ios,xcode,xcode4.2,protocol-buffers,Iphone,Ios,Xcode,Xcode4.2,Protocol Buffers,我正在尝试编译GoogleProtobuf协议,以便在我的iOS5项目中使用它,但还没有成功。。。我只找到一篇关于这个话题的博客文章。但当我尝试此方法时,我收到错误: h-3.2# make make all-recursive Making all in . make[2]: Nothing to be done for `all-am’. Making all in src protoc -I. –cpp_out=. google/protobuf/unittest.proto google

我正在尝试编译GoogleProtobuf协议,以便在我的iOS5项目中使用它,但还没有成功。。。我只找到一篇关于这个话题的博客文章。但当我尝试此方法时,我收到错误:

h-3.2# make
make all-recursive
Making all in .
make[2]: Nothing to be done for `all-am’.
Making all in src
protoc -I. –cpp_out=. google/protobuf/unittest.proto google/protobuf/unittest_empty.proto google/protobuf/unittest_import.proto google/protobuf/unittest_mset.proto google/protobuf/unittest_optimize_for.proto google/protobuf/unittest_embed_optimize_for.proto google/protobuf/unittest_custom_options.proto google/protobuf/unittest_lite.proto google/protobuf/unittest_import_lite.proto google/protobuf/unittest_lite_imports_nonlite.proto google/protobuf/unittest_no_generic_services.proto google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
google/protobuf/unittest.proto:490:46: Expected number.
google/protobuf/unittest.proto:491:51: Expected number.
google/protobuf/unittest.proto:492:46: Expected number.
google/protobuf/unittest.proto:493:44: Expected number.
google/protobuf/unittest.proto:494:49: Expected number.
google/protobuf/unittest.proto:495:44: Expected number.
make[2]: *** [unittest_proto_middleman] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
我用protobuf处理过旧项目,但它是在xcode 3.x中创建的。 在xcode 4.2和armv7体系结构中,有没有一种方法或教程可以使用它?
我失去了两天的项目时间来研究这个问题,但仍然没有成功。。。我的项目截止日期很快就要到了,没有这个protobuf,我就没有机会继续了…

你试过使用吗?

给出了如何使用armv7、armv7s、i386体系结构为iOS编译protobuf库的说明。在博客帖子中还有一个链接,可以下载protobuf的预编译iOS库,该库在设备和模拟器上都能运行。

是的,我已经尝试了我找到的一切。。。但是在xcode 4.2和iOS 5上没有成功的protobuf。你在问题中发布的构建输出看起来像google的官方protobuf库。当您尝试使用Cyrus Najmabadi的objective c实现时发生了什么?