Build Information
Successful build of BMO, reference main (5d46c8), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 01:22:57 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/Frizlab/BMO.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Frizlab/BMO
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5d46c8b Dummy typo fix
Cloned https://github.com/Frizlab/BMO.git
Revision (git rev-parse @):
5d46c8b2d3487a80ef612e9f48ded7bd757e9453
SUCCESS checkout https://github.com/Frizlab/BMO.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": "bmo",
"name": "BMO",
"url": "https://github.com/Frizlab/BMO.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BMO",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/Frizlab/BMO.git
[1/2526] Fetching bmo
Fetched https://github.com/Frizlab/BMO.git from cache (1.03s)
Creating working copy for https://github.com/Frizlab/BMO.git
Working copy of https://github.com/Frizlab/BMO.git resolved at main (5d46c8b)
warning: '.resolve-product-dependencies': dependency 'bmo' 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/Frizlab/BMO.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--6988338F2F200930.txt
[4/23] Compiling BMO RelationshipMergeType.swift
[5/23] Compiling BMO MapError.swift
[6/23] Compiling BMO RemoteDb-Protocol.swift
[7/23] Compiling BMO Request.swift
[8/23] Compiling BMO GenericLocalDbObject.swift
[9/23] Compiling BMO LocalDbChanges.swift
[10/23] Compiling BMO RequestResult.swift
[11/23] Compiling BMO ErrorCollection.swift
[12/23] Compiling BMO OperationLifecycleError.swift
[13/23] Compiling BMO RequestError.swift
[14/23] Compiling BMO Bridge-Protocol.swift
[15/23] Compiling BMO BridgeObjects-Protocol.swift
[16/23] Compiling BMO LocalDb-Protocol.swift
[17/23] Emitting module BMO
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/LocalDbImportOperation.swift:20:20: warning: class 'LocalDbImportOperation' must restate inherited '@unchecked Sendable' conformance
18 |
19 |
20 | public final class LocalDbImportOperation<Bridge : BridgeProtocol> : Operation {
| `- warning: class 'LocalDbImportOperation' must restate inherited '@unchecked Sendable' conformance
21 |
22 | public enum Request {
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestOperation.swift:22:20: warning: class 'RequestOperation' must restate inherited '@unchecked Sendable' conformance
20 | /* We’re not using RetryingOperation because it does not allow synchronous execution from start to startBaseOperation,
21 | * and we want clients to be able to call start synchronously to guarantee being called on the context. */
22 | public final class RequestOperation<Bridge : BridgeProtocol> : Operation {
| `- warning: class 'RequestOperation' must restate inherited '@unchecked Sendable' conformance
23 |
24 | public typealias Request = BMO.Request<Bridge.LocalDb, Bridge.RequestUserInfo>
[18/23] Compiling BMO LocalDbImportOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/LocalDbImportOperation.swift:20:20: warning: class 'LocalDbImportOperation' must restate inherited '@unchecked Sendable' conformance
18 |
19 |
20 | public final class LocalDbImportOperation<Bridge : BridgeProtocol> : Operation {
| `- warning: class 'LocalDbImportOperation' must restate inherited '@unchecked Sendable' conformance
21 |
22 | public enum Request {
[19/23] Compiling BMO LocalDbImporter-Protocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/LocalDbImportOperation.swift:20:20: warning: class 'LocalDbImportOperation' must restate inherited '@unchecked Sendable' conformance
18 |
19 |
20 | public final class LocalDbImportOperation<Bridge : BridgeProtocol> : Operation {
| `- warning: class 'LocalDbImportOperation' must restate inherited '@unchecked Sendable' conformance
21 |
22 | public enum Request {
[20/23] Compiling BMO RequestHelper-Protocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestOperation.swift:22:20: warning: class 'RequestOperation' must restate inherited '@unchecked Sendable' conformance
20 | /* We’re not using RetryingOperation because it does not allow synchronous execution from start to startBaseOperation,
21 | * and we want clients to be able to call start synchronously to guarantee being called on the context. */
22 | public final class RequestOperation<Bridge : BridgeProtocol> : Operation {
| `- warning: class 'RequestOperation' must restate inherited '@unchecked Sendable' conformance
23 |
24 | public typealias Request = BMO.Request<Bridge.LocalDb, Bridge.RequestUserInfo>
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestOperation.swift:174:51: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
172 | }
173 | remoteOperation = operation
174 | let completionOperation = BlockOperation{ self.continueOperation{
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
175 | self.remoteOperation = nil
176 | return self.continueOperation(finishedRemoteOperation: operation, userInfo: userInfo)
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestOperation.swift:208:51: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
206 | )
207 | importOperation = operation
208 | let completionOperation = BlockOperation{ self.continueOperation{
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
209 | self.importOperation = nil
210 | return self.continueOperation(finishedImportOperation: operation, finishedRemoteOperation: finishedRemoteOperation)
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[21/23] Compiling BMO RequestOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestOperation.swift:22:20: warning: class 'RequestOperation' must restate inherited '@unchecked Sendable' conformance
20 | /* We’re not using RetryingOperation because it does not allow synchronous execution from start to startBaseOperation,
21 | * and we want clients to be able to call start synchronously to guarantee being called on the context. */
22 | public final class RequestOperation<Bridge : BridgeProtocol> : Operation {
| `- warning: class 'RequestOperation' must restate inherited '@unchecked Sendable' conformance
23 |
24 | public typealias Request = BMO.Request<Bridge.LocalDb, Bridge.RequestUserInfo>
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestOperation.swift:174:51: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
172 | }
173 | remoteOperation = operation
174 | let completionOperation = BlockOperation{ self.continueOperation{
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
175 | self.remoteOperation = nil
176 | return self.continueOperation(finishedRemoteOperation: operation, userInfo: userInfo)
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestOperation.swift:208:51: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
206 | )
207 | importOperation = operation
208 | let completionOperation = BlockOperation{ self.continueOperation{
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
209 | self.importOperation = nil
210 | return self.continueOperation(finishedImportOperation: operation, finishedRemoteOperation: finishedRemoteOperation)
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[22/23] Compiling BMO Result+Utils.swift
[23/23] Compiling BMO DummyRequestHelper.swift
[24/25] Compiling BMO RequestHelperCollection.swift
[25/25] Compiling BMO RequestHelperCollectionForOldRuntimes.swift
[26/45] Emitting module BMOCoreData
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:32:107: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:32:107: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:17:157: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
15 | autoStart: Bool = true,
16 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
17 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
18 | ) throws -> RequestOperation<Bridge> {
19 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:17:157: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
15 | autoStart: Bool = true,
16 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
17 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
18 | ) throws -> RequestOperation<Bridge> {
19 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:32:126: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<(createdObject: Object, results: Bridge.RequestResults), Error>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | return try createDiscarded(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, discardableObjectCreator: discardableObjectCreator, handler: { results in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:32:184: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<(importedCreatedObject: Object, results: Bridge.RequestResults), Error>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | return try createSaved(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, savedObjectCreator: savedObjectCreator, handler: { createdObjectID, results in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:32:103: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | settings: Settings? = nil,
31 | autoStart: Bool = true,
32 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, Error>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:40:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
38 | settings: Settings? = nil,
39 | autoStart: Bool = true,
40 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
41 | ) -> RequestOperation<Bridge> {
42 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:40:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
38 | settings: Settings? = nil,
39 | autoStart: Bool = true,
40 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
41 | ) -> RequestOperation<Bridge> {
42 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:98:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
96 | settings: Settings? = nil,
97 | autoStart: Bool = true,
98 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
99 | ) -> RequestOperation<Bridge> {
100 | let fRequest = Object.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:98:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
96 | settings: Settings? = nil,
97 | autoStart: Bool = true,
98 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
99 | ) -> RequestOperation<Bridge> {
100 | let fRequest = Object.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:33:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | discardableUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:33:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | discardableUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:33:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | savedUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:33:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | savedUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:14:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
12 | extension Logger {
13 |
14 | nonisolated(unsafe) static let importer = {Logger(OSLog.importer)}()
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
15 | nonisolated(unsafe) static let saveRequestHelper = {Logger(OSLog.saveRequestHelper)}()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:15:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
13 |
14 | nonisolated(unsafe) static let importer = {Logger(OSLog.importer)}()
15 | nonisolated(unsafe) static let saveRequestHelper = {Logger(OSLog.saveRequestHelper)}()
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
16 |
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:21:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
19 | extension OSLog {
20 |
21 | nonisolated(unsafe) static let importer = {
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
22 | return OSLog(subsystem: OSLog.subsystem, category: "Importer")
23 | }()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:25:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
23 | }()
24 |
25 | nonisolated(unsafe) static let saveRequestHelper = {
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
26 | return OSLog(subsystem: OSLog.subsystem, category: "SaveRequestHelper")
27 | }()
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[27/47] Compiling BMOCoreData NSManagedObjectContext+BMO.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:26:11: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
23 | extension NSManagedObjectContext : LocalDbContextProtocol {
24 |
25 | public func performRW(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-Sendable
26 | perform(block)
| `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:31:30: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
27 | }
28 |
29 | public func performAndWaitRW<T>(_ block: () throws -> T) rethrows -> T {
| `- note: parameter 'block' is implicitly non-Sendable
30 | if #available(macOS 12, iOS 15, tvOS 16, watchOS 8, *) {
31 | return try performAndWait(block)
| `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
32 | } else {
33 | return try withoutActuallyEscaping(block, do: { escapableBlock in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:36:13: warning: capture of 'retOnContext' with non-Sendable type 'Result<T, any Error>?' in a '@Sendable' closure [#SendableClosureCaptures]
27 | }
28 |
29 | public func performAndWaitRW<T>(_ block: () throws -> T) rethrows -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
30 | if #available(macOS 12, iOS 15, tvOS 16, watchOS 8, *) {
31 | return try performAndWait(block)
:
34 | var retOnContext: Result<T, Error>? = nil
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
| `- warning: capture of 'retOnContext' with non-Sendable type 'Result<T, any Error>?' in a '@Sendable' closure [#SendableClosureCaptures]
37 | catch {retOnContext = .failure(error)}
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:36:41: warning: capture of 'escapableBlock' with non-Sendable type '() throws -> T' in a '@Sendable' closure [#SendableClosureCaptures]
34 | var retOnContext: Result<T, Error>? = nil
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
| |- warning: capture of 'escapableBlock' with non-Sendable type '() throws -> T' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
37 | catch {retOnContext = .failure(error)}
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:36:13: warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
34 | var retOnContext: Result<T, Error>? = nil
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
| `- warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
37 | catch {retOnContext = .failure(error)}
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:37:13: warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
37 | catch {retOnContext = .failure(error)}
| `- warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
38 | }
39 | return try retOnContext!.get()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:32:107: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:32:107: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:50:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
48 | handler(op.result)
49 | }
50 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
51 | }
52 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:48:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
46 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
47 | DispatchQueue.main.async{
48 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
49 | }
50 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:48:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
46 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
47 | DispatchQueue.main.async{
48 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
49 | }
50 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:79:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | discardableObjectCreator: discardableObjectCreator,
78 | handler: { res in
79 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
80 | }
81 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:79:20: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | discardableObjectCreator: discardableObjectCreator,
78 | handler: { res in
79 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
80 | }
81 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:79:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
77 | discardableObjectCreator: discardableObjectCreator,
78 | handler: { res in
79 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
80 | }
81 | )
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[28/47] Compiling BMOCoreData CoreDataAPI+Create-Discarded.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:26:11: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
23 | extension NSManagedObjectContext : LocalDbContextProtocol {
24 |
25 | public func performRW(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-Sendable
26 | perform(block)
| `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:31:30: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
27 | }
28 |
29 | public func performAndWaitRW<T>(_ block: () throws -> T) rethrows -> T {
| `- note: parameter 'block' is implicitly non-Sendable
30 | if #available(macOS 12, iOS 15, tvOS 16, watchOS 8, *) {
31 | return try performAndWait(block)
| `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
32 | } else {
33 | return try withoutActuallyEscaping(block, do: { escapableBlock in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:36:13: warning: capture of 'retOnContext' with non-Sendable type 'Result<T, any Error>?' in a '@Sendable' closure [#SendableClosureCaptures]
27 | }
28 |
29 | public func performAndWaitRW<T>(_ block: () throws -> T) rethrows -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
30 | if #available(macOS 12, iOS 15, tvOS 16, watchOS 8, *) {
31 | return try performAndWait(block)
:
34 | var retOnContext: Result<T, Error>? = nil
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
| `- warning: capture of 'retOnContext' with non-Sendable type 'Result<T, any Error>?' in a '@Sendable' closure [#SendableClosureCaptures]
37 | catch {retOnContext = .failure(error)}
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:36:41: warning: capture of 'escapableBlock' with non-Sendable type '() throws -> T' in a '@Sendable' closure [#SendableClosureCaptures]
34 | var retOnContext: Result<T, Error>? = nil
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
| |- warning: capture of 'escapableBlock' with non-Sendable type '() throws -> T' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
37 | catch {retOnContext = .failure(error)}
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:36:13: warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
34 | var retOnContext: Result<T, Error>? = nil
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
| `- warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
37 | catch {retOnContext = .failure(error)}
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/BMOProtocolsConformance/NSManagedObjectContext+BMO.swift:37:13: warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
35 | performAndWait{
36 | do {retOnContext = .success(try escapableBlock())}
37 | catch {retOnContext = .failure(error)}
| `- warning: mutation of captured var 'retOnContext' in concurrently-executing code [#SendableClosureCaptures]
38 | }
39 | return try retOnContext!.get()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:32:107: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:32:107: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:50:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
48 | handler(op.result)
49 | }
50 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
51 | }
52 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:48:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
46 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
47 | DispatchQueue.main.async{
48 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
49 | }
50 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:48:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
46 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
47 | DispatchQueue.main.async{
48 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
49 | }
50 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:79:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | discardableObjectCreator: discardableObjectCreator,
78 | handler: { res in
79 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
80 | }
81 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:79:20: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | discardableObjectCreator: discardableObjectCreator,
78 | handler: { res in
79 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
80 | }
81 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Discarded.swift:79:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
77 | discardableObjectCreator: discardableObjectCreator,
78 | handler: { res in
79 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
80 | }
81 | )
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[29/47] Compiling BMOCoreData CoreDataAPI+Create-Saved.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:17:157: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
15 | autoStart: Bool = true,
16 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
17 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
18 | ) throws -> RequestOperation<Bridge> {
19 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:17:157: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
15 | autoStart: Bool = true,
16 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
17 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
18 | ) throws -> RequestOperation<Bridge> {
19 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:36:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | handler(objectID, op.result)
35 | }
36 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | }
38 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:34:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
32 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
33 | DispatchQueue.main.async{
34 | handler(objectID, op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
35 | }
36 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:34:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
32 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
33 | DispatchQueue.main.async{
34 | handler(objectID, op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
35 | }
36 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:68:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
66 | savedObjectCreator: savedObjectCreator,
67 | handler: { _, res in
68 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
69 | }
70 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:68:20: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
66 | savedObjectCreator: savedObjectCreator,
67 | handler: { _, res in
68 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
69 | }
70 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:32:126: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<(createdObject: Object, results: Bridge.RequestResults), Error>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | return try createDiscarded(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, discardableObjectCreator: discardableObjectCreator, handler: { results in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:36:30: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createDiscarded(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, discardableObjectCreator: discardableObjectCreator, handler: { results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:36:30: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createDiscarded(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, discardableObjectCreator: discardableObjectCreator, handler: { results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:66:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
64 | discardableObjectCreator: discardableObjectCreator,
65 | handler: { res in
66 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
67 | }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:68:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
66 | savedObjectCreator: savedObjectCreator,
67 | handler: { _, res in
68 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
69 | }
70 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:66:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
64 | discardableObjectCreator: discardableObjectCreator,
65 | handler: { res in
66 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
67 | }
68 | )
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[30/47] Compiling BMOCoreData CoreDataAPI+CreateAndGet-Discarded.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:17:157: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
15 | autoStart: Bool = true,
16 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
17 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
18 | ) throws -> RequestOperation<Bridge> {
19 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:17:157: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
15 | autoStart: Bool = true,
16 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
17 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
18 | ) throws -> RequestOperation<Bridge> {
19 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:36:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | handler(objectID, op.result)
35 | }
36 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | }
38 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:34:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
32 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
33 | DispatchQueue.main.async{
34 | handler(objectID, op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
35 | }
36 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:34:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
32 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
33 | DispatchQueue.main.async{
34 | handler(objectID, op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
35 | }
36 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:68:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
66 | savedObjectCreator: savedObjectCreator,
67 | handler: { _, res in
68 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
69 | }
70 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:68:20: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
66 | savedObjectCreator: savedObjectCreator,
67 | handler: { _, res in
68 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
69 | }
70 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:32:126: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | discardableObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (Result<(createdObject: Object, results: Bridge.RequestResults), Error>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | return try createDiscarded(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, discardableObjectCreator: discardableObjectCreator, handler: { results in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:36:30: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createDiscarded(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, discardableObjectCreator: discardableObjectCreator, handler: { results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:36:30: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createDiscarded(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, discardableObjectCreator: discardableObjectCreator, handler: { results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:66:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
64 | discardableObjectCreator: discardableObjectCreator,
65 | handler: { res in
66 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
67 | }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Create-Saved.swift:68:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
66 | savedObjectCreator: savedObjectCreator,
67 | handler: { _, res in
68 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
69 | }
70 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Discarded.swift:66:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
64 | discardableObjectCreator: discardableObjectCreator,
65 | handler: { res in
66 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
67 | }
68 | )
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[31/47] Compiling BMOCoreData CoreDataAPI+CreateAndGet-Saved.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:32:184: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<(importedCreatedObject: Object, results: Bridge.RequestResults), Error>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | return try createSaved(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, savedObjectCreator: savedObjectCreator, handler: { createdObjectID, results in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:36:30: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createSaved(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, savedObjectCreator: savedObjectCreator, handler: { createdObjectID, results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:36:30: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createSaved(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, savedObjectCreator: savedObjectCreator, handler: { createdObjectID, results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:66:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
64 | savedObjectCreator: savedObjectCreator,
65 | handler: { _, res in
66 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
67 | }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:32:103: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | settings: Settings? = nil,
31 | autoStart: Bool = true,
32 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, Error>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:61:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
59 | }
60 | }
61 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
62 | }
63 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:46:22: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
44 | op.completionBlock = { [context = CompletionContext(object: object, localDb: localDb)] in /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
45 | DispatchQueue.main.async{
46 | let result = op.result
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
47 | if case .success = result {
48 | /* If the request succeeded, we try and remove the Core Data object. */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:46:22: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
44 | op.completionBlock = { [context = CompletionContext(object: object, localDb: localDb)] in /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
45 | DispatchQueue.main.async{
46 | let result = op.result
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
47 | if case .success = result {
48 | /* If the request succeeded, we try and remove the Core Data object. */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:49:15: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
47 | if case .success = result {
48 | /* If the request succeeded, we try and remove the Core Data object. */
49 | context.localDb.context.perform{
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
50 | context.localDb.context.delete(context.object)
51 | if let error = context.localDb.context.saveOrRollback() {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:54:17: warning: capture of 'result' with non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, RequestError<Bridge>>' in a '@Sendable' closure [#SendableClosureCaptures]
52 | handler(.failure(error))
53 | } else {
54 | handler(result.mapError{ $0 as Error })
| `- warning: capture of 'result' with non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, RequestError<Bridge>>' in a '@Sendable' closure [#SendableClosureCaptures]
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestResult.swift:20:13: note: generic enum 'RequestResult' does not conform to the 'Sendable' protocol
18 |
19 |
20 | public enum RequestResult<RemoteOperation : Operation, LocalDbObject : LocalDbObjectProtocol, Metadata : Sendable> {
| `- note: generic enum 'RequestResult' does not conform to the 'Sendable' protocol
21 |
22 | /**
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:19:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BMO'
17 | import Foundation
18 |
19 | import BMO
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BMO'
20 |
21 |
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:50:16: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
48 | /* If the request succeeded, we try and remove the Core Data object. */
49 | context.localDb.context.perform{
50 | context.localDb.context.delete(context.object)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:50:8: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
48 | /* If the request succeeded, we try and remove the Core Data object. */
49 | context.localDb.context.perform{
50 | context.localDb.context.delete(context.object)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:52:9: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
50 | context.localDb.context.delete(context.object)
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
53 | } else {
54 | handler(result.mapError{ $0 as Error })
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:52:9: warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
30 | settings: Settings? = nil,
31 | autoStart: Bool = true,
32 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, Error>) -> Void = { _ in }
| `- note: calls to parameter 'handler' from outside of its actor context are implicitly asynchronous
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
:
50 | context.localDb.context.delete(context.object)
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
| `- warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
53 | } else {
54 | handler(result.mapError{ $0 as Error })
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:54:9: warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
30 | settings: Settings? = nil,
31 | autoStart: Bool = true,
32 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, Error>) -> Void = { _ in }
| `- note: calls to parameter 'handler' from outside of its actor context are implicitly asynchronous
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
:
52 | handler(.failure(error))
53 | } else {
54 | handler(result.mapError{ $0 as Error })
| `- warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:84:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
82 | settings: settings, autoStart: true,
83 | handler: { res in
84 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
85 | }
86 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:66:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
64 | savedObjectCreator: savedObjectCreator,
65 | handler: { _, res in
66 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
67 | }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:54:9: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
52 | handler(.failure(error))
53 | } else {
54 | handler(result.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:84:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
82 | settings: settings, autoStart: true,
83 | handler: { res in
84 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
85 | }
86 | )
[#ActorIsolatedCall]: <https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[32/47] Compiling BMOCoreData CoreDataAPI+Delete.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:32:184: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | autoStart: Bool = true,
31 | savedObjectCreator: @escaping @Sendable (_ managedObjectContext: NSManagedObjectContext) throws -> Object,
32 | handler: @escaping @Sendable @MainActor (_ createdObjectIDBeforeImport: NSManagedObjectID, Result<(importedCreatedObject: Object, results: Bridge.RequestResults), Error>) -> Void = { _, _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | return try createSaved(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, savedObjectCreator: savedObjectCreator, handler: { createdObjectID, results in
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:36:30: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createSaved(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, savedObjectCreator: savedObjectCreator, handler: { createdObjectID, results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:36:30: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | return try createSaved(objectType, requestUserInfo: requestUserInfo, settings: settings, autoStart: autoStart, savedObjectCreator: savedObjectCreator, handler: { createdObjectID, results in
35 | do {
36 | let result = try results.get()
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
37 | guard let importedObjects = result.dbChanges?.importedObjects,
38 | let createdObject = importedObjects.first?.object as? Object,
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:66:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
64 | savedObjectCreator: savedObjectCreator,
65 | handler: { _, res in
66 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
67 | }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:32:103: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
30 | settings: Settings? = nil,
31 | autoStart: Bool = true,
32 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, Error>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:61:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
59 | }
60 | }
61 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
62 | }
63 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:46:22: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
44 | op.completionBlock = { [context = CompletionContext(object: object, localDb: localDb)] in /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
45 | DispatchQueue.main.async{
46 | let result = op.result
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
47 | if case .success = result {
48 | /* If the request succeeded, we try and remove the Core Data object. */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:46:22: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
44 | op.completionBlock = { [context = CompletionContext(object: object, localDb: localDb)] in /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
45 | DispatchQueue.main.async{
46 | let result = op.result
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
47 | if case .success = result {
48 | /* If the request succeeded, we try and remove the Core Data object. */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:49:15: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
47 | if case .success = result {
48 | /* If the request succeeded, we try and remove the Core Data object. */
49 | context.localDb.context.perform{
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
50 | context.localDb.context.delete(context.object)
51 | if let error = context.localDb.context.saveOrRollback() {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:54:17: warning: capture of 'result' with non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, RequestError<Bridge>>' in a '@Sendable' closure [#SendableClosureCaptures]
52 | handler(.failure(error))
53 | } else {
54 | handler(result.mapError{ $0 as Error })
| `- warning: capture of 'result' with non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, RequestError<Bridge>>' in a '@Sendable' closure [#SendableClosureCaptures]
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMO/Core/RequestResult.swift:20:13: note: generic enum 'RequestResult' does not conform to the 'Sendable' protocol
18 |
19 |
20 | public enum RequestResult<RemoteOperation : Operation, LocalDbObject : LocalDbObjectProtocol, Metadata : Sendable> {
| `- note: generic enum 'RequestResult' does not conform to the 'Sendable' protocol
21 |
22 | /**
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:19:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BMO'
17 | import Foundation
18 |
19 | import BMO
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BMO'
20 |
21 |
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:50:16: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
48 | /* If the request succeeded, we try and remove the Core Data object. */
49 | context.localDb.context.perform{
50 | context.localDb.context.delete(context.object)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.Type' in an isolated closure [#SendableMetatypes]
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:50:8: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
48 | /* If the request succeeded, we try and remove the Core Data object. */
49 | context.localDb.context.perform{
50 | context.localDb.context.delete(context.object)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:52:9: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
50 | context.localDb.context.delete(context.object)
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
53 | } else {
54 | handler(result.mapError{ $0 as Error })
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:52:9: warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
30 | settings: Settings? = nil,
31 | autoStart: Bool = true,
32 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, Error>) -> Void = { _ in }
| `- note: calls to parameter 'handler' from outside of its actor context are implicitly asynchronous
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
:
50 | context.localDb.context.delete(context.object)
51 | if let error = context.localDb.context.saveOrRollback() {
52 | handler(.failure(error))
| `- warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
53 | } else {
54 | handler(result.mapError{ $0 as Error })
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:54:9: warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
30 | settings: Settings? = nil,
31 | autoStart: Bool = true,
32 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, Error>) -> Void = { _ in }
| `- note: calls to parameter 'handler' from outside of its actor context are implicitly asynchronous
33 | ) throws -> RequestOperation<Bridge> {
34 | let settings = settings ?? defaultSettings
:
52 | handler(.failure(error))
53 | } else {
54 | handler(result.mapError{ $0 as Error })
| `- warning: call to main actor-isolated parameter 'handler' in a synchronous nonisolated context [#ActorIsolatedCall]
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:84:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
82 | settings: settings, autoStart: true,
83 | handler: { res in
84 | continuation.resume(with: res)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
85 | }
86 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+CreateAndGet-Saved.swift:66:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
64 | savedObjectCreator: savedObjectCreator,
65 | handler: { _, res in
66 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
67 | }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:54:9: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
52 | handler(.failure(error))
53 | } else {
54 | handler(result.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Delete.swift:84:20: warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
82 | settings: settings, autoStart: true,
83 | handler: { res in
84 | continuation.resume(with: res)
| |- warning: sending 'res' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: main actor-isolated 'res' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
85 | }
86 | )
[#ActorIsolatedCall]: <https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[33/47] Compiling BMOCoreData BMOCoreDataSaveRequestHelper.swift
[34/47] Compiling BMOCoreData NSManagedObject+BMO.swift
[35/47] Compiling BMOCoreData Loggers.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:14:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
12 | extension Logger {
13 |
14 | nonisolated(unsafe) static let importer = {Logger(OSLog.importer)}()
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
15 | nonisolated(unsafe) static let saveRequestHelper = {Logger(OSLog.saveRequestHelper)}()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:15:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
13 |
14 | nonisolated(unsafe) static let importer = {Logger(OSLog.importer)}()
15 | nonisolated(unsafe) static let saveRequestHelper = {Logger(OSLog.saveRequestHelper)}()
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
16 |
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:21:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
19 | extension OSLog {
20 |
21 | nonisolated(unsafe) static let importer = {
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
22 | return OSLog(subsystem: OSLog.subsystem, category: "Importer")
23 | }()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:25:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
23 | }()
24 |
25 | nonisolated(unsafe) static let saveRequestHelper = {
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
26 | return OSLog(subsystem: OSLog.subsystem, category: "SaveRequestHelper")
27 | }()
[36/47] Compiling BMOCoreData NSManagedObjectContext+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:14:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
12 | extension Logger {
13 |
14 | nonisolated(unsafe) static let importer = {Logger(OSLog.importer)}()
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
15 | nonisolated(unsafe) static let saveRequestHelper = {Logger(OSLog.saveRequestHelper)}()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:15:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
13 |
14 | nonisolated(unsafe) static let importer = {Logger(OSLog.importer)}()
15 | nonisolated(unsafe) static let saveRequestHelper = {Logger(OSLog.saveRequestHelper)}()
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'Logger', consider removing it
16 |
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:21:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
19 | extension OSLog {
20 |
21 | nonisolated(unsafe) static let importer = {
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
22 | return OSLog(subsystem: OSLog.subsystem, category: "Importer")
23 | }()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/Utilities/Private/ Loggers.swift:25:2: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
23 | }()
24 |
25 | nonisolated(unsafe) static let saveRequestHelper = {
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'OSLog', consider removing it
26 | return OSLog(subsystem: OSLog.subsystem, category: "SaveRequestHelper")
27 | }()
[37/47] Compiling BMOCoreData NSPredicate+Utils.swift
[38/47] Compiling BMOCoreData RemoteFetchType.swift
[39/47] Compiling BMOCoreData CoreDataAPI+Fetch.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:40:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
38 | settings: Settings? = nil,
39 | autoStart: Bool = true,
40 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
41 | ) -> RequestOperation<Bridge> {
42 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:40:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
38 | settings: Settings? = nil,
39 | autoStart: Bool = true,
40 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
41 | ) -> RequestOperation<Bridge> {
42 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:98:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
96 | settings: Settings? = nil,
97 | autoStart: Bool = true,
98 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
99 | ) -> RequestOperation<Bridge> {
100 | let fRequest = Object.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:98:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
96 | settings: Settings? = nil,
97 | autoStart: Bool = true,
98 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
99 | ) -> RequestOperation<Bridge> {
100 | let fRequest = Object.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:52:4: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
50 | handler(op.result)
51 | }
52 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
53 | }
54 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:50:5: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
48 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
49 | DispatchQueue.main.async{
50 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
51 | }
52 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:50:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
48 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
49 | DispatchQueue.main.async{
50 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
51 | }
52 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:76:19: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
74 | autoStart: true,
75 | handler: { res in
76 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | }
78 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:76:36: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
74 | autoStart: true,
75 | handler: { res in
76 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | }
78 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:124:19: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
122 | autoStart: true,
123 | handler: { res in
124 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
125 | }
126 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:124:36: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
122 | autoStart: true,
123 | handler: { res in
124 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
125 | }
126 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:33:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | discardableUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:33:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | discardableUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:54:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
52 | handler(op.result)
53 | }
54 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
55 | }
56 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:52:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
50 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
51 | DispatchQueue.main.async{
52 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
53 | }
54 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:52:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
50 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
51 | DispatchQueue.main.async{
52 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
53 | }
54 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:80:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | discardableUpdates: discardableUpdates,
79 | handler: { res in
80 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
81 | }
82 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:80:37: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | discardableUpdates: discardableUpdates,
79 | handler: { res in
80 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
81 | }
82 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:76:19: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
74 | autoStart: true,
75 | handler: { res in
76 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
77 | }
78 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:124:19: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
122 | autoStart: true,
123 | handler: { res in
124 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
125 | }
126 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:80:20: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
78 | discardableUpdates: discardableUpdates,
79 | handler: { res in
80 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
81 | }
82 | )
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[40/47] Compiling BMOCoreData CoreDataAPI+Update-Discarded.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:40:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
38 | settings: Settings? = nil,
39 | autoStart: Bool = true,
40 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
41 | ) -> RequestOperation<Bridge> {
42 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:40:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
38 | settings: Settings? = nil,
39 | autoStart: Bool = true,
40 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
41 | ) -> RequestOperation<Bridge> {
42 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:98:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
96 | settings: Settings? = nil,
97 | autoStart: Bool = true,
98 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
99 | ) -> RequestOperation<Bridge> {
100 | let fRequest = Object.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:98:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
96 | settings: Settings? = nil,
97 | autoStart: Bool = true,
98 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
99 | ) -> RequestOperation<Bridge> {
100 | let fRequest = Object.fetchRequest()
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:52:4: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
50 | handler(op.result)
51 | }
52 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
53 | }
54 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:50:5: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
48 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
49 | DispatchQueue.main.async{
50 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
51 | }
52 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:50:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
48 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
49 | DispatchQueue.main.async{
50 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
51 | }
52 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:76:19: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
74 | autoStart: true,
75 | handler: { res in
76 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | }
78 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:76:36: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
74 | autoStart: true,
75 | handler: { res in
76 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
77 | }
78 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:124:19: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
122 | autoStart: true,
123 | handler: { res in
124 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
125 | }
126 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:124:36: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
122 | autoStart: true,
123 | handler: { res in
124 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
125 | }
126 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:33:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | discardableUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:33:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | discardableUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:54:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
52 | handler(op.result)
53 | }
54 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
55 | }
56 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:52:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
50 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
51 | DispatchQueue.main.async{
52 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
53 | }
54 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:52:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
50 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
51 | DispatchQueue.main.async{
52 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
53 | }
54 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:80:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | discardableUpdates: discardableUpdates,
79 | handler: { res in
80 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
81 | }
82 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:80:37: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | discardableUpdates: discardableUpdates,
79 | handler: { res in
80 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
81 | }
82 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:76:19: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
74 | autoStart: true,
75 | handler: { res in
76 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
77 | }
78 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Fetch.swift:124:19: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
122 | autoStart: true,
123 | handler: { res in
124 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
125 | }
126 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Discarded.swift:80:20: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
78 | discardableUpdates: discardableUpdates,
79 | handler: { res in
80 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
81 | }
82 | )
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[41/47] Compiling BMOCoreData NSFetchRequest+Utils.swift
[42/47] Compiling BMOCoreData NSManagedObject+Utils.swift
[43/47] Compiling BMOCoreData CoreDataAPI+Update-Saved.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:33:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | savedUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:33:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | savedUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:51:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
49 | handler(op.result)
50 | }
51 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
52 | }
53 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:49:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
47 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
48 | DispatchQueue.main.async{
49 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
50 | }
51 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:49:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
47 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
48 | DispatchQueue.main.async{
49 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
50 | }
51 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:77:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
75 | savedUpdates: savedUpdates,
76 | handler: { res in
77 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | }
79 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:77:37: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
75 | savedUpdates: savedUpdates,
76 | handler: { res in
77 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | }
79 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:77:20: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
75 | savedUpdates: savedUpdates,
76 | handler: { res in
77 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
78 | }
79 | )
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[44/47] Compiling BMOCoreData CoreDataAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:33:118: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | savedUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:33:118: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
31 | autoStart: Bool = true,
32 | savedUpdates: @escaping @Sendable (_ object: Object, _ managedObjectContext: NSManagedObjectContext) throws -> Void,
33 | handler: @escaping @Sendable @MainActor (_ results: Result<Bridge.RequestResults, RequestError<Bridge>>) -> Void = { _ in }
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
34 | ) throws -> RequestOperation<Bridge> {
35 | let settings = settings ?? defaultSettings
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:51:5: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
49 | handler(op.result)
50 | }
51 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
52 | }
53 | if autoStart {
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:49:6: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
47 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
48 | DispatchQueue.main.async{
49 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure [#SendableMetatypes]
50 | }
51 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:49:6: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
47 | op.completionBlock = { /* We keep a strong ref to op but it’s not a problem because we nullify the completion block at the end of the block. */
48 | DispatchQueue.main.async{
49 | handler(op.result)
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure [#SendableMetatypes]
50 | }
51 | op.completionBlock = nil /* In theory not needed anymore; I never tested that… */
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:77:20: warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
75 | savedUpdates: savedUpdates,
76 | handler: { res in
77 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.BridgeObjects.LocalDb.DbObject.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | }
79 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:77:37: warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
75 | savedUpdates: savedUpdates,
76 | handler: { res in
77 | continuation.resume(with: res.mapError{ $0 as Error })
| `- warning: capture of non-Sendable type 'Bridge.Type' in an isolated closure; this is an error in the Swift 6 language mode [#SendableMetatypes]
78 | }
79 | )
/Users/admin/builder/spi-builder-workspace/Sources/BMOCoreData/CoreDataAPI+Update-Saved.swift:77:20: warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
75 | savedUpdates: savedUpdates,
76 | handler: { res in
77 | continuation.resume(with: res.mapError{ $0 as Error })
| |- warning: sending value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: Passing main actor-isolated value of non-Sendable type 'Result<RequestResult<Bridge.BridgeObjects.RemoteDb.RemoteOperation, Bridge.BridgeObjects.LocalDb.DbObject, Bridge.BridgeObjects.Metadata>, any Error>' as a 'sending' parameter to instance method 'resume(with:)' risks causing races inbetween main actor-isolated uses and uses reachable from 'resume(with:)'
78 | }
79 | )
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[45/47] Compiling BMOCoreData Errors.swift
[46/47] Compiling BMOCoreData BMOCoreDataImporter.swift
[47/47] Compiling BMOCoreData BMOCoreDataFetchRequestHelper.swift
Build complete! (7.01s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BMO",
"name" : "BMO",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "BMO",
"targets" : [
"BMO"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "BMOCoreData",
"targets" : [
"BMOCoreData"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BMOTests",
"module_type" : "SwiftTarget",
"name" : "BMOTests",
"path" : "Tests/BMOTests",
"sources" : [
"BMOTests.swift"
],
"target_dependencies" : [
"BMO"
],
"type" : "test"
},
{
"c99name" : "BMOCoreDataTests",
"module_type" : "SwiftTarget",
"name" : "BMOCoreDataTests",
"path" : "Tests/BMOCoreDataTests",
"sources" : [
"BMOCoreDataTests.swift"
],
"target_dependencies" : [
"BMOCoreData"
],
"type" : "test"
},
{
"c99name" : "BMOCoreData",
"module_type" : "SwiftTarget",
"name" : "BMOCoreData",
"path" : "Sources/BMOCoreData",
"product_memberships" : [
"BMOCoreData"
],
"sources" : [
" Errors.swift",
"BMOImplementations/BMOCoreDataImporter.swift",
"BMOImplementations/RequestHelpers/BMOCoreDataFetchRequestHelper.swift",
"BMOImplementations/RequestHelpers/BMOCoreDataSaveRequestHelper.swift",
"BMOProtocolsConformance/NSManagedObject+BMO.swift",
"BMOProtocolsConformance/NSManagedObjectContext+BMO.swift",
"CoreDataAPI+Create-Discarded.swift",
"CoreDataAPI+Create-Saved.swift",
"CoreDataAPI+CreateAndGet-Discarded.swift",
"CoreDataAPI+CreateAndGet-Saved.swift",
"CoreDataAPI+Delete.swift",
"CoreDataAPI+Fetch.swift",
"CoreDataAPI+Update-Discarded.swift",
"CoreDataAPI+Update-Saved.swift",
"CoreDataAPI.swift",
"Utilities/Private/ Loggers.swift",
"Utilities/Private/NSManagedObjectContext+Utils.swift",
"Utilities/Public/NSFetchRequest+Utils.swift",
"Utilities/Public/NSManagedObject+Utils.swift",
"Utilities/Public/NSPredicate+Utils.swift",
"Utilities/Public/RemoteFetchType.swift"
],
"target_dependencies" : [
"BMO"
],
"type" : "library"
},
{
"c99name" : "BMO",
"module_type" : "SwiftTarget",
"name" : "BMO",
"path" : "Sources/BMO",
"product_memberships" : [
"BMO",
"BMOCoreData"
],
"sources" : [
"Core/Bridge-Protocol.swift",
"Core/BridgeObjects-Protocol.swift",
"Core/LocalDb-Protocol.swift",
"Core/LocalDbImportOperation.swift",
"Core/LocalDbImporter-Protocol.swift",
"Core/RemoteDb-Protocol.swift",
"Core/Request.swift",
"Core/RequestHelper-Protocol.swift",
"Core/RequestOperation.swift",
"Core/RequestResult.swift",
"Errors/ErrorCollection.swift",
"Errors/OperationLifecycleError.swift",
"Errors/RequestError.swift",
"Helpers/GenericLocalDbObject.swift",
"Helpers/LocalDbChanges.swift",
"Helpers/RelationshipMergeType.swift",
"Utilities/Private/MapError.swift",
"Utilities/Private/Result+Utils.swift",
"Utilities/Public/DummyRequestHelper.swift",
"Utilities/Public/RequestHelperCollection.swift",
"Utilities/Public/RequestHelperCollectionForOldRuntimes.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.