Skip to content

Commit 6cdfb26

Browse files
committed
wip
1 parent c0f008b commit 6cdfb26

File tree

1 file changed

+33
-12
lines changed

1 file changed

+33
-12
lines changed

fastlane/Fastfile

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ devices = {
1515
16 => ["Apple TV (16.4)"],
1616
17 => ["Apple TV (17.0)"],
1717
},
18+
}
19+
20+
destinations = {
21+
"macos" => {
22+
1 => ["platform=macOS", "platform=macOS,variant=Mac Catalyst"],
23+
},
1824
"visionos" => {
19-
1 => ["Apple Vision Pro (1.0)"],
25+
1 => ["platform=visionOS"],
2026
},
2127
}
2228

@@ -31,7 +37,7 @@ lane :build do |options|
3137
end
3238

3339
if platform == "macos"
34-
for destination in ["platform=macOS", "platform=macOS,variant=Mac Catalyst"]
40+
for destination in destinations[platform][version]
3541
build_app(
3642
scheme: scheme,
3743
destination: destination,
@@ -42,16 +48,31 @@ lane :build do |options|
4248
)
4349
end
4450
else
45-
run_tests(
46-
configuration: "Debug",
47-
build_for_testing: true,
48-
scheme: scheme,
49-
devices: devices[platform][version],
50-
prelaunch_simulator: false,
51-
ensure_devices_found: true,
52-
force_quit_simulator: true,
53-
disable_concurrent_testing: true,
54-
)
51+
if destinations[platform]
52+
for destination in destinations[platform][version]
53+
run_tests(
54+
configuration: "Debug",
55+
build_for_testing: true,
56+
scheme: scheme,
57+
destination: destination,
58+
prelaunch_simulator: false,
59+
ensure_devices_found: true,
60+
force_quit_simulator: true,
61+
disable_concurrent_testing: true,
62+
)
63+
end
64+
else
65+
run_tests(
66+
configuration: "Debug",
67+
build_for_testing: true,
68+
scheme: scheme,
69+
devices: devices[platform][version],
70+
prelaunch_simulator: false,
71+
ensure_devices_found: true,
72+
force_quit_simulator: true,
73+
disable_concurrent_testing: true,
74+
)
75+
end
5576
end
5677
end
5778

0 commit comments

Comments
 (0)