bazel-ios / rules_ios

Bazel rules for building iOS applications and frameworks
Apache License 2.0
276 stars 84 forks source link

Error When C++ include in CustomModuleMap #857

Closed Detailscool closed 4 months ago

Detailscool commented 4 months ago

In rules_ios/tests/ios/frameworks/mixed-source, I try to make B.h public and I write #import “B.h” in CustomModuleMap.h, comes this error:

:1:9: note: in file included from :1: #import "Headers/CustomModuleMap.h" ^ /private/var/tmp/_bazel_henry/e11db709b1242b3b39803cbacd605f76/rules_xcodeproj.noindex/build_output_base/execroot/__main__/custom-module-map/Sources/CustomModuleMap.h:2:9: note: in file included from /private/var/tmp/_bazel_henry/e11db709b1242b3b39803cbacd605f76/rules_xcodeproj.noindex/build_output_base/execroot/__main__/custom-module-map/Sources/CustomModuleMap.h:2: #import "B.h" ^ /private/var/tmp/_bazel_henry/e11db709b1242b3b39803cbacd605f76/rules_xcodeproj.noindex/build_output_base/execroot/__main__/custom-module-map/Sources/B.h:3:10: error: 'vector' file not found #include What should I do to solve it ? Thx.
mattrobmattrob commented 4 months ago

Can you post the git diff from your changes to the example and the bazel build or bazel test command to replicate the failure you're seeing?