Skip to content

Commit 56bd490

Browse files
committed
Default minimum_deployment_os_version to minimum_os_version
This handles custom rules that don't set `minimum_deployment_os_version `.
1 parent e70af1c commit 56bd490

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xcodeproj/internal/top_level_targets.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ def process_top_level_properties(
8888
if bundle_info:
8989
bundle_name = bundle_info.bundle_name
9090
executable_name = getattr(bundle_info, "executable_name", bundle_name)
91-
minimum_deployment_version = bundle_info.minimum_deployment_os_version
91+
minimum_deployment_version = getattr(
92+
bundle_info,
93+
"minimum_deployment_os_version",
94+
getattr(bundle_info, "minimum_os_version", None),
95+
)
9296
product_name = bundle_name
9397
product_type = bundle_info.product_type
9498

0 commit comments

Comments
 (0)