bazel-xcode / PodToBUILD

An easy way to integrate CocoaPods into Bazel
Apache License 2.0
322 stars 69 forks source link

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

Open tinyprocessing opened 1 year ago

tinyprocessing commented 1 year ago

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)

veblush commented 1 year ago

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

jalalimehdi commented 1 year ago

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

hiepthai commented 1 year ago

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