File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,19 @@ def _platform_prerequisites(
102102 A struct representing the collected platform information.
103103 """
104104 platform_type_attr = getattr (apple_common .platform_type , platform_type_string )
105- platform = apple_fragment .multi_arch_platform (platform_type_attr )
106-
107- if environment == TARGET_ENVIROMENT .simulator :
105+ platform = apple_common .platform .macos
106+ if environment == TARGET_ENVIROMENT .device :
107+ if platform_type_attr == apple_common .platform_type .ios :
108+ platform = apple_common .platform .ios_device
109+ elif platform_type_attr == apple_common .platform_type .tvos :
110+ platform = apple_common .platform .tvos_device
111+ elif platform_type_attr == apple_common .platform_type .visionos :
112+ platform = apple_common .platform .visionos_device
113+ elif platform_type_attr == apple_common .platform_type .watchos :
114+ platform = apple_common .platform .watchos_device
115+ else :
116+ platform = apple_common .platform .macos
117+ elif environment == TARGET_ENVIROMENT .simulator :
108118 if platform_type_attr == apple_common .platform_type .ios :
109119 platform = apple_common .platform .ios_simulator
110120 elif platform_type_attr == apple_common .platform_type .tvos :
You can’t perform that action at this time.
0 commit comments