Build Information
Successful build of CoreDataService, reference main (4e51a8), with Swift 6.3 for macOS (SPM) on 16 Apr 2026 04:44:17 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/IhorIlin/CoreDataService.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/IhorIlin/CoreDataService
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4e51a8d Add .docc
Cloned https://github.com/IhorIlin/CoreDataService.git
Revision (git rev-parse @):
4e51a8d86cc7030825c8953a42558cbaac5b9e0b
SUCCESS checkout https://github.com/IhorIlin/CoreDataService.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": "coredataservice",
"name": "CoreDataService",
"url": "https://github.com/IhorIlin/CoreDataService.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CoreDataService",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/IhorIlin/CoreDataService.git
[1/159] Fetching coredataservice
Fetched https://github.com/IhorIlin/CoreDataService.git from cache (0.69s)
Creating working copy for https://github.com/IhorIlin/CoreDataService.git
Working copy of https://github.com/IhorIlin/CoreDataService.git resolved at main (4e51a8d)
warning: '.resolve-product-dependencies': dependency 'coredataservice' 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/IhorIlin/CoreDataService.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
[3/11] Compiling CoreDataService CoreDataService.swift
[4/11] Compiling CoreDataService CoreDataRepresentable.swift
[5/11] Compiling CoreDataService CoreDataStack.swift
[6/11] Compiling CoreDataService CoreDataConfigurable.swift
[7/11] Compiling CoreDataService CoreDataError.swift
[8/11] Compiling CoreDataService DefaultCoreDataStack.swift
[9/11] Emitting module CoreDataService
[10/11] Compiling CoreDataService DefaultCoreDataConfiguration.swift
[11/11] Compiling CoreDataService DefaultCoreDataService.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:52:38: warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
50 | let fetchRequest = NSFetchRequest<Model.Entity>(entityName: String(describing: Model.Entity.self))
51 |
52 | fetchRequest.predicate = predicate
| `- warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
53 | fetchRequest.sortDescriptors = sortDescriptors
54 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:53:44: warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
51 |
52 | fetchRequest.predicate = predicate
53 | fetchRequest.sortDescriptors = sortDescriptors
| `- warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
54 |
55 | do {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:56:36: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
54 |
55 | do {
56 | let entities = try viewContext.fetch(fetchRequest)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
57 |
58 | models = entities.map { Model(from: $0) }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:58:17: warning: capture of 'models' with non-Sendable type '[Model]' in a '@Sendable' closure [#SendableClosureCaptures]
40 | /// - Throws: CoreDataError if fetching fails.
41 | /// - Returns: Array of fetched models.
42 | public func fetchModels<Model: CoreDataRepresentable>(_ modelType: Model.Type,
| `- note: consider making generic parameter 'Model' conform to the 'Sendable' protocol
43 | predicate: NSPredicate?,
44 | sortDescriptors: [NSSortDescriptor]?) throws -> [Model] {
:
56 | let entities = try viewContext.fetch(fetchRequest)
57 |
58 | models = entities.map { Model(from: $0) }
| `- warning: capture of 'models' with non-Sendable type '[Model]' in a '@Sendable' closure [#SendableClosureCaptures]
59 | } catch {
60 | fetchError = CoreDataError.failedFetchingEntities(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:58:17: warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
56 | let entities = try viewContext.fetch(fetchRequest)
57 |
58 | models = entities.map { Model(from: $0) }
| `- warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
59 | } catch {
60 | fetchError = CoreDataError.failedFetchingEntities(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:58:17: warning: mutation of captured var 'models' in concurrently-executing code [#SendableClosureCaptures]
56 | let entities = try viewContext.fetch(fetchRequest)
57 |
58 | models = entities.map { Model(from: $0) }
| `- warning: mutation of captured var 'models' in concurrently-executing code [#SendableClosureCaptures]
59 | } catch {
60 | fetchError = CoreDataError.failedFetchingEntities(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:60:17: warning: mutation of captured var 'fetchError' in concurrently-executing code [#SendableClosureCaptures]
58 | models = entities.map { Model(from: $0) }
59 | } catch {
60 | fetchError = CoreDataError.failedFetchingEntities(error: error)
| `- warning: mutation of captured var 'fetchError' in concurrently-executing code [#SendableClosureCaptures]
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:87:38: warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
85 | let fetchRequest = NSFetchRequest<Entity>(entityName: String(describing: Entity.self))
86 |
87 | fetchRequest.predicate = predicate
| `- warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
88 | fetchRequest.sortDescriptors = sortDescriptors
89 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:88:44: warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
86 |
87 | fetchRequest.predicate = predicate
88 | fetchRequest.sortDescriptors = sortDescriptors
| `- warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
89 |
90 | do {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:91:17: warning: capture of 'entities' with non-Sendable type '[Entity]' in a '@Sendable' closure [#SendableClosureCaptures]
76 | /// - Throws: CoreDataError if fetching fails.
77 | /// - Returns: Array of fetched entities.
78 | public func fetchEntities<Entity: NSManagedObject>(_ entityType: Entity.Type,
| `- note: consider making generic parameter 'Entity' conform to the 'Sendable' protocol
79 | predicate: NSPredicate?,
80 | sortDescriptors: [NSSortDescriptor]?) throws -> [Entity] {
:
89 |
90 | do {
91 | entities = try viewContext.fetch(fetchRequest)
| `- warning: capture of 'entities' with non-Sendable type '[Entity]' in a '@Sendable' closure [#SendableClosureCaptures]
92 | } catch {
93 | fetchError = CoreDataError.failedFetchingEntities(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:91:32: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
89 |
90 | do {
91 | entities = try viewContext.fetch(fetchRequest)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
92 | } catch {
93 | fetchError = CoreDataError.failedFetchingEntities(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:91:17: warning: mutation of captured var 'entities' in concurrently-executing code [#SendableClosureCaptures]
89 |
90 | do {
91 | entities = try viewContext.fetch(fetchRequest)
| `- warning: mutation of captured var 'entities' in concurrently-executing code [#SendableClosureCaptures]
92 | } catch {
93 | fetchError = CoreDataError.failedFetchingEntities(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:93:17: warning: mutation of captured var 'fetchError' in concurrently-executing code [#SendableClosureCaptures]
91 | entities = try viewContext.fetch(fetchRequest)
92 | } catch {
93 | fetchError = CoreDataError.failedFetchingEntities(error: error)
| `- warning: mutation of captured var 'fetchError' in concurrently-executing code [#SendableClosureCaptures]
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:119:38: warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
117 | let fetchRequest = NSFetchRequest<Model.Entity>(entityName: String(describing: Model.Entity.self))
118 |
119 | fetchRequest.predicate = predicate
| `- warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
120 | fetchRequest.sortDescriptors = sortDescriptors
121 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:120:44: warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
118 |
119 | fetchRequest.predicate = predicate
120 | fetchRequest.sortDescriptors = sortDescriptors
| `- warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
121 |
122 | do {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:123:36: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
121 |
122 | do {
123 | let entities = try self.viewContext.fetch(fetchRequest)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
124 |
125 | let models = entities.map { Model(from: $0) }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:125:39: warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
123 | let entities = try self.viewContext.fetch(fetchRequest)
124 |
125 | let models = entities.map { Model(from: $0) }
| `- warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
126 |
127 | return models
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:147:38: warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
145 | let fetchRequest = NSFetchRequest<Entity>(entityName: String(describing: Entity.self))
146 |
147 | fetchRequest.predicate = predicate
| `- warning: capture of 'predicate' with non-Sendable type 'NSPredicate?' in a '@Sendable' closure [#SendableClosureCaptures]
148 | fetchRequest.sortDescriptors = sortDescriptors
149 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:148:44: warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
146 |
147 | fetchRequest.predicate = predicate
148 | fetchRequest.sortDescriptors = sortDescriptors
| `- warning: capture of 'sortDescriptors' with non-Sendable type '[NSSortDescriptor]?' in a '@Sendable' closure [#SendableClosureCaptures]
149 |
150 | do {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:151:36: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
149 |
150 | do {
151 | let entities = try self.viewContext.fetch(fetchRequest)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
152 |
153 | return entities
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:167:36: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
165 | try await viewContext.perform {
166 | do {
167 | let entities = try self.viewContext.fetch(fetchRequest)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
168 |
169 | return entities.map { Model(from: $0) }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:167:59: warning: capture of 'fetchRequest' with non-Sendable type 'NSFetchRequest<Model.Entity>' in a '@Sendable' closure [#SendableClosureCaptures]
165 | try await viewContext.perform {
166 | do {
167 | let entities = try self.viewContext.fetch(fetchRequest)
| `- warning: capture of 'fetchRequest' with non-Sendable type 'NSFetchRequest<Model.Entity>' in a '@Sendable' closure [#SendableClosureCaptures]
168 |
169 | return entities.map { Model(from: $0) }
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h:47:12: note: generic class 'NSFetchRequest' does not conform to the 'Sendable' protocol
45 |
46 | API_AVAILABLE(macosx(10.4),ios(3.0))
47 | @interface NSFetchRequest<__covariant ResultType:id<NSFetchRequestResult>> : NSPersistentStoreRequest <NSCoding, NSCopying> {
| `- note: generic class 'NSFetchRequest' does not conform to the 'Sendable' protocol
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:8:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'CoreData' as warnings
6 | //
7 |
8 | import CoreData
| `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'CoreData' as warnings
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:169:33: warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
167 | let entities = try self.viewContext.fetch(fetchRequest)
168 |
169 | return entities.map { Model(from: $0) }
| `- warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
170 | } catch {
171 | throw CoreDataError.failedFetchingEntities(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:183:36: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
181 | try await viewContext.perform {
182 | do {
183 | let entities = try self.viewContext.fetch(fetchRequest)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
184 |
185 | return entities
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:183:59: warning: capture of 'fetchRequest' with non-Sendable type 'NSFetchRequest<Entity>' in a '@Sendable' closure [#SendableClosureCaptures]
181 | try await viewContext.perform {
182 | do {
183 | let entities = try self.viewContext.fetch(fetchRequest)
| `- warning: capture of 'fetchRequest' with non-Sendable type 'NSFetchRequest<Entity>' in a '@Sendable' closure [#SendableClosureCaptures]
184 |
185 | return entities
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h:47:12: note: generic class 'NSFetchRequest' does not conform to the 'Sendable' protocol
45 |
46 | API_AVAILABLE(macosx(10.4),ios(3.0))
47 | @interface NSFetchRequest<__covariant ResultType:id<NSFetchRequestResult>> : NSPersistentStoreRequest <NSCoding, NSCopying> {
| `- note: generic class 'NSFetchRequest' does not conform to the 'Sendable' protocol
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:201:17: warning: capture of 'model' with non-Sendable type 'Model' in a '@Sendable' closure [#SendableClosureCaptures]
195 | /// - Parameter model: The model conforming to CoreDataRepresentable to insert.
196 | /// - Throws: CoreDataError if saving the context fails.
197 | public func insertModel<Model: CoreDataRepresentable>(_ model: Model) throws {
| `- note: consider making generic parameter 'Model' conform to the 'Sendable' protocol
198 | var insertError: Error?
199 |
200 | backgroundContext.performAndWait {
201 | _ = model.toEntity(in: backgroundContext)
| `- warning: capture of 'model' with non-Sendable type 'Model' in a '@Sendable' closure [#SendableClosureCaptures]
202 |
203 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:201:36: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
199 |
200 | backgroundContext.performAndWait {
201 | _ = model.toEntity(in: backgroundContext)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
202 |
203 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:201:17: warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
199 |
200 | backgroundContext.performAndWait {
201 | _ = model.toEntity(in: backgroundContext)
| `- warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
202 |
203 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:206:17: warning: mutation of captured var 'insertError' in concurrently-executing code [#SendableClosureCaptures]
204 | try backgroundContext.save()
205 | } catch {
206 | insertError = CoreDataError.failedSavingContext(error: error)
| `- warning: mutation of captured var 'insertError' in concurrently-executing code [#SendableClosureCaptures]
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:219:13: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
217 |
218 | backgroundContext.performAndWait {
219 | backgroundContext.insert(entity)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
220 | do {
221 | try backgroundContext.save()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:219:38: warning: capture of 'entity' with non-Sendable type 'Entity' in a '@Sendable' closure [#SendableClosureCaptures]
213 | }
214 |
215 | public func insertEntity<Entity: NSManagedObject>(_ entity: Entity) throws {
| `- note: consider making generic parameter 'Entity' conform to the 'Sendable' protocol
216 | var insertError: Error?
217 |
218 | backgroundContext.performAndWait {
219 | backgroundContext.insert(entity)
| `- warning: capture of 'entity' with non-Sendable type 'Entity' in a '@Sendable' closure [#SendableClosureCaptures]
220 | do {
221 | try backgroundContext.save()
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:223:17: warning: mutation of captured var 'insertError' in concurrently-executing code [#SendableClosureCaptures]
221 | try backgroundContext.save()
222 | } catch {
223 | insertError = error
| `- warning: mutation of captured var 'insertError' in concurrently-executing code [#SendableClosureCaptures]
224 | }
225 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:241:13: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
239 |
240 | backgroundContext.performAndWait {
241 | backgroundContext.delete(model.toEntity(in: backgroundContext))
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
242 |
243 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:241:38: warning: capture of 'model' with non-Sendable type 'Model' in a '@Sendable' closure [#SendableClosureCaptures]
235 | /// - Parameter model: The model conforming to CoreDataRepresentable to delete.
236 | /// - Throws: CoreDataError if deleting or saving fails.
237 | public func deleteModel<Model: CoreDataRepresentable>(_ model: Model) throws {
| `- note: consider making generic parameter 'Model' conform to the 'Sendable' protocol
238 | var deleteError: Error?
239 |
240 | backgroundContext.performAndWait {
241 | backgroundContext.delete(model.toEntity(in: backgroundContext))
| `- warning: capture of 'model' with non-Sendable type 'Model' in a '@Sendable' closure [#SendableClosureCaptures]
242 |
243 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:241:38: warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
239 |
240 | backgroundContext.performAndWait {
241 | backgroundContext.delete(model.toEntity(in: backgroundContext))
| `- warning: capture of non-Sendable type 'Model.Type' in an isolated closure [#SendableMetatypes]
242 |
243 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:246:17: warning: mutation of captured var 'deleteError' in concurrently-executing code [#SendableClosureCaptures]
244 | try backgroundContext.save()
245 | } catch {
246 | deleteError = CoreDataError.failedDeletingEntity(error: error)
| `- warning: mutation of captured var 'deleteError' in concurrently-executing code [#SendableClosureCaptures]
247 | }
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:262:13: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
260 |
261 | backgroundContext.performAndWait {
262 | backgroundContext.delete(entity)
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
263 |
264 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:262:38: warning: capture of 'entity' with non-Sendable type 'Entity' in a '@Sendable' closure [#SendableClosureCaptures]
256 | /// - Parameter entity: The NSManagedObject entity to delete.
257 | /// - Throws: CoreDataError if deleting or saving fails.
258 | public func deleteEntity<Entity: NSManagedObject>(_ entity: Entity) throws {
| `- note: consider making generic parameter 'Entity' conform to the 'Sendable' protocol
259 | var deleteError: Error?
260 |
261 | backgroundContext.performAndWait {
262 | backgroundContext.delete(entity)
| `- warning: capture of 'entity' with non-Sendable type 'Entity' in a '@Sendable' closure [#SendableClosureCaptures]
263 |
264 | do {
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:267:17: warning: mutation of captured var 'deleteError' in concurrently-executing code [#SendableClosureCaptures]
265 | try backgroundContext.save()
266 | } catch {
267 | deleteError = CoreDataError.failedDeletingEntity(error: error)
| `- warning: mutation of captured var 'deleteError' in concurrently-executing code [#SendableClosureCaptures]
268 | }
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:285:21: warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
8 | import CoreData
9 |
10 | public final class DefaultCoreDataService: CoreDataService {
| `- note: class 'DefaultCoreDataService' does not conform to the 'Sendable' protocol
11 |
12 | // MARK: - Private Properties
:
283 | viewContext.performAndWait {
284 | do {
285 | try viewContext.save()
| `- warning: capture of 'self' with non-Sendable type 'DefaultCoreDataService' in a '@Sendable' closure [#SendableClosureCaptures]
286 | } catch {
287 | saveError = CoreDataError.failedSavingContext(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/CoreDataService/Core/DefaultCoreDataService.swift:287:17: warning: mutation of captured var 'saveError' in concurrently-executing code [#SendableClosureCaptures]
285 | try viewContext.save()
286 | } catch {
287 | saveError = CoreDataError.failedSavingContext(error: error)
| `- warning: mutation of captured var 'saveError' in concurrently-executing code [#SendableClosureCaptures]
288 | }
289 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
Build complete! (6.29s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CoreDataService",
"name" : "CoreDataService",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "CoreDataService",
"targets" : [
"CoreDataService"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CoreDataServiceTests",
"module_type" : "SwiftTarget",
"name" : "CoreDataServiceTests",
"path" : "Tests/CoreDataServiceTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/CoreDataServiceTests/Resources/TestModel.momd/TestModel.mom",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/CoreDataServiceTests/Resources/TestModel.momd/VersionInfo.plist",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"CoreDataServiceTests.swift",
"Model/User.swift",
"Model/UserEntity+Properties.swift",
"Model/UserEntity.swift"
],
"target_dependencies" : [
"CoreDataService"
],
"type" : "test"
},
{
"c99name" : "CoreDataService",
"module_type" : "SwiftTarget",
"name" : "CoreDataService",
"path" : "Sources/CoreDataService",
"product_memberships" : [
"CoreDataService"
],
"sources" : [
"Configurations/DefaultCoreDataConfiguration.swift",
"Core/DefaultCoreDataService.swift",
"Core/DefaultCoreDataStack.swift",
"Errors/CoreDataError.swift",
"Protocols/CoreDataConfigurable.swift",
"Protocols/CoreDataRepresentable.swift",
"Protocols/CoreDataService.swift",
"Protocols/CoreDataStack.swift"
],
"type" : "library"
}
],
"tools_version" : "6.1"
}
Done.