From 6f312444628f803faf5e9ea760e1acb6ee94d89d Mon Sep 17 00:00:00 2001 From: Mikhail Zinov Date: Mon, 7 Oct 2024 22:02:02 +0900 Subject: [PATCH] drop selection --- apple/internal/platform_support.bzl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/apple/internal/platform_support.bzl b/apple/internal/platform_support.bzl index 54d65efb5c..0b26236024 100644 --- a/apple/internal/platform_support.bzl +++ b/apple/internal/platform_support.bzl @@ -103,8 +103,19 @@ def _platform_prerequisites( """ platform_type_attr = getattr(apple_common.platform_type, platform_type_string) platform = apple_fragment.multi_arch_platform(platform_type_attr) - - if environment == TARGET_ENVIROMENT.simulator: + + if environment == TARGET_ENVIROMENT.device: + if platform_type_attr == apple_common.platform_type.ios: + platform = apple_common.platform.ios_device + elif platform_type_attr == apple_common.platform_type.tvos: + platform = apple_common.platform.tvos_device + elif platform_type_attr == apple_common.platform_type.visionos: + platform = apple_common.platform.visionos_device + elif platform_type_attr == apple_common.platform_type.watchos: + platform = apple_common.platform.watchos_device + else: + platform = apple_common.platform.macos + elif environment == TARGET_ENVIROMENT.simulator: if platform_type_attr == apple_common.platform_type.ios: platform = apple_common.platform.ios_simulator elif platform_type_attr == apple_common.platform_type.tvos: