From 6562652707543cd4217018d9fcc7fccaa4e5d59e Mon Sep 17 00:00:00 2001 From: Brentley Jones Date: Mon, 8 Sep 2025 07:53:17 -0500 Subject: [PATCH] Fix `AppleResourceInfo` value extraction in `compile_only_aspect` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some cases `AppleResourceInfo` won’t have all of its attributes, so we need to use `getattr`. Signed-off-by: Brentley Jones --- xcodeproj/compile_only_aspect.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcodeproj/compile_only_aspect.bzl b/xcodeproj/compile_only_aspect.bzl index 8de459404..3551fbf7a 100644 --- a/xcodeproj/compile_only_aspect.bzl +++ b/xcodeproj/compile_only_aspect.bzl @@ -83,8 +83,8 @@ def _xcodeproj_cache_warm_aspect_impl(target, ctx): dep_resources = [ resources for (_, _, resources) in ( - resource_info.processed + - resource_info.unprocessed + getattr(resource_info, "processed", []) + + getattr(resource_info, "unprocessed", []) ) ]