From cce8ad9f0802c56f5846604939cba61619bf0311 Mon Sep 17 00:00:00 2001 From: chentianlong <184762651@qq.com> Date: Thu, 16 Jul 2026 16:56:44 +0800 Subject: [PATCH] fix: support Xcode 27 actor isolation --- Sources/iCloudKVKey.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/iCloudKVKey.swift b/Sources/iCloudKVKey.swift index 552999d..0ad3f3c 100644 --- a/Sources/iCloudKVKey.swift +++ b/Sources/iCloudKVKey.swift @@ -536,12 +536,12 @@ private struct OptionalLookup: Lookup { private let willEnterForegroundNotificationName: Notification.Name? = { #if os(macOS) - return NSApplication.willBecomeActiveNotification + return Notification.Name("NSApplicationWillBecomeActiveNotification") #elseif os(iOS) || os(tvOS) || os(visionOS) - return UIApplication.willEnterForegroundNotification + return Notification.Name("UIApplicationWillEnterForegroundNotification") #elseif os(watchOS) if #available(watchOS 7, *) { - return WKExtension.applicationWillEnterForegroundNotification + return Notification.Name("WKApplicationWillEnterForegroundNotification") } else { return nil }