Build Information
Failed to build CoreRecord, reference main (3f0e65), with Swift 6.0 for macOS (SPM) on 12 Jul 2025 11:16:41 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build 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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/stonko1994/CoreRecord.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-5BDAB9E9C0126B9D.txt
[7/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: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 | }
[8/14] Compiling CoreRecordCore NSManagedObject+Exists.swift
[9/14] Compiling CoreRecordCore CoreRecord.swift
[10/14] Compiling CoreRecordCore EntityName.swift
[11/14] Compiling CoreRecordCore ApplicationRecord.swift
[12/14] Compiling CoreRecordCore FieldKey.swift
[13/14] 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 | }
[14/14] Compiling CoreRecordCore ConfigurationRecord.swift
[15/31] Compiling CoreRecordMigration Version.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/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>
[17/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 '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 | }
[18/31] Compiling CoreRecordMigration CoreRecord+Migration.swift
[19/31] Compiling CoreRecordMigration Migration.swift
[20/31] Emitting module CoreRecordMigration
BUILD FAILURE 6.0 macosSpm