Cocoapods导入protobuf后如何解决'protobuf/GPBProtocolBuffers_RuntimeSupport.h' file not found

1.导入protobuf时,注意在podfile文件中添加use_frameworks!即可!

2.如果pod install时有提示

    - Use the `$(inherited)` flag, or

    - Remove the build settings from the target.

按照黄字提示在

build setting——FRAMEWORK_SEARCH_PATHS 添加 $(inherited)即可

这样基本就可以解决protobuf头文件找不到的问题了

3.之后自行解决ARC的问题即可

posted @ 2021-04-08 14:11  jxst441192  阅读(794)  评论(0编辑  收藏  举报