Build Information
Failed to build Grovs, reference 3.1.0 (8828ce), with Swift 6.1 for macOS (SPM) on 29 Oct 2026 06:00:04 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grovs-io/grovs-iOS.git
Reference: 3.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/grovs-io/grovs-iOS
* tag 3.1.0 -> FETCH_HEAD
HEAD is now at 8828cea Check system screens with a UIKit class, not a share sheet
Cloned https://github.com/grovs-io/grovs-iOS.git
Revision (git rev-parse @):
8828cead6727cd8afd85259abfe7515f5345056e
SUCCESS checkout https://github.com/grovs-io/grovs-iOS.git at 3.1.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/grovs-io/grovs-iOS.git
https://github.com/grovs-io/grovs-iOS.git
{
"dependencies" : [
],
"manifest_display_name" : "Grovs",
"name" : "Grovs",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Grovs",
"targets" : [
"Grovs"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "GrovsNotificationService",
"targets" : [
"GrovsNotificationService"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "grovs_iosTests",
"module_type" : "SwiftTarget",
"name" : "grovs-iosTests",
"path" : "Tests/grovs-iosTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/grovs-iosTests/Fixtures",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"APIServiceTests.swift",
"AppDetailsTests.swift",
"AutoScreenTrackerSwizzleTests.swift",
"AutoScreenTrackerTests.swift",
"BaseServiceTests.swift",
"ClipboardDirectOpenScenarioTests.swift",
"ClipboardHandlerTests.swift",
"ContextTests.swift",
"CustomEventTests.swift",
"CustomEventsHandlerTests.swift",
"CustomEventsStorageTests.swift",
"CustomLinkRedirectTests.swift",
"DataCacheCoverageTests.swift",
"DataCacheTests.swift",
"DateExtensionTests.swift",
"DebugLoggerTests.swift",
"DictionaryExtensionTests.swift",
"EventTests.swift",
"EventsHandlerTests.swift",
"EventsStorageTests.swift",
"GrovsActionTests.swift",
"GrovsFacadeCoverageTests.swift",
"GrovsManagerCoverageTests.swift",
"GrovsManagerTests.swift",
"GrovsPublicAPITests.swift",
"GrovsVersionTests.swift",
"IdentityRecoveryTests.swift",
"InAppControllerTests.swift",
"InAppHTMLTests.swift",
"InAppHostileTests.swift",
"InAppLiveTests.swift",
"InAppMessageViewControllerTests.swift",
"InAppScreenshotTests.swift",
"InAppShared.swift",
"InAppSharedCasesTests.swift",
"InAppValuesTests.swift",
"InAppWiringTests.swift",
"KeychainHelperTests.swift",
"LegacyAPICompatibilityTests.swift",
"MD5Tests.swift",
"MockAPIService.swift",
"MockCustomEventsStorage.swift",
"MockEventsStorage.swift",
"MockInApp.swift",
"MockKeychainHelper.swift",
"MockPaymentEventsStorage.swift",
"MockURLProtocol.swift",
"MockUserDefaultsHelper.swift",
"NetworkingCoverageTests.swift",
"NotificationServiceExtensionTests.swift",
"PaymentEventsHandlerTests.swift",
"PaymentEventsStorageTests.swift",
"PaymentStorageAndMiscCoverageTests.swift",
"PersistedSDKUpgradeTests.swift",
"PrivacyManifestTests.swift",
"ProfileRequestOrderingTests.swift",
"ProfileRequestTransportTests.swift",
"PushNotificationTests.swift",
"ReviewFixes30Tests.swift",
"ReviewFixesTests.swift",
"SecureCodingUpgradeTests.swift",
"SessionTrackingTests.swift",
"StartupURLDeliveryTests.swift",
"StragglersCoverageTests.swift",
"TransactionDataTests.swift",
"UserAgentHelperTests.swift",
"UserDefaultsHelperTests.swift",
"XCTestCase+Helpers.swift"
],
"target_dependencies" : [
"Grovs",
"GrovsNotificationService"
],
"type" : "test"
},
{
"c99name" : "GrovsNotificationService",
"module_type" : "SwiftTarget",
"name" : "GrovsNotificationService",
"path" : "Sources/GrovsNotificationService",
"product_memberships" : [
"GrovsNotificationService"
],
"sources" : [
"GrovsNotificationServiceExtension.swift"
],
"type" : "library"
},
{
"c99name" : "Grovs",
"module_type" : "SwiftTarget",
"name" : "Grovs",
"path" : "Sources/Grovs",
"product_memberships" : [
"Grovs"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Grovs/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Grovs.swift",
"extensions/Bundle+Extension.swift",
"extensions/View+ScreenTracking.swift",
"model/data-cache/DataCache.swift",
"model/data-cache/Dictionary+Cache.swift",
"model/data-cache/String+MD5.swift",
"model/entities/AppDetails.swift",
"model/entities/CustomEvent.swift",
"model/entities/CustomLinkRedirect.swift",
"model/entities/Event.swift",
"model/entities/GrovsAction.swift",
"model/entities/GrovsPushNotification.swift",
"model/entities/TransactionData.swift",
"model/extensions/Date+Extension.swift",
"model/extensions/Dictionary+Extension.swift",
"model/extensions/JSONSerialization+Extension.swift",
"model/extensions/UIDevice+Extension.swift",
"model/handlers/AutoScreenTracker.swift",
"model/handlers/ClipboardHandler.swift",
"model/handlers/Context.swift",
"model/handlers/CustomEventsHandler.swift",
"model/handlers/EventsHandler.swift",
"model/handlers/GrovsManager.swift",
"model/handlers/GrovsScreenTracking.swift",
"model/handlers/PaymentEventsHandler.swift",
"model/helpers/AppDetailsHelper.swift",
"model/helpers/CustomEventsStorage.swift",
"model/helpers/DebugLogger.swift",
"model/helpers/EventsStorage.swift",
"model/helpers/GrovsVersion.swift",
"model/helpers/KeychainHelper.swift",
"model/helpers/PaymentEventsStorage.swift",
"model/helpers/UserAgentHelper.swift",
"model/helpers/UserDefaultHelper.swift",
"model/inapp/InAppBridge.generated.swift",
"model/inapp/InAppController.swift",
"model/inapp/InAppDefinition.swift",
"model/inapp/InAppEngine.swift",
"model/inapp/InAppHTMLViewController.swift",
"model/inapp/InAppImages.swift",
"model/inapp/InAppMessageViewController.swift",
"model/inapp/InAppPersonalize.swift",
"model/inapp/InAppStore.swift",
"model/inapp/InAppTime.swift",
"model/inapp/InAppTypes.swift",
"model/inapp/InAppValues.swift",
"model/inapp/InAppWindowPresenter.swift",
"model/service/APIService.swift",
"model/service/BaseService.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[2/4] Copying PrivacyInfo.xcprivacy
[3/4] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/52] Emitting module GrovsNotificationService
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:44: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:86: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:24:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
26 | let id = UUID()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:25:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
26 | let id = UUID()
27 | lock.lock()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:52:37: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
50 |
51 | // The download and the expiry race; only the first one is delivered.
52 | private func deliver(_ content: UNNotificationContent, for id: UUID) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
53 | lock.lock()
54 | let handler = pending.removeValue(forKey: id)?.handler
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:15:47: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:69:48: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:71:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
72 | attachImage(to: request.content, session: session, completion: completion)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:81:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:83:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
84 | guard let string = content.userInfo[imageKey] as? String,
85 | let url = URL(string: string), url.scheme?.lowercased() == "https",
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:107:63: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| | `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
[6/52] Compiling GrovsNotificationService GrovsNotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:44: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:86: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:24:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
26 | let id = UUID()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:25:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
26 | let id = UUID()
27 | lock.lock()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:52:37: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
50 |
51 | // The download and the expiry race; only the first one is delivered.
52 | private func deliver(_ content: UNNotificationContent, for id: UUID) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
53 | lock.lock()
54 | let handler = pending.removeValue(forKey: id)?.handler
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:15:47: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:69:48: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:71:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
72 | attachImage(to: request.content, session: session, completion: completion)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:81:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:83:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
84 | guard let string = content.userInfo[imageKey] as? String,
85 | let url = URL(string: string), url.scheme?.lowercased() == "https",
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:107:63: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| | `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:86:55: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
84 | guard let string = content.userInfo[imageKey] as? String,
85 | let url = URL(string: string), url.scheme?.lowercased() == "https",
86 | let updated = content.mutableCopy() as? UNMutableNotificationContent else {
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
87 | completion(content)
88 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:95:17: warning: capture of 'completion' with non-sendable type '(UNNotificationContent) -> Void' in a '@Sendable' closure
93 | (response as? HTTPURLResponse).map({ (200..<300).contains($0.statusCode) }) ?? true,
94 | let attachment = makeAttachment(from: location) else {
95 | completion(content)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationContent) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
96 | return
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:95:28: warning: capture of 'content' with non-sendable type 'UNNotificationContent' in a '@Sendable' closure
93 | (response as? HTTPURLResponse).map({ (200..<300).contains($0.statusCode) }) ?? true,
94 | let attachment = makeAttachment(from: location) else {
95 | completion(content)
| `- warning: capture of 'content' with non-sendable type 'UNNotificationContent' in a '@Sendable' closure
96 | return
97 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:36:12: note: class 'UNNotificationContent' does not conform to the 'Sendable' protocol
34 |
35 | API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
36 | @interface UNNotificationContent : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
| `- note: class 'UNNotificationContent' does not conform to the 'Sendable' protocol
37 |
38 | // Optional array of attachments.
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'UserNotifications'
7 | import Foundation
8 | import ImageIO
9 | import UserNotifications
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'UserNotifications'
10 |
11 | /// Shows the image of a Grovs push campaign.
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:99:13: warning: capture of 'updated' with non-sendable type 'UNMutableNotificationContent' in a '@Sendable' closure
97 | }
98 |
99 | updated.attachments = content.attachments + [attachment]
| `- warning: capture of 'updated' with non-sendable type 'UNMutableNotificationContent' in a '@Sendable' closure
100 | completion(updated)
101 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:98:12: note: class 'UNMutableNotificationContent' does not conform to the 'Sendable' protocol
96 |
97 | API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
98 | @interface UNMutableNotificationContent : UNNotificationContent
| `- note: class 'UNMutableNotificationContent' does not conform to the 'Sendable' protocol
99 |
100 | // Optional array of attachments.
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:119:24: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
:
117 | do {
118 | try FileManager.default.moveItem(at: location, to: file)
119 | return try UNNotificationAttachment(identifier: imageKey, url: file,
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
120 | options: [UNNotificationAttachmentOptionsTypeHintKey: type])
121 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:120:59: error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
:
118 | try FileManager.default.moveItem(at: location, to: file)
119 | return try UNNotificationAttachment(identifier: imageKey, url: file,
120 | options: [UNNotificationAttachmentOptionsTypeHintKey: type])
| |- error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
121 | } catch {
122 | try? FileManager.default.removeItem(at: file)
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/49] Emitting module GrovsNotificationService
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:44: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:86: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:24:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
26 | let id = UUID()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:25:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
26 | let id = UUID()
27 | lock.lock()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:52:37: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
50 |
51 | // The download and the expiry race; only the first one is delivered.
52 | private func deliver(_ content: UNNotificationContent, for id: UUID) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
53 | lock.lock()
54 | let handler = pending.removeValue(forKey: id)?.handler
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:15:47: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:69:48: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:71:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
72 | attachImage(to: request.content, session: session, completion: completion)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:81:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:83:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
84 | guard let string = content.userInfo[imageKey] as? String,
85 | let url = URL(string: string), url.scheme?.lowercased() == "https",
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:107:63: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| | `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
[3/49] Compiling GrovsNotificationService GrovsNotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:44: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:22:86: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
20 | private let lock = NSLock()
21 | /// One entry per push, as the system may reuse an instance; request identifiers repeat when pushes share a collapse id.
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:24:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
26 | let id = UUID()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:25:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
22 | private var pending: [UUID: (handler: (UNNotificationContent) -> Void, original: UNNotificationContent, download: URLSessionTask?)] = [:]
23 |
24 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
25 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
26 | let id = UUID()
27 | lock.lock()
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:52:37: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
:
50 |
51 | // The download and the expiry race; only the first one is delivered.
52 | private func deliver(_ content: UNNotificationContent, for id: UUID) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
53 | lock.lock()
54 | let handler = pending.removeValue(forKey: id)?.handler
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:15:47: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
13 | /// Make it the superclass of your Notification Service Extension's principal class. To change the
14 | /// content as well, call `GrovsNotificationContent.attachImage(to:session:completion:)` from your own extension.
15 | open class GrovsNotificationServiceExtension: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
16 |
17 | /// The session the image is downloaded with.
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:69:48: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:71:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
67 | /// Downloads the campaign image and returns the request's content with it attached.
68 | @discardableResult
69 | public static func attachImage(to request: UNNotificationRequest,
| `- note: add @available attribute to enclosing static method
70 | session: URLSession = .shared,
71 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
72 | attachImage(to: request.content, session: session, completion: completion)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:81:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:83:59: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
84 | guard let string = content.userInfo[imageKey] as? String,
85 | let url = URL(string: string), url.scheme?.lowercased() == "https",
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:107:63: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| | `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:86:55: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
79 | /// - Returns: The download, to cancel in `serviceExtensionTimeWillExpire()`; `nil` when there's nothing to download.
80 | @discardableResult
81 | public static func attachImage(to content: UNNotificationContent,
| `- note: add @available attribute to enclosing static method
82 | session: URLSession = .shared,
83 | completion: @escaping (UNNotificationContent) -> Void) -> URLSessionTask? {
84 | guard let string = content.userInfo[imageKey] as? String,
85 | let url = URL(string: string), url.scheme?.lowercased() == "https",
86 | let updated = content.mutableCopy() as? UNMutableNotificationContent else {
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
87 | completion(content)
88 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:119:24: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
:
117 | do {
118 | try FileManager.default.moveItem(at: location, to: file)
119 | return try UNNotificationAttachment(identifier: imageKey, url: file,
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
120 | options: [UNNotificationAttachmentOptionsTypeHintKey: type])
121 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GrovsNotificationService/GrovsNotificationServiceExtension.swift:120:59: error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
60 |
61 | /// Grovs push content helpers, safe to use from app extensions.
62 | public enum GrovsNotificationContent {
| `- note: add @available attribute to enclosing enum
63 |
64 | /// The payload key carrying the campaign's image URL.
:
105 |
106 | // Only JPEG, PNG and GIF show, read from the bytes; the download is moved first as it's deleted when the handler returns.
107 | private static func makeAttachment(from location: URL) -> UNNotificationAttachment? {
| `- note: add @available attribute to enclosing static method
108 | guard let source = CGImageSourceCreateWithURL(location as CFURL, nil),
109 | let type = CGImageSourceGetType(source) as String?,
:
118 | try FileManager.default.moveItem(at: location, to: file)
119 | return try UNNotificationAttachment(identifier: imageKey, url: file,
120 | options: [UNNotificationAttachmentOptionsTypeHintKey: type])
| |- error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
121 | } catch {
122 | try? FileManager.default.removeItem(at: file)
BUILD FAILURE 6.1 macosSpm