Skip to content

Commit d3ac701

Browse files
authored
Merge pull request #355 from Esri/Ting/Fix-ARonMacCatalyst
[Update] Exclude AR samples from Mac Catalyst and Simulator
2 parents 370a53f + e98d759 commit d3ac701

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Scripts/GenerateSampleViewSourceCode.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ private let arrayRepresentation = """
143143
[
144144
\(entries)
145145
]
146+
#if targetEnvironment(macCatalyst) || targetEnvironment(simulator)
147+
// Exclude AR samples from Mac Catalyst and Simulator targets
148+
// as they don't have camera and sensors available.
149+
.filter { $0.category != "Augmented Reality" }
150+
#endif
146151
"""
147152

148153
do {

0 commit comments

Comments
 (0)