Build Information
Successful build of HSObserver, reference 1.2.0 (e3e5be
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 17:39:56 UTC.
Swift 6 data race errors: 1
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/ConfusedVorlon/HSObserver.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ConfusedVorlon/HSObserver
* tag 1.2.0 -> FETCH_HEAD
HEAD is now at e3e5be5 Tidy up docs
Cloned https://github.com/ConfusedVorlon/HSObserver.git
Revision (git rev-parse @):
e3e5be504eae3d1f97adec90887a945f389de5ee
SUCCESS checkout https://github.com/ConfusedVorlon/HSObserver.git at 1.2.0
========================================
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": "hsobserver",
"name": "HSObserver",
"url": "https://github.com/ConfusedVorlon/HSObserver.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HSObserver",
"dependencies": [
]
}
]
}
Fetching https://github.com/ConfusedVorlon/HSObserver.git
[1/172] Fetching hsobserver
Fetched https://github.com/ConfusedVorlon/HSObserver.git from cache (0.65s)
Creating working copy for https://github.com/ConfusedVorlon/HSObserver.git
Working copy of https://github.com/ConfusedVorlon/HSObserver.git resolved at 1.2.0 (e3e5be5)
warning: '.resolve-product-dependencies': dependency 'hsobserver' 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/ConfusedVorlon/HSObserver.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/8] Compiling HSObserver HSObserves.swift
[4/8] Compiling HSObserver NSNotification+HSObserver.swift
[5/8] Emitting module HSObserver
/Users/admin/builder/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:20:13: warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var observerKey: Void?
| |- warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'observerKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'observerKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public extension HSHasObservers {
22 | private func _getObservers() -> [HSObserves] {
[6/8] Compiling HSObserver HSObserver.swift
/Users/admin/builder/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:92:86: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
90 | object: object,
91 | queue: queue,
92 | using: block)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
93 | notificationObservers.append(notificationObserver)
94 | }
[7/8] Compiling HSObserver HSHasObservers.swift
/Users/admin/builder/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:20:13: warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var observerKey: Void?
| |- warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'observerKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'observerKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public extension HSHasObservers {
22 | private func _getObservers() -> [HSObserves] {
[8/8] Compiling HSObserver HSKeyPathObserver.swift
Build complete! (7.73s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "HSObserver",
"name" : "HSObserver",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HSObserver",
"targets" : [
"HSObserver"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HSObserverTests",
"module_type" : "SwiftTarget",
"name" : "HSObserverTests",
"path" : "Tests/HSObserverTests",
"sources" : [
"HSObserverTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"HSObserver"
],
"type" : "test"
},
{
"c99name" : "HSObserver",
"module_type" : "SwiftTarget",
"name" : "HSObserver",
"path" : "Sources/HSObserver",
"product_memberships" : [
"HSObserver"
],
"sources" : [
"HSHasObservers.swift",
"HSKeyPathObserver.swift",
"HSObserver.swift",
"HSObserves.swift",
"NSNotification+HSObserver.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.