The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftResilience, reference 1.0.0 (de8fd2), with Swift 6.1 for macOS (SPM) on 29 Jun 2026 16:03:44 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/meetbb/SwiftResilience.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/meetbb/SwiftResilience
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at de8fd2f Add Package.swift and demo app — v1.0.0
Cloned https://github.com/meetbb/SwiftResilience.git
Revision (git rev-parse @):
de8fd2f03ac9b480792323ada079324a96ef5062
SUCCESS checkout https://github.com/meetbb/SwiftResilience.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/meetbb/SwiftResilience.git
https://github.com/meetbb/SwiftResilience.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftResilience",
  "name" : "SwiftResilience",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftResilience",
      "targets" : [
        "SwiftResilience"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftResilienceTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftResilienceTests",
      "path" : "SwiftResilienceTests",
      "sources" : [
        "BackgroundQueue/BackgroundQueueDrainerTests.swift",
        "ConcurrencySafety/AuthenticatedRequestEngineTests.swift",
        "ConcurrencySafety/TokenRefreshCoordinatorTests.swift",
        "ExponentialRetryPolicyTests.swift",
        "Networking/AsyncRequestEngineTests.swift",
        "Observability/ObservabilityTests.swift",
        "OfflineQueue/DiskQueueStoreTests.swift",
        "OfflineQueue/OfflineQueueEngineTests.swift",
        "OfflineQueue/QueueEntryTests.swift",
        "OfflineQueue/QueueableRequestTests.swift",
        "OfflineQueue/ReachabilityMonitorTests.swift",
        "SwiftResilienceTests.swift"
      ],
      "target_dependencies" : [
        "SwiftResilience"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftResilience",
      "module_type" : "SwiftTarget",
      "name" : "SwiftResilience",
      "path" : "SwiftResilience",
      "product_memberships" : [
        "SwiftResilience"
      ],
      "sources" : [
        "BackgroundQueue/BackgroundQueueDrainer.swift",
        "BackgroundQueue/BackgroundQueueProtocols.swift",
        "ConcurrencySafety/AuthenticatedRequestEngine.swift",
        "ConcurrencySafety/TokenProvider.swift",
        "ConcurrencySafety/TokenRefreshCoordinator.swift",
        "Networking/AsyncRequestEngine.swift",
        "Networking/HTTPMethod.swift",
        "Networking/NetworkError.swift",
        "Networking/NetworkRequest.swift",
        "Networking/NetworkSession.swift",
        "Networking/RequestIdentity.swift",
        "Observability/RequestEvent.swift",
        "Observability/RequestMetricsCollector.swift",
        "OfflineQueue/DiskQueueStore.swift",
        "OfflineQueue/OfflineQueueEngine.swift",
        "OfflineQueue/QueueEntry.swift",
        "OfflineQueue/QueueableRequest.swift",
        "OfflineQueue/ReachabilityMonitor.swift",
        "Retry/ExponentialRetryPolicy.swift",
        "Retry/RetryPolicy.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
[0/1] Planning build
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/21] Compiling SwiftResilience TokenRefreshCoordinator.swift
[4/21] Compiling SwiftResilience AsyncRequestEngine.swift
[5/21] Compiling SwiftResilience NetworkRequest.swift
[6/21] Compiling SwiftResilience NetworkSession.swift
[7/21] Compiling SwiftResilience RequestMetricsCollector.swift
[8/21] Compiling SwiftResilience DiskQueueStore.swift
[9/21] Compiling SwiftResilience HTTPMethod.swift
[10/21] Compiling SwiftResilience NetworkError.swift
[11/23] Compiling SwiftResilience RequestIdentity.swift
[12/23] Compiling SwiftResilience RequestEvent.swift
[13/23] Compiling SwiftResilience QueueableRequest.swift
[14/23] Compiling SwiftResilience ReachabilityMonitor.swift
[15/23] Compiling SwiftResilience OfflineQueueEngine.swift
[16/23] Compiling SwiftResilience QueueEntry.swift
[17/23] Compiling SwiftResilience AuthenticatedRequestEngine.swift
[18/23] Compiling SwiftResilience TokenProvider.swift
[19/23] Compiling SwiftResilience ExponentialRetryPolicy.swift
[20/23] Compiling SwiftResilience RetryPolicy.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/23] Emitting module SwiftResilience
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:45:11: error: 'BGTask' is unavailable in macOS
 43 | /// `BGTask` already exposes `expirationHandler` and `setTaskCompleted(success:)`.
 44 | /// This extension adds the protocol conformance label — no implementation needed.
 45 | extension BGTask: BackgroundTaskHandling {}
    |           `- error: 'BGTask' is unavailable in macOS
 46 |
 47 | // MARK: - BackgroundTaskScheduling
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:21:12: note: 'BGTask' has been explicitly marked unavailable here
 19 | /// An abstract class representing a task that’s run while the app is in the
 20 | /// background.
 21 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 22 |
 23 | /*!
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:98:32: error: 'BGTaskRequest' is unavailable in macOS
 96 |     /// - Throws: `BGTaskScheduler.Error` if the identifier is not registered
 97 |     ///   or if the app has reached the system request limit.
 98 |     func submit(_ taskRequest: BGTaskRequest) throws
    |                                `- error: 'BGTaskRequest' is unavailable in macOS
 99 | }
