From 4238b53c90775d609dce085017b85f2b63727728 Mon Sep 17 00:00:00 2001 From: Ivan Persidsky Date: Thu, 23 Jan 2025 14:27:53 +0200 Subject: [PATCH] Fix visionos compilation --- Sources/Examples/SwiftUI Examples/GeofencingPlayground.swift | 2 ++ xcodegen/Examples.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Sources/Examples/SwiftUI Examples/GeofencingPlayground.swift b/Sources/Examples/SwiftUI Examples/GeofencingPlayground.swift index f7996da3bef0..d724994330a2 100644 --- a/Sources/Examples/SwiftUI Examples/GeofencingPlayground.swift +++ b/Sources/Examples/SwiftUI Examples/GeofencingPlayground.swift @@ -265,8 +265,10 @@ private func requestNotificationPermission() { } private func requestLocationAuthorization() { + #if !os(visionOS) CLLocationManager().requestAlwaysAuthorization() print("Location request finished.") + #endif } private extension Turf.Feature { diff --git a/xcodegen/Examples.yml b/xcodegen/Examples.yml index 17a1879e2e75..47085e3dadee 100644 --- a/xcodegen/Examples.yml +++ b/xcodegen/Examples.yml @@ -19,6 +19,7 @@ targets: - path: ../Sources/Examples excludes: - VisionOSMain.swift + - "Extensions/**" - "SwiftUI Examples/**" - "All Examples/Sample Data/**" - "Assets.xcassets/**" @@ -30,6 +31,7 @@ targets: - path: ../Sources/Examples includes: - "SwiftUI Examples/**" + - "Extensions/**" - "All Examples/Sample Data/**" - "Assets.xcassets/**" # destinationFilters: [iOS, visionOS]