The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoreRecord, reference main (3f0e65), with Swift 6.3 for macOS (SPM) on 16 Apr 2026 13:09:28 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/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",
  "traits": [
    "default"
  ],
  "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",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/stonko1994/CoreRecord.git
[1/236] Fetching corerecord
Fetched https://github.com/stonko1994/CoreRecord.git from cache (0.75s)
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.3
Building package at path:  $PWD
https://github.com/stonko1994/CoreRecord.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version--6988338F2F200930.txt
[7/14] Compiling CoreRecordCore ConfigurationRecord.swift
[8/14] Compiling CoreRecordCore FieldKey.swift
[9/14] Emitting module CoreRecordCore
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:244:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
242 |     }
243 |
244 |     open func update(_ properties: [String: Any]) {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
245 |         if (properties.count == 0) {
246 |             return
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:270:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
268 |
269 |     @discardableResult
270 |     open func save() -> Bool {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
271 |         return self.saveTheContext()
272 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:274:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
272 |     }
273 |
274 |     open func delete() {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
275 |         self.managedObjectContext!.delete(self)
276 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:635:5: warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
633 |
634 | extension ApplicationRecord {
635 |     open class func mappings() -> [String: String] {
    |     `- warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
636 |         return [String: String]()
637 |     }
[10/14] Compiling CoreRecordCore NSManagedObject+CoreRecord.swift
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:244:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
242 |     }
243 |
244 |     open func update(_ properties: [String: Any]) {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
245 |         if (properties.count == 0) {
246 |             return
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:270:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
268 |
269 |     @discardableResult
270 |     open func save() -> Bool {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
271 |         return self.saveTheContext()
272 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:274:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
272 |     }
273 |
274 |     open func delete() {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
275 |         self.managedObjectContext!.delete(self)
276 |     }
/Users/admin/builder/spi-builder-workspace/Core/NSManagedObject+CoreRecord.swift:635:5: warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
633 |
634 | extension ApplicationRecord {
635 |     open class func mappings() -> [String: String] {
    |     `- warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
636 |         return [String: String]()
637 |     }
[11/14] Compiling CoreRecordCore EntityName.swift
[12/14] Compiling CoreRecordCore ApplicationRecord.swift
[13/14] Compiling CoreRecordCore CoreRecord.swift
[14/14] Compiling CoreRecordCore NSManagedObject+Exists.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/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>
[16/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 |
/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>
<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: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 | }
[17/31] Compiling CoreRecordMigration CoreRecord+Migration.swift
[18/31] Compiling CoreRecordMigration Version.swift
[19/31] Emitting module CoreRecordMigration
[20/31] Compiling CoreRecordMigration Migration.swift
BUILD FAILURE 6.3 macosSpm