The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoreDataRepo, reference 1.0.3 (f2db33), with Swift 6.1 for macOS (SPM) on 29 Jun 2026 15:43:39 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/Darktau/CoreDataRepo.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Darktau/CoreDataRepo
 * tag               1.0.3      -> FETCH_HEAD
HEAD is now at f2db339 Public release
Cloned https://github.com/Darktau/CoreDataRepo.git
Revision (git rev-parse @):
f2db339223bb949128270fb521d722f9878af880
SUCCESS checkout https://github.com/Darktau/CoreDataRepo.git at 1.0.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Darktau/CoreDataRepo.git
https://github.com/Darktau/CoreDataRepo.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CoreDataRepo",
  "name" : "CoreDataRepo",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "CoreDataRepo",
      "targets" : [
        "CoreDataRepo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CoreDataRepo",
      "module_type" : "SwiftTarget",
      "name" : "CoreDataRepo",
      "path" : "Sources/CoreDataRepo",
      "product_memberships" : [
        "CoreDataRepo"
      ],
      "sources" : [
        "DataCounter.swift",
        "DataRepo.swift",
        "ManagedContext.swift",
        "Notifications.swift",
        "Predicates.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/8] Compiling CoreDataRepo ManagedContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 10 |
 11 | public extension NSManagedObjectContext {
 12 |     public func fetch<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 13 |         _ entityType:T.Type,
 14 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:42:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 40 |     }
 41 |
 42 |     public func count<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 43 |         _ entityType:T.Type,
 44 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:101:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 99 |     }
100 |
101 |     public func countAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
102 |         _ entityType: T.Type,
103 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:137:5: warning: 'public' modifier is redundant for instance method declared in a public extension
135 | public extension NSManagedObjectContext {
136 |
137 |     public func saveChanges(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:158:5: warning: 'public' modifier is redundant for instance method declared in a public extension
156 |
157 |
158 |     public func saveChangesSync(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
159 |         _ refresher: Notification.Name = .managedContextChanged,
160 |         push:Bool = true) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:78:16: error: 'Task' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 76 |         debug:Bool = false
 77 |     ) async -> [T] {
 78 |         guard !Task.isCancelled else { return [] }
    |                |- error: 'Task' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 79 |         let sendablePredicate = SendablePredicate(value: predicate)
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:78:21: error: 'isCancelled' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 76 |         debug:Bool = false
 77 |     ) async -> [T] {
 78 |         guard !Task.isCancelled else { return [] }
    |                     |- error: 'isCancelled' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 79 |         let sendablePredicate = SendablePredicate(value: predicate)
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:90:33: warning: coercion from '[any NSFetchRequestResult]' to '[T]' may fail; use 'as?' or 'as!' instead
 88 |             if let limit = limit { request.fetchLimit = limit }
 89 |             do {
 90 |                 return try self.fetch(request) as [T]
    |                                 `- warning: coercion from '[any NSFetchRequestResult]' to '[T]' may fail; use 'as?' or 'as!' instead
 91 |             } catch let error {
 92 |                 if debug {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:81:22: error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 79 |         let sendablePredicate = SendablePredicate(value: predicate)
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
 81 |         return await perform {
    |                      |- error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
    |                      `- note: add 'if #available' version check
 82 |             guard !Task.isCancelled else { return [] }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:82:20: error: 'Task' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
 81 |         return await perform {
 82 |             guard !Task.isCancelled else { return [] }
    |                    |- error: 'Task' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 83 |
 84 |             let request = entityType.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:82:25: error: 'isCancelled' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
 81 |         return await perform {
 82 |             guard !Task.isCancelled else { return [] }
    |                         |- error: 'isCancelled' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 83 |
 84 |             let request = entityType.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:108:22: error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
    :
 99 |     }
100 |
101 |     public func countAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
102 |         _ entityType: T.Type,
103 |         predicate: NSPredicate? = nil,
    :
106 |     ) async -> Int {
107 |         let sendablePredicate = SendablePredicate(value: predicate)
108 |         return await perform {
    |                      |- error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
    |                      `- note: add 'if #available' version check
109 |             let request = entityType.fetchRequest()
110 |             request.predicate = sendablePredicate.value
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:146:27: error: 'MainActor' is only available in macOS 10.15 or newer
133 |
134 |
135 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
136 |
137 |     public func saveChanges(
    |                 `- note: add @available attribute to enclosing instance method
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
    :
144 |
145 |                 if push {
146 |                     await MainActor.run {
    |                           |- error: 'MainActor' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
147 |                         NotificationCenter.default.post(name: refresher, object: nil)
148 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:146:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
133 |
134 |
135 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
136 |
137 |     public func saveChanges(
    |                 `- note: add @available attribute to enclosing instance method
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
    :
144 |
145 |                 if push {
146 |                     await MainActor.run {
    |                                     |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
147 |                         NotificationCenter.default.post(name: refresher, object: nil)
148 |                     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling CoreDataRepo Predicates.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:12:23: warning: static property 'truePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
   |                       |- warning: static property 'truePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'truePredicate' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     public static let falsePredicate = NSPredicate.init(value: false)
14 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h:17:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
15 |
16 | API_AVAILABLE(macos(10.4), ios(3.0), watchos(2.0), tvos(9.0))
17 | @interface NSPredicate : NSObject <NSSecureCoding, NSCopying> {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
18 |     struct _predicateFlags {
19 |         unsigned int _evaluationBlocked:1;
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:12:5: warning: 'public' modifier is redundant for static property declared in a public extension
10 |
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
13 |     public static let falsePredicate = NSPredicate.init(value: false)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:13:23: warning: static property 'falsePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
13 |     public static let falsePredicate = NSPredicate.init(value: false)
   |                       |- warning: static property 'falsePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'falsePredicate' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h:17:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
15 |
16 | API_AVAILABLE(macos(10.4), ios(3.0), watchos(2.0), tvos(9.0))
17 | @interface NSPredicate : NSObject <NSSecureCoding, NSCopying> {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
18 |     struct _predicateFlags {
19 |         unsigned int _evaluationBlocked:1;
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:13:5: warning: 'public' modifier is redundant for static property declared in a public extension
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
13 |     public static let falsePredicate = NSPredicate.init(value: false)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
14 | }
15 |
[5/8] Emitting module CoreDataRepo
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:13:30: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   |                              `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
14 |     private var context:NSManagedObjectContext
15 |     private var refresher:NSNotification.Name
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:29:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
27 |     }
28 |
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:31:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:12:29: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
   |                             `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
13 |
14 |     private var context:NSManagedObjectContext
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:38:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
36 |     }
37 |
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:40:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 10 |
 11 | public extension NSManagedObjectContext {
 12 |     public func fetch<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 13 |         _ entityType:T.Type,
 14 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:42:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 40 |     }
 41 |
 42 |     public func count<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 43 |         _ entityType:T.Type,
 44 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:101:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 99 |     }
100 |
101 |     public func countAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
102 |         _ entityType: T.Type,
103 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:137:5: warning: 'public' modifier is redundant for instance method declared in a public extension
135 | public extension NSManagedObjectContext {
136 |
137 |     public func saveChanges(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:158:5: warning: 'public' modifier is redundant for instance method declared in a public extension
156 |
157 |
158 |     public func saveChangesSync(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
159 |         _ refresher: Notification.Name = .managedContextChanged,
160 |         push:Bool = true) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Notifications.swift:11:5: warning: 'public' modifier is redundant for static property declared in a public extension
 9 |
10 | public extension Notification.Name {
11 |     public static let managedContextChanged = Notification.Name("com.coredatarepo.managedContextChanged")
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:12:23: warning: static property 'truePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
   |                       |- warning: static property 'truePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'truePredicate' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     public static let falsePredicate = NSPredicate.init(value: false)
14 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h:17:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
15 |
16 | API_AVAILABLE(macos(10.4), ios(3.0), watchos(2.0), tvos(9.0))
17 | @interface NSPredicate : NSObject <NSSecureCoding, NSCopying> {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
18 |     struct _predicateFlags {
19 |         unsigned int _evaluationBlocked:1;
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:12:5: warning: 'public' modifier is redundant for static property declared in a public extension
10 |
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
13 |     public static let falsePredicate = NSPredicate.init(value: false)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:13:23: warning: static property 'falsePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
13 |     public static let falsePredicate = NSPredicate.init(value: false)
   |                       |- warning: static property 'falsePredicate' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'falsePredicate' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h:17:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
15 |
16 | API_AVAILABLE(macos(10.4), ios(3.0), watchos(2.0), tvos(9.0))
17 | @interface NSPredicate : NSObject <NSSecureCoding, NSCopying> {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
18 |     struct _predicateFlags {
19 |         unsigned int _evaluationBlocked:1;
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:13:5: warning: 'public' modifier is redundant for static property declared in a public extension
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
13 |     public static let falsePredicate = NSPredicate.init(value: false)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
14 | }
15 |
[6/8] Compiling CoreDataRepo Notifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Notifications.swift:11:5: warning: 'public' modifier is redundant for static property declared in a public extension
 9 |
10 | public extension Notification.Name {
11 |     public static let managedContextChanged = Notification.Name("com.coredatarepo.managedContextChanged")
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
12 | }
13 |
[7/8] Compiling CoreDataRepo DataRepo.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:12:29: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
   |                             `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
13 |
14 |     private var context:NSManagedObjectContext
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:38:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
36 |     }
37 |
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:40:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:42:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   |              |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
43 |             .prepend(Notification(name: refresher))
44 |             .combineLatest(predicate)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:43:14: error: 'prepend' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
43 |             .prepend(Notification(name: refresher))
   |              |- error: 'prepend' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
44 |             .combineLatest(predicate)
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:44:14: error: 'combineLatest' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
43 |             .prepend(Notification(name: refresher))
44 |             .combineLatest(predicate)
   |              |- error: 'combineLatest' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
46 |             .map { [weak self] (_, predicate) in
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:45:14: error: 'throttle(for:scheduler:latest:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
43 |             .prepend(Notification(name: refresher))
44 |             .combineLatest(predicate)
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
   |              |- error: 'throttle(for:scheduler:latest:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
46 |             .map { [weak self] (_, predicate) in
47 |                 let subject = PassthroughSubject<[Entity], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:46:14: error: 'map' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
44 |             .combineLatest(predicate)
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
46 |             .map { [weak self] (_, predicate) in
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
47 |                 let subject = PassthroughSubject<[Entity], Never>()
48 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:47:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
46 |             .map { [weak self] (_, predicate) in
47 |                 let subject = PassthroughSubject<[Entity], Never>()
   |                               |- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
   |                               `- note: add 'if #available' version check
48 |
49 |                 let task = Task { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:49:28: error: 'Task' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
47 |                 let subject = PassthroughSubject<[Entity], Never>()
48 |
49 |                 let task = Task { [weak self] in
   |                            |- error: 'Task' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
50 |                     guard let self else {
51 |                         subject.send([])
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:49:28: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
47 |                 let subject = PassthroughSubject<[Entity], Never>()
48 |
49 |                 let task = Task { [weak self] in
   |                            |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
50 |                     guard let self else {
51 |                         subject.send([])
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:61:28: error: 'Task' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
59 |                                                                limit: self.limit,
60 |                                                                debug: self.debug)
61 |                     guard !Task.isCancelled else { return }
   |                            |- error: 'Task' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
62 |                     subject.send(result)
63 |                     subject.send(completion: .finished)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:61:33: error: 'isCancelled' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
59 |                                                                limit: self.limit,
60 |                                                                debug: self.debug)
61 |                     guard !Task.isCancelled else { return }
   |                                 |- error: 'isCancelled' is only available in macOS 10.15 or newer
   |                                 `- note: add 'if #available' version check
62 |                     subject.send(result)
63 |                     subject.send(completion: .finished)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:67:22: error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
65 |
66 |                 return subject
67 |                     .handleEvents(receiveCancel: { task.cancel() })
   |                      |- error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
68 |                     .eraseToAnyPublisher()
69 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:67:57: error: 'cancel()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
65 |
66 |                 return subject
67 |                     .handleEvents(receiveCancel: { task.cancel() })
   |                                                         |- error: 'cancel()' is only available in macOS 10.15 or newer
   |                                                         `- note: add 'if #available' version check
68 |                     .eraseToAnyPublisher()
69 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:68:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
66 |                 return subject
67 |                     .handleEvents(receiveCancel: { task.cancel() })
68 |                     .eraseToAnyPublisher()
   |                      |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
69 |             }
70 |             .switchToLatest()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:70:14: error: 'switchToLatest()' is only available in macOS 11.0 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
68 |                     .eraseToAnyPublisher()
69 |             }
70 |             .switchToLatest()
   |              |- error: 'switchToLatest()' is only available in macOS 11.0 or newer
   |              `- note: add 'if #available' version check
71 |             .receive(on: DispatchQueue.main)
72 |             .eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
69 |             }
70 |             .switchToLatest()
71 |             .receive(on: DispatchQueue.main)
   |              |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
72 |             .eraseToAnyPublisher()
73 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:72:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
70 |             .switchToLatest()
71 |             .receive(on: DispatchQueue.main)
72 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
73 |     }
74 |
[8/8] Compiling CoreDataRepo DataCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:13:30: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   |                              `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
14 |     private var context:NSManagedObjectContext
15 |     private var refresher:NSNotification.Name
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:29:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
27 |     }
28 |
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:31:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:33:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
   |              |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
34 |             .prepend(Notification(name: refresher))
35 |             .combineLatest(predicates)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:34:14: error: 'prepend' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
34 |             .prepend(Notification(name: refresher))
   |              |- error: 'prepend' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
35 |             .combineLatest(predicates)
36 |             .map {[weak self] (_, predicates) in
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:35:14: error: 'combineLatest' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
34 |             .prepend(Notification(name: refresher))
35 |             .combineLatest(predicates)
   |              |- error: 'combineLatest' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
36 |             .map {[weak self] (_, predicates) in
37 |                 guard let self else { return [:]}
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:36:14: error: 'map' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
34 |             .prepend(Notification(name: refresher))
35 |             .combineLatest(predicates)
36 |             .map {[weak self] (_, predicates) in
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
37 |                 guard let self else { return [:]}
38 |                 var result:[String:Int] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:46:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
   :
44 |                 return result
45 |             }
46 |             .receive(on: DispatchQueue.main)
   |              |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
47 |             .eraseToAnyPublisher()
48 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:47:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
   :
45 |             }
46 |             .receive(on: DispatchQueue.main)
47 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
48 |     }
49 |
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/7] Compiling CoreDataRepo Predicates.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:12:5: warning: 'public' modifier is redundant for static property declared in a public extension
10 |
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
13 |     public static let falsePredicate = NSPredicate.init(value: false)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:13:5: warning: 'public' modifier is redundant for static property declared in a public extension
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
13 |     public static let falsePredicate = NSPredicate.init(value: false)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
14 | }
15 |
[3/7] Compiling CoreDataRepo Notifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Notifications.swift:11:5: warning: 'public' modifier is redundant for static property declared in a public extension
 9 |
10 | public extension Notification.Name {
11 |     public static let managedContextChanged = Notification.Name("com.coredatarepo.managedContextChanged")
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
12 | }
13 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module CoreDataRepo
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:13:30: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   |                              `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
14 |     private var context:NSManagedObjectContext
15 |     private var refresher:NSNotification.Name
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:29:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
27 |     }
28 |
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:31:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:12:29: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
   |                             `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
13 |
14 |     private var context:NSManagedObjectContext
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:38:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
36 |     }
37 |
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:40:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 10 |
 11 | public extension NSManagedObjectContext {
 12 |     public func fetch<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 13 |         _ entityType:T.Type,
 14 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:42:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 40 |     }
 41 |
 42 |     public func count<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 43 |         _ entityType:T.Type,
 44 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:101:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 99 |     }
100 |
101 |     public func countAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
102 |         _ entityType: T.Type,
103 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:137:5: warning: 'public' modifier is redundant for instance method declared in a public extension
135 | public extension NSManagedObjectContext {
136 |
137 |     public func saveChanges(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:158:5: warning: 'public' modifier is redundant for instance method declared in a public extension
156 |
157 |
158 |     public func saveChangesSync(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
159 |         _ refresher: Notification.Name = .managedContextChanged,
160 |         push:Bool = true) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Notifications.swift:11:5: warning: 'public' modifier is redundant for static property declared in a public extension
 9 |
10 | public extension Notification.Name {
11 |     public static let managedContextChanged = Notification.Name("com.coredatarepo.managedContextChanged")
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:12:5: warning: 'public' modifier is redundant for static property declared in a public extension
10 |
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
13 |     public static let falsePredicate = NSPredicate.init(value: false)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/Predicates.swift:13:5: warning: 'public' modifier is redundant for static property declared in a public extension
11 | public extension NSPredicate {
12 |     public static let truePredicate = NSPredicate.init(value: true)
13 |     public static let falsePredicate = NSPredicate.init(value: false)
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
14 | }
15 |
[5/7] Compiling CoreDataRepo DataRepo.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:12:29: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
   |                             `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
13 |
14 |     private var context:NSManagedObjectContext
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:38:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
36 |     }
37 |
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:40:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:42:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   |              |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
43 |             .prepend(Notification(name: refresher))
44 |             .combineLatest(predicate)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:43:14: error: 'prepend' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
43 |             .prepend(Notification(name: refresher))
   |              |- error: 'prepend' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
44 |             .combineLatest(predicate)
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:44:14: error: 'combineLatest' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
43 |             .prepend(Notification(name: refresher))
44 |             .combineLatest(predicate)
   |              |- error: 'combineLatest' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
46 |             .map { [weak self] (_, predicate) in
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:45:14: error: 'throttle(for:scheduler:latest:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
43 |             .prepend(Notification(name: refresher))
44 |             .combineLatest(predicate)
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
   |              |- error: 'throttle(for:scheduler:latest:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
46 |             .map { [weak self] (_, predicate) in
47 |                 let subject = PassthroughSubject<[Entity], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:46:14: error: 'map' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
44 |             .combineLatest(predicate)
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
46 |             .map { [weak self] (_, predicate) in
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
47 |                 let subject = PassthroughSubject<[Entity], Never>()
48 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:47:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
45 |             .throttle(for: .seconds(0.3), scheduler: DispatchQueue.global(), latest: true)
46 |             .map { [weak self] (_, predicate) in
47 |                 let subject = PassthroughSubject<[Entity], Never>()
   |                               |- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
   |                               `- note: add 'if #available' version check
48 |
49 |                 let task = Task { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:49:28: error: 'Task' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
47 |                 let subject = PassthroughSubject<[Entity], Never>()
48 |
49 |                 let task = Task { [weak self] in
   |                            |- error: 'Task' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
50 |                     guard let self else {
51 |                         subject.send([])
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:49:28: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
47 |                 let subject = PassthroughSubject<[Entity], Never>()
48 |
49 |                 let task = Task { [weak self] in
   |                            |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
50 |                     guard let self else {
51 |                         subject.send([])
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:61:28: error: 'Task' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
59 |                                                                limit: self.limit,
60 |                                                                debug: self.debug)
61 |                     guard !Task.isCancelled else { return }
   |                            |- error: 'Task' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
62 |                     subject.send(result)
63 |                     subject.send(completion: .finished)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:61:33: error: 'isCancelled' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
59 |                                                                limit: self.limit,
60 |                                                                debug: self.debug)
61 |                     guard !Task.isCancelled else { return }
   |                                 |- error: 'isCancelled' is only available in macOS 10.15 or newer
   |                                 `- note: add 'if #available' version check
62 |                     subject.send(result)
63 |                     subject.send(completion: .finished)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:67:22: error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
65 |
66 |                 return subject
67 |                     .handleEvents(receiveCancel: { task.cancel() })
   |                      |- error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
68 |                     .eraseToAnyPublisher()
69 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:67:57: error: 'cancel()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
65 |
66 |                 return subject
67 |                     .handleEvents(receiveCancel: { task.cancel() })
   |                                                         |- error: 'cancel()' is only available in macOS 10.15 or newer
   |                                                         `- note: add 'if #available' version check
68 |                     .eraseToAnyPublisher()
69 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:68:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
66 |                 return subject
67 |                     .handleEvents(receiveCancel: { task.cancel() })
68 |                     .eraseToAnyPublisher()
   |                      |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
69 |             }
70 |             .switchToLatest()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:70:14: error: 'switchToLatest()' is only available in macOS 11.0 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
68 |                     .eraseToAnyPublisher()
69 |             }
70 |             .switchToLatest()
   |              |- error: 'switchToLatest()' is only available in macOS 11.0 or newer
   |              `- note: add 'if #available' version check
71 |             .receive(on: DispatchQueue.main)
72 |             .eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
69 |             }
70 |             .switchToLatest()
71 |             .receive(on: DispatchQueue.main)
   |              |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
72 |             .eraseToAnyPublisher()
73 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataRepo.swift:72:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataRepo<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |     private let predicate = CurrentValueSubject<NSPredicate, Never>(.falsePredicate)
13 |
   :
38 |     public lazy var items: AnyPublisher<[Entity], Never> = { self.publisher() }()
39 |
40 |     private func publisher() -> AnyPublisher<[Entity], Never> {
   |                  `- note: add @available attribute to enclosing instance method
41 |         return NotificationCenter.default
42 |             .publisher(for: refresher)
   :
70 |             .switchToLatest()
71 |             .receive(on: DispatchQueue.main)
72 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
73 |     }
74 |
[6/7] Compiling CoreDataRepo ManagedContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 10 |
 11 | public extension NSManagedObjectContext {
 12 |     public func fetch<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 13 |         _ entityType:T.Type,
 14 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:42:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 40 |     }
 41 |
 42 |     public func count<T:NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 43 |         _ entityType:T.Type,
 44 |         for predicate:NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:101:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 99 |     }
100 |
101 |     public func countAsync<T: NSManagedObject>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
102 |         _ entityType: T.Type,
103 |         predicate: NSPredicate? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:137:5: warning: 'public' modifier is redundant for instance method declared in a public extension
135 | public extension NSManagedObjectContext {
136 |
137 |     public func saveChanges(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:158:5: warning: 'public' modifier is redundant for instance method declared in a public extension
156 |
157 |
158 |     public func saveChangesSync(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
159 |         _ refresher: Notification.Name = .managedContextChanged,
160 |         push:Bool = true) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:78:16: error: 'Task' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 76 |         debug:Bool = false
 77 |     ) async -> [T] {
 78 |         guard !Task.isCancelled else { return [] }
    |                |- error: 'Task' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 79 |         let sendablePredicate = SendablePredicate(value: predicate)
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:78:21: error: 'isCancelled' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 76 |         debug:Bool = false
 77 |     ) async -> [T] {
 78 |         guard !Task.isCancelled else { return [] }
    |                     |- error: 'isCancelled' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 79 |         let sendablePredicate = SendablePredicate(value: predicate)
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:90:33: warning: coercion from '[any NSFetchRequestResult]' to '[T]' may fail; use 'as?' or 'as!' instead
 88 |             if let limit = limit { request.fetchLimit = limit }
 89 |             do {
 90 |                 return try self.fetch(request) as [T]
    |                                 `- warning: coercion from '[any NSFetchRequestResult]' to '[T]' may fail; use 'as?' or 'as!' instead
 91 |             } catch let error {
 92 |                 if debug {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:81:22: error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 79 |         let sendablePredicate = SendablePredicate(value: predicate)
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
 81 |         return await perform {
    |                      |- error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
    |                      `- note: add 'if #available' version check
 82 |             guard !Task.isCancelled else { return [] }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:82:20: error: 'Task' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
 81 |         return await perform {
 82 |             guard !Task.isCancelled else { return [] }
    |                    |- error: 'Task' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 83 |
 84 |             let request = entityType.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:82:25: error: 'isCancelled' is only available in macOS 10.15 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
 70 |     public func fetchAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
 71 |         _ entityType: T.Type,
 72 |         predicate: NSPredicate? = nil,
    :
 80 |         let sendableSort = SendableSort(value: sortDescriptors)
 81 |         return await perform {
 82 |             guard !Task.isCancelled else { return [] }
    |                         |- error: 'isCancelled' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 83 |
 84 |             let request = entityType.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:108:22: error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
 65 | }
 66 |
 67 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
 68 |
 69 |     /// Асинхронный fetch для любого контекста (потокобезопасно)
    :
 99 |     }
100 |
101 |     public func countAsync<T: NSManagedObject>(
    |                 `- note: add @available attribute to enclosing instance method
102 |         _ entityType: T.Type,
103 |         predicate: NSPredicate? = nil,
    :
106 |     ) async -> Int {
107 |         let sendablePredicate = SendablePredicate(value: predicate)
108 |         return await perform {
    |                      |- error: 'perform(schedule:_:)' is only available in macOS 12.0 or newer
    |                      `- note: add 'if #available' version check
109 |             let request = entityType.fetchRequest()
110 |             request.predicate = sendablePredicate.value
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:146:27: error: 'MainActor' is only available in macOS 10.15 or newer
133 |
134 |
135 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
136 |
137 |     public func saveChanges(
    |                 `- note: add @available attribute to enclosing instance method
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
    :
144 |
145 |                 if push {
146 |                     await MainActor.run {
    |                           |- error: 'MainActor' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
147 |                         NotificationCenter.default.post(name: refresher, object: nil)
148 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/ManagedContext.swift:146:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
133 |
134 |
135 | public extension NSManagedObjectContext {
    |        `- note: add @available attribute to enclosing extension
136 |
137 |     public func saveChanges(
    |                 `- note: add @available attribute to enclosing instance method
138 |         _ refresher: Notification.Name = .managedContextChanged,
139 |         push:Bool = true) async -> Bool
    :
144 |
145 |                 if push {
146 |                     await MainActor.run {
    |                                     |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
147 |                         NotificationCenter.default.post(name: refresher, object: nil)
148 |                     }
[7/7] Compiling CoreDataRepo DataCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:13:30: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   |                              `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
14 |     private var context:NSManagedObjectContext
15 |     private var refresher:NSNotification.Name
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:29:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
27 |     }
28 |
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
   |                            `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:31:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  |              `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:33:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
   |              |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
34 |             .prepend(Notification(name: refresher))
35 |             .combineLatest(predicates)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:34:14: error: 'prepend' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
34 |             .prepend(Notification(name: refresher))
   |              |- error: 'prepend' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
35 |             .combineLatest(predicates)
36 |             .map {[weak self] (_, predicates) in
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:35:14: error: 'combineLatest' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
34 |             .prepend(Notification(name: refresher))
35 |             .combineLatest(predicates)
   |              |- error: 'combineLatest' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
36 |             .map {[weak self] (_, predicates) in
37 |                 guard let self else { return [:]}
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:36:14: error: 'map' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
34 |             .prepend(Notification(name: refresher))
35 |             .combineLatest(predicates)
36 |             .map {[weak self] (_, predicates) in
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
37 |                 guard let self else { return [:]}
38 |                 var result:[String:Int] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:46:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
   :
44 |                 return result
45 |             }
46 |             .receive(on: DispatchQueue.main)
   |              |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
47 |             .eraseToAnyPublisher()
48 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataRepo/DataCounter.swift:47:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | public final class DataCounter<Entity:NSManagedObject> {
   |                    `- note: add @available attribute to enclosing generic class
12 |
13 |     private let predicates = CurrentValueSubject<[String:NSPredicate], Never>(["Empty": .falsePredicate])
   :
29 |     public lazy var items: AnyPublisher<[String:Int], Never> = { self.publisher() }()
30 |
31 |     private func publisher() -> AnyPublisher<[String:Int], Never> {
   |                  `- note: add @available attribute to enclosing instance method
32 |         NotificationCenter.default
33 |             .publisher(for: refresher)
   :
45 |             }
46 |             .receive(on: DispatchQueue.main)
47 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
48 |     }
49 |
BUILD FAILURE 6.1 macosSpm