Build Information
Successful build of KVObserver, reference 0.10.0-alpha.1 (6813a8
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 21:39:32 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/KVObserver.git
Reference: 0.10.0-alpha.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Frizlab/KVObserver
* tag 0.10.0-alpha.1 -> FETCH_HEAD
HEAD is now at 6813a8c Create a KVTreeObserver
Cloned https://github.com/Frizlab/KVObserver.git
Revision (git rev-parse @):
6813a8cf1fe0e72910dd9eb9c643d15d30145a0a
SUCCESS checkout https://github.com/Frizlab/KVObserver.git at 0.10.0-alpha.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "kvobserver",
"name": "KVObserver",
"url": "https://github.com/Frizlab/KVObserver.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KVObserver",
"dependencies": [
]
}
]
}
Fetching https://github.com/Frizlab/KVObserver.git
[1/247] Fetching kvobserver
Fetched https://github.com/Frizlab/KVObserver.git from cache (0.78s)
Creating working copy for https://github.com/Frizlab/KVObserver.git
Working copy of https://github.com/Frizlab/KVObserver.git resolved at 0.10.0-alpha.1 (6813a8c)
warning: '.resolve-product-dependencies': dependency 'kvobserver' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Frizlab/KVObserver.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling KVObserver Loggers.swift
[4/6] Compiling KVObserver KVTreeObserver.swift
[5/6] Compiling KVObserver KVObserver.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:204:77: warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | /* Two contexts are equal iff the observed objects and key paths of the contexts are the same.
155 | * If any of the observed objects has been deallocated the contexts are considered different. */
156 | private final class KVOContext : Equatable {
| `- note: class 'KVOContext' does not conform to the 'Sendable' protocol
157 |
158 | static func ==(lhs: KVObserver.KVOContext, rhs: KVObserver.KVOContext) -> Bool {
:
202 |
203 | case (.unsafeSync(let queue), _): queue.sync{ self.handler(change) }
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
| `- warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:204:90: warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 |
203 | case (.unsafeSync(let queue), _): queue.sync{ self.handler(change) }
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
| `- warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:205:77: warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | /* Two contexts are equal iff the observed objects and key paths of the contexts are the same.
155 | * If any of the observed objects has been deallocated the contexts are considered different. */
156 | private final class KVOContext : Equatable {
| `- note: class 'KVOContext' does not conform to the 'Sendable' protocol
157 |
158 | static func ==(lhs: KVObserver.KVOContext, rhs: KVObserver.KVOContext) -> Bool {
:
203 | case (.unsafeSync(let queue), _): queue.sync{ self.handler(change) }
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
| `- warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:205:90: warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | case (.unsafeSync(let queue), _): queue.sync{ self.handler(change) }
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
| `- warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:206:77: warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | /* Two contexts are equal iff the observed objects and key paths of the contexts are the same.
155 | * If any of the observed objects has been deallocated the contexts are considered different. */
156 | private final class KVOContext : Equatable {
| `- note: class 'KVOContext' does not conform to the 'Sendable' protocol
157 |
158 | static func ==(lhs: KVObserver.KVOContext, rhs: KVObserver.KVOContext) -> Bool {
:
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
| `- warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
208 | case (.directOrAsyncOnMainQueue, _):
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:206:90: warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
| `- warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
208 | case (.directOrAsyncOnMainQueue, _):
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:207:77: warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | /* Two contexts are equal iff the observed objects and key paths of the contexts are the same.
155 | * If any of the observed objects has been deallocated the contexts are considered different. */
156 | private final class KVOContext : Equatable {
| `- note: class 'KVOContext' does not conform to the 'Sendable' protocol
157 |
158 | static func ==(lhs: KVObserver.KVOContext, rhs: KVObserver.KVOContext) -> Bool {
:
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
| `- warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:207:90: warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
| `- warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:210:56: warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | /* Two contexts are equal iff the observed objects and key paths of the contexts are the same.
155 | * If any of the observed objects has been deallocated the contexts are considered different. */
156 | private final class KVOContext : Equatable {
| `- note: class 'KVOContext' does not conform to the 'Sendable' protocol
157 |
158 | static func ==(lhs: KVObserver.KVOContext, rhs: KVObserver.KVOContext) -> Bool {
:
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
210 | else {DispatchQueue.main.async{ self.handler(change) }}
| `- warning: capture of 'self' with non-sendable type 'KVObserver.KVOContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 |
212 | case (.coreDataSync(let context), _): context.performAndWait{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:210:69: warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
210 | else {DispatchQueue.main.async{ self.handler(change) }}
| `- warning: capture of 'change' with non-sendable type '[NSKeyValueChangeKey : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 |
212 | case (.coreDataSync(let context), _): context.performAndWait{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:207:77: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:207:90: warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
| |- warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'change' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:205:77: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
203 | case (.unsafeSync(let queue), _): queue.sync{ self.handler(change) }
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:205:90: warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
203 | case (.unsafeSync(let queue), _): queue.sync{ self.handler(change) }
204 | case (.async(let queue), _): queue.async{ self.handler(change) }
205 | case (.asyncOnMainQueue, _): DispatchQueue.main.async{ self.handler(change) }
| |- warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'change' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
206 | case (.asyncDirectInitial(let queue), false): queue.async{ self.handler(change) }
207 | case (.asyncOnMainQueueDirectInitial, false): DispatchQueue.main.async{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:210:56: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
210 | else {DispatchQueue.main.async{ self.handler(change) }}
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
211 |
212 | case (.coreDataSync(let context), _): context.performAndWait{ self.handler(change) }
/Users/admin/builder/spi-builder-workspace/Sources/KVObserver/KVObserver.swift:210:69: warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
208 | case (.directOrAsyncOnMainQueue, _):
209 | if Thread.isMainThread {handler(change)}
210 | else {DispatchQueue.main.async{ self.handler(change) }}
| |- warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'change' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
211 |
212 | case (.coreDataSync(let context), _): context.performAndWait{ self.handler(change) }
[6/6] Emitting module KVObserver
Build complete! (6.21s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "KVObserver",
"name" : "KVObserver",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "KVObserver",
"targets" : [
"KVObserver"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KVObserverTests",
"module_type" : "SwiftTarget",
"name" : "KVObserverTests",
"path" : "Tests/KVObserverTests",
"sources" : [
"Helpers/AutoObservedNSManagedObject.swift",
"Helpers/AutoObservedObject.swift",
"Helpers/ObservedObject.swift",
"KVObserverTests.swift"
],
"target_dependencies" : [
"KVObserver"
],
"type" : "test"
},
{
"c99name" : "KVObserver",
"module_type" : "SwiftTarget",
"name" : "KVObserver",
"path" : "Sources/KVObserver",
"product_memberships" : [
"KVObserver"
],
"sources" : [
"KVObserver.swift",
"KVTreeObserver.swift",
"Private/Loggers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.