ProtocolBuffer通过pod导入常见问题

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导入常见问题)