diff --git a/apple/internal/aspects/resource_aspect.bzl b/apple/internal/aspects/resource_aspect.bzl index 93c9e9f85a..37b51e6923 100644 --- a/apple/internal/aspects/resource_aspect.bzl +++ b/apple/internal/aspects/resource_aspect.bzl @@ -139,6 +139,9 @@ def _apple_resource_aspect_impl(target, ctx): if ctx.rule.attr.srcs or ctx.rule.attr.non_arc_srcs or ctx.rule.attr.deps: owner = str(ctx.label) + elif ctx.rule.kind == "objc_import": + collect_args["res_attrs"] = ["data"] + elif ctx.rule.kind == "swift_library": module_names = [x.name for x in target[SwiftInfo].direct_modules if x.swift] bucketize_args["swift_module"] = module_names[0] if module_names else None