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,