diff --git a/rules/precompiled_apple_resource_bundle.bzl b/rules/precompiled_apple_resource_bundle.bzl index 2bda179b3..70f549138 100644 --- a/rules/precompiled_apple_resource_bundle.bzl +++ b/rules/precompiled_apple_resource_bundle.bzl @@ -198,7 +198,7 @@ def _precompiled_apple_resource_bundle_impl(ctx): # See https://github.com/bazel-ios/rules_ios/pull/747 for context xccurrentversions = [ - f + (None, None, depset([f])) for resource_files in ctx.attr.resources for f in resource_files.files.to_list() if f.extension == "xccurrentversion" @@ -206,19 +206,12 @@ def _precompiled_apple_resource_bundle_impl(ctx): return [ AppleResourceInfo( - datamodels = [ - (None, None, depset(xccurrentversions)), - ], + datamodels = xccurrentversions, unowned_resources = depset(), - owners = depset( - [ - (output_bundle_dir.short_path, ctx.label), - (output_plist.short_path, ctx.label), - ] + [ - (f.short_path, ctx.label) - for f in xccurrentversions - ], - ), + owners = depset([ + (output_bundle_dir.short_path, ctx.label), + (output_plist.short_path, ctx.label), + ]), # This is a list of the resources to propagate without changing further # In this case the tuple parameters are: # 1. The final directory the resources should end up in, ex Foo.bundle