项目使用的protobuf。找到https://gist.github.com/BennettSmith/7150245这个脚本生成库。添加到项目中,头文件路径什么的也设置好了。可以在iPhone5c 上编译运行,但是在iPhone5S 上编译时,报库不支持设备架构的错误。使用 lipo -info命令看 libprotoc.a 结果为:Architectures in the fat file: libprotoc.a are: armv7 (cputype (12) cpusubtype (11)) i386 x86_64