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)
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' }
本文标题:ProtocolBuffer通过pod导入常见问题
本文链接:https://www.haomeiwen.com/subject/haaxyqtx.html
网友评论