100 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:121:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
116 | /// )
117 | /// ```
118 | public final class SystemBackgroundTaskScheduler: BackgroundTaskScheduling {
    |                    `- note: class 'SystemBackgroundTaskScheduler' does not conform to the 'Sendable' protocol
119 |
120 |     /// The shared singleton. Use this in all production code.
121 |     public static let shared = SystemBackgroundTaskScheduler()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private init() {}
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:141:39: error: 'BGTaskRequest' is unavailable in macOS
139 |     }
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
    |                                       `- error: 'BGTaskRequest' is unavailable in macOS
142 |         try BGTaskScheduler.shared.submit(taskRequest)
143 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
[22/23] Compiling SwiftResilience BackgroundQueueDrainer.swift
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueDrainer.swift:149:23: error: 'BGProcessingTaskRequest' is unavailable in macOS
147 |     /// the queue will drain on the next foreground session instead.
148 |     public func scheduleNextDrain() {
149 |         let request = BGProcessingTaskRequest(identifier: taskIdentifier)
    |                       `- error: 'BGProcessingTaskRequest' is unavailable in macOS
150 |         request.requiresNetworkConnectivity = true
151 |         request.requiresExternalPower       = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:70:12: note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 68 | /// that can take minutes to complete.
 69 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 70 | @interface BGProcessingTaskRequest : BGTaskRequest
    |            `- note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 71 |
 72 | /// Return a new processing task request for the specified identifier.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:45:11: error: 'BGTask' is unavailable in macOS
 43 | /// `BGTask` already exposes `expirationHandler` and `setTaskCompleted(success:)`.
 44 | /// This extension adds the protocol conformance label — no implementation needed.
 45 | extension BGTask: BackgroundTaskHandling {}
    |           `- error: 'BGTask' is unavailable in macOS
 46 |
 47 | // MARK: - BackgroundTaskScheduling
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:21:12: note: 'BGTask' has been explicitly marked unavailable here
 19 | /// An abstract class representing a task that’s run while the app is in the
 20 | /// background.
 21 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 22 |
 23 | /*!
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:98:32: error: 'BGTaskRequest' is unavailable in macOS
 96 |     /// - Throws: `BGTaskScheduler.Error` if the identifier is not registered
 97 |     ///   or if the app has reached the system request limit.
 98 |     func submit(_ taskRequest: BGTaskRequest) throws
    |                                `- error: 'BGTaskRequest' is unavailable in macOS
 99 | }
100 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:121:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
116 | /// )
117 | /// ```
118 | public final class SystemBackgroundTaskScheduler: BackgroundTaskScheduling {
    |                    `- note: class 'SystemBackgroundTaskScheduler' does not conform to the 'Sendable' protocol
119 |
120 |     /// The shared singleton. Use this in all production code.
121 |     public static let shared = SystemBackgroundTaskScheduler()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private init() {}
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:141:39: error: 'BGTaskRequest' is unavailable in macOS
139 |     }
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
    |                                       `- error: 'BGTaskRequest' is unavailable in macOS
142 |         try BGTaskScheduler.shared.submit(taskRequest)
143 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:130:9: error: 'BGTaskScheduler' is unavailable in macOS
128 |         launchHandler: @escaping (any BackgroundTaskHandling) -> Void
129 |     ) {
130 |         BGTaskScheduler.shared.register(
    |         `- error: 'BGTaskScheduler' is unavailable in macOS
131 |             forTaskWithIdentifier: identifier,
132 |             using: queue
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:142:13: error: 'BGTaskScheduler' is unavailable in macOS
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
142 |         try BGTaskScheduler.shared.submit(taskRequest)
    |             `- error: 'BGTaskScheduler' is unavailable in macOS
143 |     }
144 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
[23/23] Compiling SwiftResilience BackgroundQueueProtocols.swift
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueDrainer.swift:149:23: error: 'BGProcessingTaskRequest' is unavailable in macOS
147 |     /// the queue will drain on the next foreground session instead.
148 |     public func scheduleNextDrain() {
149 |         let request = BGProcessingTaskRequest(identifier: taskIdentifier)
    |                       `- error: 'BGProcessingTaskRequest' is unavailable in macOS
150 |         request.requiresNetworkConnectivity = true
151 |         request.requiresExternalPower       = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:70:12: note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 68 | /// that can take minutes to complete.
 69 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 70 | @interface BGProcessingTaskRequest : BGTaskRequest
    |            `- note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 71 |
 72 | /// Return a new processing task request for the specified identifier.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:45:11: error: 'BGTask' is unavailable in macOS
 43 | /// `BGTask` already exposes `expirationHandler` and `setTaskCompleted(success:)`.
 44 | /// This extension adds the protocol conformance label — no implementation needed.
 45 | extension BGTask: BackgroundTaskHandling {}
    |           `- error: 'BGTask' is unavailable in macOS
 46 |
 47 | // MARK: - BackgroundTaskScheduling
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:21:12: note: 'BGTask' has been explicitly marked unavailable here
 19 | /// An abstract class representing a task that’s run while the app is in the
 20 | /// background.
 21 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 22 |
 23 | /*!
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:98:32: error: 'BGTaskRequest' is unavailable in macOS
 96 |     /// - Throws: `BGTaskScheduler.Error` if the identifier is not registered
 97 |     ///   or if the app has reached the system request limit.
 98 |     func submit(_ taskRequest: BGTaskRequest) throws
    |                                `- error: 'BGTaskRequest' is unavailable in macOS
 99 | }
100 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:121:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
116 | /// )
117 | /// ```
118 | public final class SystemBackgroundTaskScheduler: BackgroundTaskScheduling {
    |                    `- note: class 'SystemBackgroundTaskScheduler' does not conform to the 'Sendable' protocol
119 |
120 |     /// The shared singleton. Use this in all production code.
121 |     public static let shared = SystemBackgroundTaskScheduler()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private init() {}
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:141:39: error: 'BGTaskRequest' is unavailable in macOS
139 |     }
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
    |                                       `- error: 'BGTaskRequest' is unavailable in macOS
142 |         try BGTaskScheduler.shared.submit(taskRequest)
143 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:130:9: error: 'BGTaskScheduler' is unavailable in macOS
128 |         launchHandler: @escaping (any BackgroundTaskHandling) -> Void
129 |     ) {
130 |         BGTaskScheduler.shared.register(
    |         `- error: 'BGTaskScheduler' is unavailable in macOS
131 |             forTaskWithIdentifier: identifier,
132 |             using: queue
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:142:13: error: 'BGTaskScheduler' is unavailable in macOS
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
142 |         try BGTaskScheduler.shared.submit(taskRequest)
    |             `- error: 'BGTaskScheduler' is unavailable in macOS
143 |     }
144 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
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
[2/20] Compiling SwiftResilience QueueableRequest.swift
[3/20] Compiling SwiftResilience ReachabilityMonitor.swift
[4/22] Compiling SwiftResilience RequestMetricsCollector.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/22] Compiling SwiftResilience DiskQueueStore.swift
[6/22] Compiling SwiftResilience NetworkRequest.swift
[7/22] Compiling SwiftResilience NetworkSession.swift
[8/22] Compiling SwiftResilience RequestIdentity.swift
[9/22] Compiling SwiftResilience RequestEvent.swift
[10/22] Compiling SwiftResilience OfflineQueueEngine.swift
[11/22] Compiling SwiftResilience QueueEntry.swift
[12/22] Emitting module SwiftResilience
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:45:11: error: 'BGTask' is unavailable in macOS
 43 | /// `BGTask` already exposes `expirationHandler` and `setTaskCompleted(success:)`.
 44 | /// This extension adds the protocol conformance label — no implementation needed.
 45 | extension BGTask: BackgroundTaskHandling {}
    |           `- error: 'BGTask' is unavailable in macOS
 46 |
 47 | // MARK: - BackgroundTaskScheduling
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:21:12: note: 'BGTask' has been explicitly marked unavailable here
 19 | /// An abstract class representing a task that’s run while the app is in the
 20 | /// background.
 21 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 22 |
 23 | /*!
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:98:32: error: 'BGTaskRequest' is unavailable in macOS
 96 |     /// - Throws: `BGTaskScheduler.Error` if the identifier is not registered
 97 |     ///   or if the app has reached the system request limit.
 98 |     func submit(_ taskRequest: BGTaskRequest) throws
    |                                `- error: 'BGTaskRequest' is unavailable in macOS
 99 | }
100 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:121:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
116 | /// )
117 | /// ```
118 | public final class SystemBackgroundTaskScheduler: BackgroundTaskScheduling {
    |                    `- note: class 'SystemBackgroundTaskScheduler' does not conform to the 'Sendable' protocol
119 |
120 |     /// The shared singleton. Use this in all production code.
121 |     public static let shared = SystemBackgroundTaskScheduler()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private init() {}
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:141:39: error: 'BGTaskRequest' is unavailable in macOS
139 |     }
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
    |                                       `- error: 'BGTaskRequest' is unavailable in macOS
142 |         try BGTaskScheduler.shared.submit(taskRequest)
143 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
[13/22] Compiling SwiftResilience HTTPMethod.swift
[14/22] Compiling SwiftResilience NetworkError.swift
[15/22] Compiling SwiftResilience TokenRefreshCoordinator.swift
[16/22] Compiling SwiftResilience AsyncRequestEngine.swift
[17/22] Compiling SwiftResilience AuthenticatedRequestEngine.swift
[18/22] Compiling SwiftResilience TokenProvider.swift
[19/22] Compiling SwiftResilience BackgroundQueueDrainer.swift
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueDrainer.swift:149:23: error: 'BGProcessingTaskRequest' is unavailable in macOS
147 |     /// the queue will drain on the next foreground session instead.
148 |     public func scheduleNextDrain() {
149 |         let request = BGProcessingTaskRequest(identifier: taskIdentifier)
    |                       `- error: 'BGProcessingTaskRequest' is unavailable in macOS
150 |         request.requiresNetworkConnectivity = true
151 |         request.requiresExternalPower       = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:70:12: note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 68 | /// that can take minutes to complete.
 69 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 70 | @interface BGProcessingTaskRequest : BGTaskRequest
    |            `- note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 71 |
 72 | /// Return a new processing task request for the specified identifier.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:45:11: error: 'BGTask' is unavailable in macOS
 43 | /// `BGTask` already exposes `expirationHandler` and `setTaskCompleted(success:)`.
 44 | /// This extension adds the protocol conformance label — no implementation needed.
 45 | extension BGTask: BackgroundTaskHandling {}
    |           `- error: 'BGTask' is unavailable in macOS
 46 |
 47 | // MARK: - BackgroundTaskScheduling
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:21:12: note: 'BGTask' has been explicitly marked unavailable here
 19 | /// An abstract class representing a task that’s run while the app is in the
 20 | /// background.
 21 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 22 |
 23 | /*!
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:98:32: error: 'BGTaskRequest' is unavailable in macOS
 96 |     /// - Throws: `BGTaskScheduler.Error` if the identifier is not registered
 97 |     ///   or if the app has reached the system request limit.
 98 |     func submit(_ taskRequest: BGTaskRequest) throws
    |                                `- error: 'BGTaskRequest' is unavailable in macOS
 99 | }
100 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:121:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
116 | /// )
117 | /// ```
118 | public final class SystemBackgroundTaskScheduler: BackgroundTaskScheduling {
    |                    `- note: class 'SystemBackgroundTaskScheduler' does not conform to the 'Sendable' protocol
119 |
120 |     /// The shared singleton. Use this in all production code.
121 |     public static let shared = SystemBackgroundTaskScheduler()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private init() {}
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:141:39: error: 'BGTaskRequest' is unavailable in macOS
139 |     }
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
    |                                       `- error: 'BGTaskRequest' is unavailable in macOS
142 |         try BGTaskScheduler.shared.submit(taskRequest)
143 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:130:9: error: 'BGTaskScheduler' is unavailable in macOS
128 |         launchHandler: @escaping (any BackgroundTaskHandling) -> Void
129 |     ) {
130 |         BGTaskScheduler.shared.register(
    |         `- error: 'BGTaskScheduler' is unavailable in macOS
131 |             forTaskWithIdentifier: identifier,
132 |             using: queue
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:142:13: error: 'BGTaskScheduler' is unavailable in macOS
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
142 |         try BGTaskScheduler.shared.submit(taskRequest)
    |             `- error: 'BGTaskScheduler' is unavailable in macOS
143 |     }
144 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
[20/22] Compiling SwiftResilience BackgroundQueueProtocols.swift
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueDrainer.swift:149:23: error: 'BGProcessingTaskRequest' is unavailable in macOS
147 |     /// the queue will drain on the next foreground session instead.
148 |     public func scheduleNextDrain() {
149 |         let request = BGProcessingTaskRequest(identifier: taskIdentifier)
    |                       `- error: 'BGProcessingTaskRequest' is unavailable in macOS
150 |         request.requiresNetworkConnectivity = true
151 |         request.requiresExternalPower       = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:70:12: note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 68 | /// that can take minutes to complete.
 69 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 70 | @interface BGProcessingTaskRequest : BGTaskRequest
    |            `- note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 71 |
 72 | /// Return a new processing task request for the specified identifier.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:45:11: error: 'BGTask' is unavailable in macOS
 43 | /// `BGTask` already exposes `expirationHandler` and `setTaskCompleted(success:)`.
 44 | /// This extension adds the protocol conformance label — no implementation needed.
 45 | extension BGTask: BackgroundTaskHandling {}
    |           `- error: 'BGTask' is unavailable in macOS
 46 |
 47 | // MARK: - BackgroundTaskScheduling
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:21:12: note: 'BGTask' has been explicitly marked unavailable here
 19 | /// An abstract class representing a task that’s run while the app is in the
 20 | /// background.
 21 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 22 |
 23 | /*!
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:98:32: error: 'BGTaskRequest' is unavailable in macOS
 96 |     /// - Throws: `BGTaskScheduler.Error` if the identifier is not registered
 97 |     ///   or if the app has reached the system request limit.
 98 |     func submit(_ taskRequest: BGTaskRequest) throws
    |                                `- error: 'BGTaskRequest' is unavailable in macOS
 99 | }
100 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:121:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
116 | /// )
117 | /// ```
118 | public final class SystemBackgroundTaskScheduler: BackgroundTaskScheduling {
    |                    `- note: class 'SystemBackgroundTaskScheduler' does not conform to the 'Sendable' protocol
119 |
120 |     /// The shared singleton. Use this in all production code.
121 |     public static let shared = SystemBackgroundTaskScheduler()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SystemBackgroundTaskScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private init() {}
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:141:39: error: 'BGTaskRequest' is unavailable in macOS
139 |     }
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
    |                                       `- error: 'BGTaskRequest' is unavailable in macOS
142 |         try BGTaskScheduler.shared.submit(taskRequest)
143 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:19:12: note: 'BGTaskRequest' has been explicitly marked unavailable here
 17 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos, watchos)
 18 | /// An abstract class for representing task requests.
 19 | @interface BGTaskRequest : NSObject <NSCopying>
    |            `- note: 'BGTaskRequest' has been explicitly marked unavailable here
 20 | /*!
 21 |  @abstract The identifier associated with this request.
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:130:9: error: 'BGTaskScheduler' is unavailable in macOS
128 |         launchHandler: @escaping (any BackgroundTaskHandling) -> Void
129 |     ) {
130 |         BGTaskScheduler.shared.register(
    |         `- error: 'BGTaskScheduler' is unavailable in macOS
131 |             forTaskWithIdentifier: identifier,
132 |             using: queue
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
/Users/admin/builder/spi-builder-workspace/SwiftResilience/BackgroundQueue/BackgroundQueueProtocols.swift:142:13: error: 'BGTaskScheduler' is unavailable in macOS
140 |
141 |     public func submit(_ taskRequest: BGTaskRequest) throws {
142 |         try BGTaskScheduler.shared.submit(taskRequest)
    |             `- error: 'BGTaskScheduler' is unavailable in macOS
143 |     }
144 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:77:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 75 | /// To learn how to register, schedule, and run a background task, see
 76 | /// <doc://com.apple.documentation/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app>.
 77 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 78 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 79 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
[21/22] Compiling SwiftResilience ExponentialRetryPolicy.swift
[22/22] Compiling SwiftResilience RetryPolicy.swift
BUILD FAILURE 6.1 macosSpm