美文网首页
ProtocolBuffer通过pod导入常见问题

ProtocolBuffer通过pod导入常见问题

作者: 我的大好时光 | 来源:发表于2019-02-19 14:24 被阅读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

    相关文章

      网友评论

          本文标题:ProtocolBuffer通过pod导入常见问题

          本文链接:https://www.haomeiwen.com/subject/haaxyqtx.html