Skip to content

Commit 50bfe36

Browse files
committed
wip
1 parent c0f008b commit 50bfe36

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

fastlane/Fastfile

Lines changed: 19 additions & 13 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

@@ -30,18 +36,7 @@ lane :build do |options|
3036
next
3137
end
3238

33-
if platform == "macos"
34-
for destination in ["platform=macOS", "platform=macOS,variant=Mac Catalyst"]
35-
build_app(
36-
scheme: scheme,
37-
destination: destination,
38-
skip_archive: true,
39-
skip_codesigning: true,
40-
skip_package_ipa: true,
41-
skip_profile_detection: true,
42-
)
43-
end
44-
else
39+
unless devices[platform].nil?
4540
run_tests(
4641
configuration: "Debug",
4742
build_for_testing: true,
@@ -52,6 +47,17 @@ lane :build do |options|
5247
force_quit_simulator: true,
5348
disable_concurrent_testing: true,
5449
)
50+
else
51+
for destination in destinations[platform][version]
52+
build_app(
53+
scheme: scheme,
54+
destination: destination,
55+
skip_archive: true,
56+
skip_codesigning: true,
57+
skip_package_ipa: true,
58+
skip_profile_detection: true,
59+
)
60+
end
5561
end
5662
end
5763

0 commit comments

Comments
 (0)