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' }
WX20190219-143215@2x.png
上一篇下一篇

猜你喜欢

热点阅读