The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LocalNotificationEditor, reference main (c2203d), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 08:15:31 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ryu0118/LocalNotificationEditor.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ryu0118/LocalNotificationEditor
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c2203de Merge pull request #2 from Ryu0118/feature/abstract-user-notification-center
Cloned https://github.com/Ryu0118/LocalNotificationEditor.git
Revision (git rev-parse @):
c2203de127905d09aebc192d425f1dfd082775e1
SUCCESS checkout https://github.com/Ryu0118/LocalNotificationEditor.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": "localnotificationeditor",
      "name": "LocalNotificationEditor",
      "url": "https://github.com/Ryu0118/LocalNotificationEditor.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LocalNotificationEditor",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Ryu0118/LocalNotificationEditor.git
[1/65] Fetching localnotificationeditor
Fetched https://github.com/Ryu0118/LocalNotificationEditor.git from cache (0.62s)
Creating working copy for https://github.com/Ryu0118/LocalNotificationEditor.git
Working copy of https://github.com/Ryu0118/LocalNotificationEditor.git resolved at main (c2203de)
warning: '.resolve-product-dependencies': dependency 'localnotificationeditor' 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/Ryu0118/LocalNotificationEditor.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
[3/9] Compiling LocalNotificationEditor NotificationCenterProtocol.swift
[4/9] Compiling LocalNotificationEditor LocalNotificationList.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/LocalNotificationList.swift:59:17: error: 'ContentUnavailableView' is only available in macOS 14.0 or newer
  2 | import UserNotifications
  3 |
  4 | public struct LocalNotificationList: View {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @State var notificationRequests: [UNNotificationRequest] = []
  6 |     @State var selectedRequest: IdentifiableBox<UNNotificationRequest, String>?
    :
 14 |     }
 15 |
 16 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 17 |         List {
 18 |             ForEach(notificationRequests, id: \.identifier) { request in
    :
 57 |         .overlay {
 58 |             if notificationRequests.isEmpty, #available(iOS 17.0, *) {
 59 |                 ContentUnavailableView(
    |                 |- error: 'ContentUnavailableView' is only available in macOS 14.0 or newer
    |                 `- note: add 'if #available' version check
 60 |                     "No Pending Notifications",
 61 |                     systemImage: "bell.slash.fill",
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/LocalNotificationList.swift:59:17: error: 'init(_:systemImage:description:)' is only available in macOS 14.0 or newer
  2 | import UserNotifications
  3 |
  4 | public struct LocalNotificationList: View {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @State var notificationRequests: [UNNotificationRequest] = []
  6 |     @State var selectedRequest: IdentifiableBox<UNNotificationRequest, String>?
    :
 14 |     }
 15 |
 16 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 17 |         List {
 18 |             ForEach(notificationRequests, id: \.identifier) { request in
    :
 57 |         .overlay {
 58 |             if notificationRequests.isEmpty, #available(iOS 17.0, *) {
 59 |                 ContentUnavailableView(
    |                 |- error: 'init(_:systemImage:description:)' is only available in macOS 14.0 or newer
    |                 `- note: add 'if #available' version check
 60 |                     "No Pending Notifications",
 61 |                     systemImage: "bell.slash.fill",
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/LocalNotificationList.swift:67:37: error: 'topBarTrailing' is unavailable in macOS
 65 |         }
 66 |         .toolbar {
 67 |             ToolbarItem(placement: .topBarTrailing) {
    |                                     `- error: 'topBarTrailing' is unavailable in macOS
 68 |                 Button {
 69 |                     isDeleteAllAlertPresented = true
SwiftUI.ToolbarItemPlacement.topBarTrailing:5:21: note: 'topBarTrailing' has been explicitly marked unavailable here
3 |   @backDeployed(before: iOS 17.0, tvOS 17.0)
4 |   @available(macOS, unavailable)
5 |   public static var topBarTrailing: ToolbarItemPlacement { get }}
  |                     `- note: 'topBarTrailing' has been explicitly marked unavailable here
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/LocalNotificationList.swift:75:37: error: 'topBarTrailing' is unavailable in macOS
 73 |                 }
 74 |             }
 75 |             ToolbarItem(placement: .topBarTrailing) {
    |                                     `- error: 'topBarTrailing' is unavailable in macOS
 76 |                 Button {
 77 |                     isAddNotificationEditorPresented = true
SwiftUI.ToolbarItemPlacement.topBarTrailing:5:21: note: 'topBarTrailing' has been explicitly marked unavailable here
3 |   @backDeployed(before: iOS 17.0, tvOS 17.0)
4 |   @available(macOS, unavailable)
5 |   public static var topBarTrailing: ToolbarItemPlacement { get }}
  |                     `- note: 'topBarTrailing' has been explicitly marked unavailable here
6 |
[5/9] Compiling LocalNotificationEditor IdentifiableBox.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Compiling LocalNotificationEditor Dictionary+compactMapKeys.swift
[7/9] Compiling LocalNotificationEditor Dictionary+json.swift
[8/9] Emitting module LocalNotificationEditor
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:49:23: error: 'UNLocationNotificationTrigger' is unavailable in macOS
 47 |         case timeInterval(UNTimeIntervalNotificationTrigger)
 48 |         case calendar(UNCalendarNotificationTrigger)
 49 |         case location(UNLocationNotificationTrigger)
    |                       `- error: 'UNLocationNotificationTrigger' is unavailable in macOS
 50 |
 51 |         var trigger: UNNotificationTrigger {
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h:56:12: note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
54 | // UNLocationNotificationTrigger can be scheduled on the device to notify when the user enters or leaves a geographic region. The identifier on CLRegion must be unique. Scheduling multiple UNNotificationRequests with different regions containing the same identifier will result in undefined behavior. The number of UNLocationNotificationTriggers that may be scheduled by an application at any one time is limited by the system. Applications must have "when-in-use" authorization through CoreLocation. See the CoreLocation documentation for more information.
55 | API_AVAILABLE(ios(10.0), watchos(3.0)) API_UNAVAILABLE(macos, tvos, macCatalyst, visionos)
56 | @interface UNLocationNotificationTrigger : UNNotificationTrigger
   |            `- note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
57 |
58 | @property (NS_NONATOMIC_IOSONLY, readonly, copy) CLRegion *region;
[9/9] Compiling LocalNotificationEditor LocalNotificationEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:49:23: error: 'UNLocationNotificationTrigger' is unavailable in macOS
 47 |         case timeInterval(UNTimeIntervalNotificationTrigger)
 48 |         case calendar(UNCalendarNotificationTrigger)
 49 |         case location(UNLocationNotificationTrigger)
    |                       `- error: 'UNLocationNotificationTrigger' is unavailable in macOS
 50 |
 51 |         var trigger: UNNotificationTrigger {
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h:56:12: note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
54 | // UNLocationNotificationTrigger can be scheduled on the device to notify when the user enters or leaves a geographic region. The identifier on CLRegion must be unique. Scheduling multiple UNNotificationRequests with different regions containing the same identifier will result in undefined behavior. The number of UNLocationNotificationTriggers that may be scheduled by an application at any one time is limited by the system. Applications must have "when-in-use" authorization through CoreLocation. See the CoreLocation documentation for more information.
55 | API_AVAILABLE(ios(10.0), watchos(3.0)) API_UNAVAILABLE(macos, tvos, macCatalyst, visionos)
56 | @interface UNLocationNotificationTrigger : UNNotificationTrigger
   |            `- note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
57 |
58 | @property (NS_NONATOMIC_IOSONLY, readonly, copy) CLRegion *region;
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:83:60: error: 'launchImageName' is unavailable in macOS
 81 |             _categoryIdentifier = State(initialValue: content.categoryIdentifier)
 82 |             _interruptionLevel = State(initialValue: content.interruptionLevel.rawValue)
 83 |             _launchImageName = State(initialValue: content.launchImageName)
    |                                                            `- error: 'launchImageName' is unavailable in macOS
 84 |             _relevanceScore = State(initialValue: content.relevanceScore)
 85 |             _targetContentIdentifier = State(initialValue: content.targetContentIdentifier)
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:60: note: 'launchImageName' has been explicitly marked unavailable here
 49 |
 50 | // The launch image that will be used when the app is opened from the notification.
 51 | @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *launchImageName API_UNAVAILABLE(macos, tvos);
    |                                                            `- note: 'launchImageName' has been explicitly marked unavailable here
 52 |
 53 | // The sound that will be played for the notification.
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:89:63: error: 'filterCriteria' is only available in macOS 13.0 or newer
  3 | import CoreLocation
  4 |
  5 | struct LocalNotificationEditor: View {
    |        `- note: add '@available' attribute to enclosing struct
  6 |     @Environment(\.dismiss) private var dismiss
  7 |
    :
 61 |     }
 62 |
 63 |     init(
    |     `- note: add '@available' attribute to enclosing initializer
 64 |         userNotificationCenter: some UNUserNotificationCenterProtocol,
 65 |         mode: Mode,
    :
 87 |             _userInfoString = State(initialValue: "{}")
 88 |             if #available(iOS 16.0, *) {
 89 |                 _filterCriteria = State(initialValue: content.filterCriteria)
    |                                                               |- error: 'filterCriteria' is only available in macOS 13.0 or newer
    |                                                               `- note: add 'if #available' version check
 90 |             }
 91 |             var dateComponents = Calendar.current.dateComponents(
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:106:68: error: 'launchImageName' is unavailable in macOS
104 |             _categoryIdentifier = State(initialValue: request.content.categoryIdentifier)
105 |             _interruptionLevel = State(initialValue: request.content.interruptionLevel.rawValue)
106 |             _launchImageName = State(initialValue: request.content.launchImageName)
    |                                                                    `- error: 'launchImageName' is unavailable in macOS
107 |             _relevanceScore = State(initialValue: request.content.relevanceScore)
108 |             _targetContentIdentifier = State(initialValue: request.content.targetContentIdentifier)
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:60: note: 'launchImageName' has been explicitly marked unavailable here
 49 |
 50 | // The launch image that will be used when the app is opened from the notification.
 51 | @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *launchImageName API_UNAVAILABLE(macos, tvos);
    |                                                            `- note: 'launchImageName' has been explicitly marked unavailable here
 52 |
 53 | // The sound that will be played for the notification.
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:116:71: error: 'filterCriteria' is only available in macOS 13.0 or newer
  3 | import CoreLocation
  4 |
  5 | struct LocalNotificationEditor: View {
    |        `- note: add '@available' attribute to enclosing struct
  6 |     @Environment(\.dismiss) private var dismiss
  7 |
    :
 61 |     }
 62 |
 63 |     init(
    |     `- note: add '@available' attribute to enclosing initializer
 64 |         userNotificationCenter: some UNUserNotificationCenterProtocol,
 65 |         mode: Mode,
    :
114 |             )
115 |             if #available(iOS 16.0, *) {
116 |                 _filterCriteria = State(initialValue: request.content.filterCriteria)
    |                                                                       |- error: 'filterCriteria' is only available in macOS 13.0 or newer
    |                                                                       `- note: add 'if #available' version check
117 |             }
118 |             _triggerType = State(initialValue: {
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:123:61: error: 'UNLocationNotificationTrigger' is unavailable in macOS
121 |                 } else if let trigger = request.trigger as? UNTimeIntervalNotificationTrigger {
122 |                     return .timeInterval(trigger)
123 |                 } else if let trigger = request.trigger as? UNLocationNotificationTrigger {
    |                                                             `- error: 'UNLocationNotificationTrigger' is unavailable in macOS
124 |                     return .location(trigger)
125 |                 } else {
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h:56:12: note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
54 | // UNLocationNotificationTrigger can be scheduled on the device to notify when the user enters or leaves a geographic region. The identifier on CLRegion must be unique. Scheduling multiple UNNotificationRequests with different regions containing the same identifier will result in undefined behavior. The number of UNLocationNotificationTriggers that may be scheduled by an application at any one time is limited by the system. Applications must have "when-in-use" authorization through CoreLocation. See the CoreLocation documentation for more information.
55 | API_AVAILABLE(ios(10.0), watchos(3.0)) API_UNAVAILABLE(macos, tvos, macCatalyst, visionos)
56 | @interface UNLocationNotificationTrigger : UNNotificationTrigger
   |            `- note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
57 |
58 | @property (NS_NONATOMIC_IOSONLY, readonly, copy) CLRegion *region;
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:237:41: error: 'topBarTrailing' is unavailable in macOS
235 |             }
236 |             .toolbar {
237 |                 ToolbarItem(placement: .topBarTrailing) {
    |                                         `- error: 'topBarTrailing' is unavailable in macOS
238 |                     Button("Save") {
239 |                         Task { try await saveButtonTapped() }
SwiftUI.ToolbarItemPlacement.topBarTrailing:5:21: note: 'topBarTrailing' has been explicitly marked unavailable here
3 |   @backDeployed(before: iOS 17.0, tvOS 17.0)
4 |   @available(macOS, unavailable)
5 |   public static var topBarTrailing: ToolbarItemPlacement { get }}
  |                     `- note: 'topBarTrailing' has been explicitly marked unavailable here
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:332:29: error: 'UNLocationNotificationTrigger' is unavailable in macOS
330 |                     set: {
331 |                         triggerType = .location(
332 |                             UNLocationNotificationTrigger(
    |                             `- error: 'UNLocationNotificationTrigger' is unavailable in macOS
333 |                                 region: trigger.region,
334 |                                 repeats: $0
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h:56:12: note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
54 | // UNLocationNotificationTrigger can be scheduled on the device to notify when the user enters or leaves a geographic region. The identifier on CLRegion must be unique. Scheduling multiple UNNotificationRequests with different regions containing the same identifier will result in undefined behavior. The number of UNLocationNotificationTriggers that may be scheduled by an application at any one time is limited by the system. Applications must have "when-in-use" authorization through CoreLocation. See the CoreLocation documentation for more information.
55 | API_AVAILABLE(ios(10.0), watchos(3.0)) API_UNAVAILABLE(macos, tvos, macCatalyst, visionos)
56 | @interface UNLocationNotificationTrigger : UNNotificationTrigger
   |            `- note: 'UNLocationNotificationTrigger' has been explicitly marked unavailable here
57 |
58 | @property (NS_NONATOMIC_IOSONLY, readonly, copy) CLRegion *region;
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:379:17: error: 'launchImageName' is unavailable in macOS
377 |             content.interruptionLevel = level
378 |         }
379 |         content.launchImageName = launchImageName
    |                 `- error: 'launchImageName' is unavailable in macOS
380 |         content.relevanceScore = relevanceScore
381 |         content.subtitle = subtitle
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:113:61: note: 'launchImageName' has been explicitly marked unavailable here
111 |
112 | // The launch image that will be used when the app is opened from the notification.
113 | @property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *launchImageName API_UNAVAILABLE(macos, tvos);
    |                                                             `- note: 'launchImageName' has been explicitly marked unavailable here
114 |
115 | // The sound that will be played for the notification.
/Users/admin/builder/spi-builder-workspace/Sources/LocalNotificationEditor/Internal/LocalNotificationEditor.swift:386:21: error: 'filterCriteria' is only available in macOS 13.0 or newer
  3 | import CoreLocation
  4 |
  5 | struct LocalNotificationEditor: View {
    |        `- note: add '@available' attribute to enclosing struct
  6 |     @Environment(\.dismiss) private var dismiss
  7 |
    :
360 |     }
361 |
362 |     private func createNotificationContent() -> UNNotificationContent {
    |                  `- note: add '@available' attribute to enclosing instance method
363 |         let content = UNMutableNotificationContent()
364 |         content.title = title
    :
384 |         content.userInfo = userInfo
385 |         if #available(iOS 16.0, *) {
386 |             content.filterCriteria = filterCriteria
    |                     |- error: 'filterCriteria' is only available in macOS 13.0 or newer
    |                     `- note: add 'if #available' version check
387 |         }
388 |         return content
BUILD FAILURE 6.3 macosSpm