PodToBUILD icon indicating copy to clipboard operation
PodToBUILD copied to clipboard

Argument header not a recognized key, 'strict_include', or 'providers'.

Open tinyprocessing opened this issue 1 year ago • 3 comments

ERROR: /Users/#####/Desktop/macosclient/Vendor/Alamofire/BUILD.bazel:219:16: in umbrella_header rule //Vendor/Alamofire:Alamofire_umbrella_header: Traceback (most recent call last): File "/Users/#####/Desktop/macosclient/Vendor/rules_pods/BazelExtensions/extensions.bzl", line 113, column 51, in _umbrella_header_impl objc_provider = apple_common.new_objc_provider( Error in new_objc_provider: Argument header not a recognized key, 'strict_include', or 'providers'. ERROR: /Users/#####/Desktop/macosclient/Vendor/Alamofire/BUILD.bazel:219:16: Analysis of target '//Vendor/Alamofire:Alamofire_umbrella_header' failed ERROR: Analysis of target '//IRMClient:IRMClient' failed; build aborted: INFO: Elapsed time: 0,083s INFO: 0 processes. FAILED: Build did NOT complete successfully (1 packages loaded, 42 targets configured)

tinyprocessing avatar Mar 17 '23 10:03 tinyprocessing

I hit the same problem. I guess this is caused by breaking changes made by Bazel and its default apple rules. Our setup is

  • Bazel 6
  • build_bazel_rules_apple 1.1.3
  • build_bazel_apple_support 1.3.1

veblush avatar Apr 21 '23 16:04 veblush

I’m dealing with the same problem as you. How do I fix it?

jalalimehdi avatar Apr 26 '23 00:04 jalalimehdi

This patch may provide a temporary solution to this issue.

http_archive(
    name = "rules_pods",
    urls = ["https://github.com/bazel-xcode/PodToBUILD/releases/download/4.1.0-412495/PodToBUILD.zip"],
    patches = ["//third-party:podtobuild/objc-provider.patch"],
    patch_args = ["-p1"],
)

objc-provider.patch

hiepthai avatar May 19 '23 04:05 hiepthai