The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoreRecord, reference main (3f0e65), with Swift 6.1 for macOS (SPM) on 12 Jul 2025 11:12:44 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stonko1994/CoreRecord.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/stonko1994/CoreRecord
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3f0e65b Merge pull request #4 from stonko1994/feature/add-spm-support
Cloned https://github.com/stonko1994/CoreRecord.git
Revision (git rev-parse @):
3f0e65bfdb0d11bf5001ba6fecb9aa66f2b9b629
SUCCESS checkout https://github.com/stonko1994/CoreRecord.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "corerecord",
      "name": "CoreRecord",
      "url": "https://github.com/stonko1994/CoreRecord.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CoreRecord",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/stonko1994/CoreRecord.git
[1/236] Fetching corerecord
Fetched https://github.com/stonko1994/CoreRecord.git from cache (0.70s)
Creating working copy for https://github.com/stonko1994/CoreRecord.git
Working copy of https://github.com/stonko1994/CoreRecord.git resolved at main (3f0e65b)
warning: '.resolve-product-dependencies': dependency 'corerecord' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/stonko1994/CoreRecord.git
https://github.com/stonko1994/CoreRecord.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CoreRecord",
  "name" : "CoreRecord",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "CoreRecord",
      "targets" : [
        "CoreRecord"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CoreRecordCore",
      "targets" : [
        "CoreRecordCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CoreRecordCombine",
      "targets" : [
        "CoreRecordCombine"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CoreRecordMigration",
      "targets" : [
        "CoreRecordMigration"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CoreRecordX",
      "targets" : [
        "CoreRecordX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CoreRecordX",
      "module_type" : "SwiftTarget",
      "name" : "CoreRecordX",
      "path" : "CoreRecord+X",
      "product_memberships" : [
        "CoreRecord",
        "CoreRecordX"
      ],
      "sources" : [
        "SwiftUI/CoreRecordInjector.swift",
        "archive/Archivable.swift",
        "primitiveOptional/OptionalRepresentation.swift",
        "remotes/RemoteIdentifiable.swift",
        "sort/Set+Sorted.swift",
        "sort/Sortable.swift",
        "timestamps/ApplicationRecord+TimestampsHaving.swift",
        "timestamps/FieldKey+TimestampsHaving.swift",
        "timestamps/TimestampsHaving.swift"
      ],
      "target_dependencies" : [
        "CoreRecordCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CoreRecordMigration",
      "module_type" : "SwiftTarget",
      "name" : "CoreRecordMigration",
      "path" : "CoreRecord+Migration",
      "product_memberships" : [
        "CoreRecord",
        "CoreRecordMigration"
      ],
      "sources" : [
        "CoreRecord+Migration.swift",
        "Migration.swift",
        "MigrationRunner.swift",
        "Version.swift"
      ],
      "target_dependencies" : [
        "CoreRecordCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CoreRecordCore",
      "module_type" : "SwiftTarget",
      "name" : "CoreRecordCore",
      "path" : "Core",
      "product_memberships" : [
        "CoreRecord",
        "CoreRecordCore",
        "CoreRecordCombine",
        "CoreRecordMigration",
        "CoreRecordX"
      ],
      "sources" : [
        "ApplicationRecord.swift",
        "ConfigurationRecord.swift",
        "CoreRecord.swift",
        "EntityName.swift",
        "FieldKey.swift",
        "NSManagedObject+CoreRecord.swift",
        "NSManagedObject+Exists.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CoreRecordCombine",
      "module_type" : "SwiftTarget",
      "name" : "CoreRecordCombine",
      "path" : "CoreRecord+Combine",
      "product_memberships" : [
        "CoreRecord",
        "CoreRecordCombine"
      ],
      "sources" : [
        "CoreRecordController.swift"
      ],
      "target_dependencies" : [
        "CoreRecordCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CoreRecord",
      "module_type" : "SwiftTarget",
      "name" : "CoreRecord",
      "path" : "CoreRecord",
      "product_memberships" : [
        "CoreRecord"
      ],
      "sources" : [
        "Imports.swift"
      ],
      "target_dependencies" : [
        "CoreRecordCore",
        "CoreRecordCombine",
        "CoreRecordMigration",
        "CoreRecordX"
      ],
      "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/6] Write sources
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/14] Compiling CoreRecordCore FieldKey.swift
[8/14] Compiling CoreRecordCore NSManagedObject+Exists.swift
[9/14] Compiling CoreRecordCore NSManagedObject+CoreRecord.swift
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:244:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
242 |     }
243 |
244 |     open func update(_ properties: [String: Any]) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
245 |         if (properties.count == 0) {
246 |             return
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:270:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
268 |
269 |     @discardableResult
270 |     open func save() -> Bool {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
271 |         return self.saveTheContext()
272 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |     }
273 |
274 |     open func delete() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 |         self.managedObjectContext!.delete(self)
276 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:631:28: warning: static property '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
629 |         return _dateFormatter!
630 |     }
631 |     fileprivate static var _dateFormatter: DateFormatter?
    |                            |- warning: static property '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert '_dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property '_dateFormatter' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
632 | }
633 |
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:635:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
633 |
634 | extension ApplicationRecord {
635 |     open class func mappings() -> [String: String] {
    |     `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
636 |         return [String: String]()
637 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:670:28: warning: static property '_cachedMappings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
668 |         }
669 |     }
670 |     fileprivate static var _cachedMappings: [String: String]?
    |                            |- warning: static property '_cachedMappings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert '_cachedMappings' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property '_cachedMappings' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
671 |
672 |     fileprivate static func generateSet(_ rel: NSRelationshipDescription, array: [[String: Any]], context: NSManagedObjectContext) -> NSSet {
[10/14] Compiling CoreRecordCore CoreRecord.swift
/Users/admin/builder/spi-builder-workspace/Core/CoreRecord.swift:9:23: warning: static property 'generateRelationships' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  7 | open class CoreRecord {
  8 |
  9 |     public static var generateRelationships = false
    |                       |- warning: static property 'generateRelationships' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'generateRelationships' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'generateRelationships' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 10 |
 11 |     public static func setUpEntities(_ entities: [String: NSManagedObject.Type]) {
/Users/admin/builder/spi-builder-workspace/Core/CoreRecord.swift:15:25: warning: static property 'nameToEntities' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 |     }
 14 |
 15 |     internal static var nameToEntities: [String: NSManagedObject.Type] = [String: NSManagedObject.Type]()
    |                         |- warning: static property 'nameToEntities' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'nameToEntities' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'nameToEntities' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 |     public let appName = Bundle.main.infoDictionary!["CFBundleName"] as! String
/Users/admin/builder/spi-builder-workspace/Core/CoreRecord.swift:198:23: warning: static property 'sharedRecord' is not concurrency-safe because non-'Sendable' type 'CoreRecord' may have shared mutable state; this is an error in the Swift 6 language mode
  5 | #endif
  6 |
  7 | open class CoreRecord {
    |            `- note: class 'CoreRecord' does not conform to the 'Sendable' protocol
  8 |
  9 |     public static var generateRelationships = false
    :
196 |     }
197 |     // singleton
198 |     public static let sharedRecord = CoreRecord()
    |                       |- warning: static property 'sharedRecord' is not concurrency-safe because non-'Sendable' type 'CoreRecord' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sharedRecord' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
199 | }
200 |
[11/14] Compiling CoreRecordCore ApplicationRecord.swift
[12/14] Compiling CoreRecordCore EntityName.swift
[13/14] Emitting module CoreRecordCore
/Users/admin/builder/spi-builder-workspace/Core/CoreRecord.swift:9:23: warning: static property 'generateRelationships' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  7 | open class CoreRecord {
  8 |
  9 |     public static var generateRelationships = false
    |                       |- warning: static property 'generateRelationships' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'generateRelationships' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'generateRelationships' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 10 |
 11 |     public static func setUpEntities(_ entities: [String: NSManagedObject.Type]) {
/Users/admin/builder/spi-builder-workspace/Core/CoreRecord.swift:15:25: warning: static property 'nameToEntities' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 |     }
 14 |
 15 |     internal static var nameToEntities: [String: NSManagedObject.Type] = [String: NSManagedObject.Type]()
    |                         |- warning: static property 'nameToEntities' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'nameToEntities' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'nameToEntities' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 |     public let appName = Bundle.main.infoDictionary!["CFBundleName"] as! String
/Users/admin/builder/spi-builder-workspace/Core/CoreRecord.swift:198:23: warning: static property 'sharedRecord' is not concurrency-safe because non-'Sendable' type 'CoreRecord' may have shared mutable state; this is an error in the Swift 6 language mode
  5 | #endif
  6 |
  7 | open class CoreRecord {
    |            `- note: class 'CoreRecord' does not conform to the 'Sendable' protocol
  8 |
  9 |     public static var generateRelationships = false
    :
196 |     }
197 |     // singleton
198 |     public static let sharedRecord = CoreRecord()
    |                       |- warning: static property 'sharedRecord' is not concurrency-safe because non-'Sendable' type 'CoreRecord' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sharedRecord' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
199 | }
200 |
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:244:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
242 |     }
243 |
244 |     open func update(_ properties: [String: Any]) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
245 |         if (properties.count == 0) {
246 |             return
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:270:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
268 |
269 |     @discardableResult
270 |     open func save() -> Bool {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
271 |         return self.saveTheContext()
272 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |     }
273 |
274 |     open func delete() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 |         self.managedObjectContext!.delete(self)
276 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:631:28: warning: static property '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
629 |         return _dateFormatter!
630 |     }
631 |     fileprivate static var _dateFormatter: DateFormatter?
    |                            |- warning: static property '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert '_dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property '_dateFormatter' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
632 | }
633 |
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:635:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
633 |
634 | extension ApplicationRecord {
635 |     open class func mappings() -> [String: String] {
    |     `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
636 |         return [String: String]()
637 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:670:28: warning: static property '_cachedMappings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
668 |         }
669 |     }
670 |     fileprivate static var _cachedMappings: [String: String]?
    |                            |- warning: static property '_cachedMappings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert '_cachedMappings' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property '_cachedMappings' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
671 |
672 |     fileprivate static func generateSet(_ rel: NSRelationshipDescription, array: [[String: Any]], context: NSManagedObjectContext) -> NSSet {
[14/14] Compiling CoreRecordCore ConfigurationRecord.swift
[15/31] Compiling CoreRecordMigration MigrationRunner.swift
[16/31] Compiling CoreRecordMigration Version.swift
[17/31] Emitting module CoreRecordMigration
[18/31] Compiling CoreRecordMigration Migration.swift
[19/31] Compiling CoreRecordMigration CoreRecord+Migration.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/31] Emitting module CoreRecordCombine
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:9:6: error: 'Published' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
   |      `- error: 'Published' is only available in macOS 10.15 or newer
10 |     private let valuesController: NSFetchedResultsController<Entity>
11 |
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:8:79: error: 'ObservableObject' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    |                                                          `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
[21/31] Compiling CoreRecordCombine CoreRecordController.swift
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:9:6: error: 'Published' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
   |      `- error: 'Published' is only available in macOS 10.15 or newer
10 |     private let valuesController: NSFetchedResultsController<Entity>
11 |
<unknown>:0: error: cannot convert value of type 'any KeyPath<CoreRecordController<Entity>, [Entity]> & Sendable' to expected argument type 'ReferenceWritableKeyPath<CoreRecordController<Entity>, [Entity]>'
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:8:79: error: 'ObservableObject' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    |                                                          `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:33:13: error: setter for 'values' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
11 |
12 |     public init(fetchRequest: NSFetchRequest<Entity>? = nil) {
   |            `- note: add @available attribute to enclosing initializer
13 |         var fetchRequest: NSFetchRequest! = fetchRequest
14 |
   :
31 |         do {
32 |             try valuesController.performFetch()
33 |             values = valuesController.fetchedObjects ?? []
   |             |- error: setter for 'values' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
34 |         } catch {
35 |             print("❌❌❌❌") // TODO: handle properly or fail
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:42:9: error: setter for 'values' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
   :
37 |     }
38 |
39 |     public func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) {
   |                 `- note: add @available attribute to enclosing instance method
40 |         guard let fetchResult = controller.fetchedObjects as? [Entity] else { return }
41 |
42 |         values = fetchResult
   |         |- error: setter for 'values' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
43 |     }
44 | }
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/9] Compiling CoreRecordCore ApplicationRecord.swift
[3/9] Compiling CoreRecordCore ConfigurationRecord.swift
[4/9] Compiling CoreRecordCore FieldKey.swift
[5/9] Compiling CoreRecordCore CoreRecord.swift
[6/9] Emitting module CoreRecordCore
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:244:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
242 |     }
243 |
244 |     open func update(_ properties: [String: Any]) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
245 |         if (properties.count == 0) {
246 |             return
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:270:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
268 |
269 |     @discardableResult
270 |     open func save() -> Bool {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
271 |         return self.saveTheContext()
272 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |     }
273 |
274 |     open func delete() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 |         self.managedObjectContext!.delete(self)
276 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:635:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
633 |
634 | extension ApplicationRecord {
635 |     open class func mappings() -> [String: String] {
    |     `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
636 |         return [String: String]()
637 |     }
[7/9] Compiling CoreRecordCore EntityName.swift
[8/9] Compiling CoreRecordCore NSManagedObject+CoreRecord.swift
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:244:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
242 |     }
243 |
244 |     open func update(_ properties: [String: Any]) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
245 |         if (properties.count == 0) {
246 |             return
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:270:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
268 |
269 |     @discardableResult
270 |     open func save() -> Bool {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
271 |         return self.saveTheContext()
272 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |     }
273 |
274 |     open func delete() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 |         self.managedObjectContext!.delete(self)
276 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:635:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
633 |
634 | extension ApplicationRecord {
635 |     open class func mappings() -> [String: String] {
    |     `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
636 |         return [String: String]()
637 |     }
[9/9] Compiling CoreRecordCore NSManagedObject+Exists.swift
[10/26] Compiling CoreRecordMigration Version.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/26] Emitting module CoreRecordCombine
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:9:6: error: 'Published' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
   |      `- error: 'Published' is only available in macOS 10.15 or newer
10 |     private let valuesController: NSFetchedResultsController<Entity>
11 |
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:8:79: error: 'ObservableObject' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    |                                                          `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
[12/26] Compiling CoreRecordCombine CoreRecordController.swift
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:9:6: error: 'Published' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
   |      `- error: 'Published' is only available in macOS 10.15 or newer
10 |     private let valuesController: NSFetchedResultsController<Entity>
11 |
<unknown>:0: error: cannot convert value of type 'KeyPath<CoreRecordController<Entity>, [Entity]>' to expected argument type 'ReferenceWritableKeyPath<CoreRecordController<Entity>, [Entity]>'
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:8:79: error: 'ObservableObject' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    |                                                          `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:33:13: error: setter for 'values' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
11 |
12 |     public init(fetchRequest: NSFetchRequest<Entity>? = nil) {
   |            `- note: add @available attribute to enclosing initializer
13 |         var fetchRequest: NSFetchRequest! = fetchRequest
14 |
   :
31 |         do {
32 |             try valuesController.performFetch()
33 |             values = valuesController.fetchedObjects ?? []
   |             |- error: setter for 'values' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
34 |         } catch {
35 |             print("❌❌❌❌") // TODO: handle properly or fail
/Users/admin/builder/spi-builder-workspace/CoreRecord+Combine/CoreRecordController.swift:42:9: error: setter for 'values' is only available in macOS 10.15 or newer
 6 | #endif
 7 |
 8 | public final class CoreRecordController<Entity: ApplicationRecord>: NSObject, ObservableObject, NSFetchedResultsControllerDelegate {
   |                    `- note: add @available attribute to enclosing generic class
 9 |     @Published public var values: [Entity] = []
10 |     private let valuesController: NSFetchedResultsController<Entity>
   :
37 |     }
38 |
39 |     public func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) {
   |                 `- note: add @available attribute to enclosing instance method
40 |         guard let fetchResult = controller.fetchedObjects as? [Entity] else { return }
41 |
42 |         values = fetchResult
   |         |- error: setter for 'values' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
43 |     }
44 | }
[13/26] Emitting module CoreRecordMigration
BUILD FAILURE 6.1 macosSpm