File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,19 @@ def _platform_prerequisites(
103103 """
104104 platform_type_attr = getattr (apple_common .platform_type , platform_type_string )
105105 platform = apple_fragment .multi_arch_platform (platform_type_attr )
106-
107- if environment == TARGET_ENVIROMENT .simulator :
106+
107+ if environment == TARGET_ENVIROMENT .device :
108+ if platform_type_attr == apple_common .platform_type .ios :
109+ platform = apple_common .platform .ios_device
110+ elif platform_type_attr == apple_common .platform_type .tvos :
111+ platform = apple_common .platform .tvos_device
112+ elif platform_type_attr == apple_common .platform_type .visionos :
113+ platform = apple_common .platform .visionos_device
114+ elif platform_type_attr == apple_common .platform_type .watchos :
115+ platform = apple_common .platform .watchos_device
116+ else :
117+ platform = apple_common .platform .macos
118+ elif environment == TARGET_ENVIROMENT .simulator :
108119 if platform_type_attr == apple_common .platform_type .ios :
109120 platform = apple_common .platform .ios_simulator
110121 elif platform_type_attr == apple_common .platform_type .tvos :
You can’t perform that action at this time.
0 commit comments