ProtocolBuffer通过pod导入常见问题
2019-02-19 本文已影响44人
我的大好时光
1、找不到头文件问题
https://github.com/protocolbuffers/protobuf/issues/1457
通过配置s.pod_target_xcconfig,来更改GCC_PREPROCESSOR_DEFINITIONS的值
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
![](https://img.haomeiwen.com/i1873955/e41967d2dbaae853.png)