The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Lurker, reference 1.0.0 (010a69), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 10:25:41 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sam-Spencer/Lurker.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sam-Spencer/Lurker
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 010a697 Update README.md
Cloned https://github.com/Sam-Spencer/Lurker.git
Revision (git rev-parse @):
010a6978a7e316ff64d728b3257e5274ab874c45
SUCCESS checkout https://github.com/Sam-Spencer/Lurker.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Sam-Spencer/Lurker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module Lurker
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:111:43: error: 'BGTask' is unavailable in macOS
109 |     // MARK: - Handling
110 |
111 |     func handleMission(backgroundProcess: BGTask, mission: Mission) {
    |                                           `- error: 'BGTask' is unavailable in macOS
112 |         scheduleMission(mission)
113 |
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:17:12: note: 'BGTask' has been explicitly marked unavailable here
 15 | /// background.
 16 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 17 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 18 |
 19 | /// The string identifier of the task.
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Mission.swift:58:30: error: 'BGTask' is unavailable in macOS
56 |     ///   does not complete before the `taskInfo`'s `expirationHandler` is called.
57 |     ///
58 |     func runTask(_ taskInfo: BGTask) async -> Bool
   |                              `- error: 'BGTask' is unavailable in macOS
59 |
60 |     /// Specify the earliest allowable time (from now) that the system may schedule this
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:17:12: note: 'BGTask' has been explicitly marked unavailable here
 15 | /// background.
 16 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 17 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 18 |
 19 | /// The string identifier of the task.
[4/5] Compiling Lurker Mission.swift
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Mission.swift:58:30: error: 'BGTask' is unavailable in macOS
56 |     ///   does not complete before the `taskInfo`'s `expirationHandler` is called.
57 |     ///
58 |     func runTask(_ taskInfo: BGTask) async -> Bool
   |                              `- error: 'BGTask' is unavailable in macOS
59 |
60 |     /// Specify the earliest allowable time (from now) that the system may schedule this
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:17:12: note: 'BGTask' has been explicitly marked unavailable here
 15 | /// background.
 16 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 17 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 18 |
 19 | /// The string identifier of the task.
[5/5] Compiling Lurker Lurker.swift
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:111:43: error: 'BGTask' is unavailable in macOS
109 |     // MARK: - Handling
110 |
111 |     func handleMission(backgroundProcess: BGTask, mission: Mission) {
    |                                           `- error: 'BGTask' is unavailable in macOS
112 |         scheduleMission(mission)
113 |
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h:17:12: note: 'BGTask' has been explicitly marked unavailable here
 15 | /// background.
 16 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 17 | @interface BGTask : NSObject
    |            `- note: 'BGTask' has been explicitly marked unavailable here
 18 |
 19 | /// The string identifier of the task.
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:98:27: error: 'BGTaskScheduler' is unavailable in macOS
 96 |         guard tasksRegistered.contains(where: { $0.identifier == task.identifier }) == false else { return false }
 97 |
 98 |         let didRegister = BGTaskScheduler.shared.register(forTaskWithIdentifier: task.identifier, using: nil) { backgroundTask in
    |                           `- error: 'BGTaskScheduler' is unavailable in macOS
 99 |             self.handleMission(backgroundProcess: backgroundTask, mission: task)
100 |         }
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:64:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 62 | /// <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>.
 63 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 64 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 65 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 66 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:114:25: error: 'Task' is only available in macOS 10.15 or newer
 20 | /// `Lurker` manages all your app's tasks that need to happen in the background.
 21 | ///
 22 | public final class Lurker {
    |                    `- note: add @available attribute to enclosing class
 23 |
 24 |     /// A generic, shared instance of `Lurker`. Useful if you need to maintain
    :
109 |     // MARK: - Handling
110 |
111 |     func handleMission(backgroundProcess: BGTask, mission: Mission) {
    |          `- note: add @available attribute to enclosing instance method
112 |         scheduleMission(mission)
113 |
114 |         let taskQueue = Task {
    |                         |- error: 'Task' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
115 |             let success = await mission.runTask(backgroundProcess)
116 |             backgroundProcess.setTaskCompleted(success: success)
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:114:25: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 20 | /// `Lurker` manages all your app's tasks that need to happen in the background.
 21 | ///
 22 | public final class Lurker {
    |                    `- note: add @available attribute to enclosing class
 23 |
 24 |     /// A generic, shared instance of `Lurker`. Useful if you need to maintain
    :
109 |     // MARK: - Handling
110 |
111 |     func handleMission(backgroundProcess: BGTask, mission: Mission) {
    |          `- note: add @available attribute to enclosing instance method
112 |         scheduleMission(mission)
113 |
114 |         let taskQueue = Task {
    |                         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
115 |             let success = await mission.runTask(backgroundProcess)
116 |             backgroundProcess.setTaskCompleted(success: success)
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:122:23: error: 'cancel()' is only available in macOS 10.15 or newer
 20 | /// `Lurker` manages all your app's tasks that need to happen in the background.
 21 | ///
 22 | public final class Lurker {
    |                    `- note: add @available attribute to enclosing class
 23 |
 24 |     /// A generic, shared instance of `Lurker`. Useful if you need to maintain
    :
109 |     // MARK: - Handling
110 |
111 |     func handleMission(backgroundProcess: BGTask, mission: Mission) {
    |          `- note: add @available attribute to enclosing instance method
112 |         scheduleMission(mission)
113 |
    :
120 |             // After all operations are cancelled, the completion block below is called to set
121 |             // the task to complete.
122 |             taskQueue.cancel()
    |                       |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                       `- note: add 'if #available' version check
123 |         }
124 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:150:31: error: 'BGAppRefreshTaskRequest' is unavailable in macOS
148 |             switch task.style {
149 |             case .brief:
150 |                 let request = BGAppRefreshTaskRequest(identifier: task.identifier)
    |                               `- error: 'BGAppRefreshTaskRequest' is unavailable in macOS
151 |                 request.earliestBeginDate = task.earliestStart()
152 |                 try BGTaskScheduler.shared.submit(request)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:54:12: note: 'BGAppRefreshTaskRequest' has been explicitly marked unavailable here
 52 | /// A request to launch your app in the background to execute a short refresh task.
 53 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 54 | @interface BGAppRefreshTaskRequest : BGTaskRequest
    |            `- note: 'BGAppRefreshTaskRequest' has been explicitly marked unavailable here
 55 |
 56 | /// Return a new refresh task request for the specified identifier.
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:152:21: error: 'BGTaskScheduler' is unavailable in macOS
150 |                 let request = BGAppRefreshTaskRequest(identifier: task.identifier)
151 |                 request.earliestBeginDate = task.earliestStart()
152 |                 try BGTaskScheduler.shared.submit(request)
    |                     `- error: 'BGTaskScheduler' is unavailable in macOS
153 |             case .extended:
154 |                 let request = BGProcessingTaskRequest(identifier: task.identifier)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:64:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 62 | /// <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>.
 63 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 64 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 65 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 66 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:154:31: error: 'BGProcessingTaskRequest' is unavailable in macOS
152 |                 try BGTaskScheduler.shared.submit(request)
153 |             case .extended:
154 |                 let request = BGProcessingTaskRequest(identifier: task.identifier)
    |                               `- error: 'BGProcessingTaskRequest' is unavailable in macOS
155 |                 request.earliestBeginDate = task.earliestStart()
156 |                 try BGTaskScheduler.shared.submit(request)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:74:12: note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 72 | /// that can take minutes to complete.
 73 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 74 | @interface BGProcessingTaskRequest : BGTaskRequest
    |            `- note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
 75 |
 76 | /// Return a new processing task request for the specified identifier.
/Users/admin/builder/spi-builder-workspace/Sources/Lurker/Lurker.swift:156:21: error: 'BGTaskScheduler' is unavailable in macOS
154 |                 let request = BGProcessingTaskRequest(identifier: task.identifier)
155 |                 request.earliestBeginDate = task.earliestStart()
156 |                 try BGTaskScheduler.shared.submit(request)
    |                     `- error: 'BGTaskScheduler' is unavailable in macOS
157 |             }
158 |         } catch {
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h:64:12: note: 'BGTaskScheduler' has been explicitly marked unavailable here
 62 | /// <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>.
 63 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos)
 64 | @interface BGTaskScheduler : NSObject
    |            `- note: 'BGTaskScheduler' has been explicitly marked unavailable here
 65 | - (instancetype)init NS_UNAVAILABLE; //Use the shared scheduler object instead
 66 | + (instancetype)new NS_UNAVAILABLE; //Use the shared scheduler object instead
BUILD FAILURE 6.2 macosSpm