From a9b63201b3eedfc6be0dd2426bf4cac37ef687d4 Mon Sep 17 00:00:00 2001 From: Michael Thingnes Date: Tue, 16 Sep 2025 23:25:59 +1200 Subject: [PATCH] Only reference UIApplication on iOS --- Sources/SQLiteData/CloudKit/SyncEngine.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SQLiteData/CloudKit/SyncEngine.swift b/Sources/SQLiteData/CloudKit/SyncEngine.swift index 6d035ae5..48cdf3f7 100644 --- a/Sources/SQLiteData/CloudKit/SyncEngine.swift +++ b/Sources/SQLiteData/CloudKit/SyncEngine.swift @@ -255,7 +255,7 @@ tables: allTables, tablesByName: tablesByName ) - #if canImport(UIKit) + #if os(iOS) @Dependency(\.defaultNotificationCenter) var defaultNotificationCenter notificationsObserver.withValue { $0 = defaultNotificationCenter.addObserver(