Protobuf c 找不到protobuf头文件

Protobuf c 找不到protobuf头文件,protobuf-c,Protobuf C,我在ios应用程序中安装了Protobuf-C++程序,但构建失败,构建错误日志如下所示 - NOTE | [iOS] xcodebuild: Protobuf-C++/src/google/protobuf/io/zero_copy_stream.cc:35:10: fatal error: 'google/protobuf/io/zero_copy_stream.h' file not found - NOTE | [iOS] xcodebuild: Protobuf-C++/src

我在ios应用程序中安装了Protobuf-C++程序,但构建失败,构建错误日志如下所示

- NOTE  | [iOS] xcodebuild:  Protobuf-C++/src/google/protobuf/io/zero_copy_stream.cc:35:10: fatal error: 'google/protobuf/io/zero_copy_stream.h' file not found
- NOTE  | [iOS] xcodebuild:  Protobuf-C++/src/google/protobuf/wrappers.pb.cc:4:10: fatal error: 'google/protobuf/wrappers.pb.h' file not found
有人知道怎么解决这个问题吗?我的protobuf版本是3.11.3

可能找不到其他文件。 解决方法:

可能找不到其他文件。 解决方法:


这对我有用,非常感谢@罗马 我还检查了Protofbuf的podspec文件,它缺少此配置,但其他人有“xcconfig”: { “HEADER\u SEARCH\u path”:“$(PODS\u ROOT)/SQLCipher”, ...... }
这看起来和你的解决方案一样

它对我有效,非常感谢@罗马 我还检查了Protofbuf的podspec文件,它缺少此配置,但其他人有“xcconfig”: { “HEADER\u SEARCH\u path”:“$(PODS\u ROOT)/SQLCipher”, ...... }
这看起来和你的解决方案一样

它对我有效,非常感谢@Rome我还检查了Protofbuf的podspec文件,它错过了这个配置,但其他人做了“xcconfig”:{“HEADER\u SEARCH\u path”:“$(PODS\u ROOT)/SQLCipher”,…},这看起来和你的解决方案一样。它对我有效,非常感谢@Rome我还检查了Protofbuf的podspec文件,它缺少此配置,但其他人使用的是“xcconfig”:{“HEADER\u SEARCH\u path”:“$(PODS\u ROOT)/SQLCipher”,…},这与您的解决方案类似
'google/protobuf/any.h' file not found
'google/protobuf/arena_test_util.h' file not found
'google/protobuf/util/delimited_message_util.h' file not found
1. select 'Pods'
2. select 'Protobuf-C++'
3. select 'Build Settings'
4. search 'search path'
5. select 'Header Search Paths'
6. add '$(SRCROOT)/Protobuf-C++/src'