Build Information
Failed to build Lurker, reference main (b7e24e), with Swift 6.3 for macOS (SPM) on 12 Apr 2026 22:18:48 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sam-Spencer/Lurker.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sam-Spencer/Lurker
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b7e24ef Create FUNDING.yml
Cloned https://github.com/Sam-Spencer/Lurker.git
Revision (git rev-parse @):
b7e24ef863a1a41af0cca5e52b4147828c97b032
SUCCESS checkout https://github.com/Sam-Spencer/Lurker.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "lurker",
"name": "Lurker",
"url": "https://github.com/Sam-Spencer/Lurker.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Lurker",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/Sam-Spencer/Lurker.git
[1/170] Fetching lurker
Fetched https://github.com/Sam-Spencer/Lurker.git from cache (1.11s)
Creating working copy for https://github.com/Sam-Spencer/Lurker.git
Working copy of https://github.com/Sam-Spencer/Lurker.git resolved at main (b7e24ef)
warning: '.resolve-product-dependencies': dependency 'lurker' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Sam-Spencer/Lurker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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) API_UNAVAILABLE(watchos)
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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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) API_UNAVAILABLE(watchos)
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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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) API_UNAVAILABLE(watchos)
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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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) API_UNAVAILABLE(watchos)
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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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) API_UNAVAILABLE(watchos)
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(name: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(name: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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:42:12: note: 'BGAppRefreshTaskRequest' has been explicitly marked unavailable here
40 | /// and app usage.
41 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos)
42 | @interface BGAppRefreshTaskRequest : BGTaskRequest
| `- note: 'BGAppRefreshTaskRequest' has been explicitly marked unavailable here
43 |
44 | /// 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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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) API_UNAVAILABLE(watchos)
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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h:61:12: note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
59 | /// has used your app within the past week.
60 | BG_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos)
61 | @interface BGProcessingTaskRequest : BGTaskRequest
| `- note: 'BGProcessingTaskRequest' has been explicitly marked unavailable here
62 |
63 | /// 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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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) API_UNAVAILABLE(watchos)
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.3 macosSpm