From 30733daa5c3f740d9e4cc3394fdb864e9a6caffa Mon Sep 17 00:00:00 2001 From: Thiago Cruz Date: Tue, 26 Mar 2024 16:54:02 -0400 Subject: [PATCH] Safer objc_provider assignment in apple_framework_packaging (#855) --- rules/framework.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/framework.bzl b/rules/framework.bzl index b4866408..e79fc95f 100644 --- a/rules/framework.bzl +++ b/rules/framework.bzl @@ -1067,8 +1067,8 @@ def _apple_framework_packaging_impl(ctx): default_info = DefaultInfo(files = depset(out_files + bundle_outs.files.to_list())) objc_provider = objc_provider_utils.merge_objc_providers( - providers = [dep[apple_common.Objc] for dep in deps], - transitive = [dep[apple_common.Objc] for dep in transitive_deps], + providers = [dep[apple_common.Objc] for dep in deps if apple_common.Objc in dep], + transitive = [dep[apple_common.Objc] for dep in transitive_deps if apple_common.Objc in dep], ) return [ avoid_deps_info,