Build Information
Successful build of EventHub, reference 1.0.0 (764e6a
), with Swift 6.0 for macOS (SPM) on 8 Oct 2024 10:40:38 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/imbue11235/EventHub.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/imbue11235/EventHub
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 764e6a1 Updated PodSpec
Cloned https://github.com/imbue11235/EventHub.git
Revision (git rev-parse @):
764e6a1caf8d084aba2111a64318b4f1c889cc0c
SUCCESS checkout https://github.com/imbue11235/EventHub.git at 1.0.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": "eventhub",
"name": "EventHub",
"url": "https://github.com/imbue11235/EventHub.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventHub",
"dependencies": [
]
}
]
}
Fetching https://github.com/imbue11235/EventHub.git
[1/41] Fetching eventhub
Fetched https://github.com/imbue11235/EventHub.git from cache (0.55s)
Creating working copy for https://github.com/imbue11235/EventHub.git
Working copy of https://github.com/imbue11235/EventHub.git resolved at 1.0.0 (764e6a1)
warning: '.resolve-product-dependencies': dependency 'eventhub' 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/imbue11235/EventHub.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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--4A847ED0836F2485.txt
[3/8] Compiling EventHub EventHub+SubscriptionType.swift
[4/8] Compiling EventHub EventHub+Subscriber.swift
[5/8] Compiling EventHub Event.swift
[6/8] Compiling EventHub EventHub.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventHub/EventHub.swift:30:17: warning: capture of 'self' with non-sendable type 'EventHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | final public class EventHub {
| `- note: class 'EventHub' does not conform to the 'Sendable' protocol
4 |
5 | public typealias Callback<T: Event> = (T) -> ()
:
28 | self.subscriptions.forEach { subscriber in
29 | self.queue.async {
30 | self.notify(a: subscriber, of: event)
| `- warning: capture of 'self' with non-sendable type 'EventHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventHub/EventHub.swift:30:32: warning: capture of 'subscriber' with non-sendable type 'EventHub.Subscriber' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | self.subscriptions.forEach { subscriber in
29 | self.queue.async {
30 | self.notify(a: subscriber, of: event)
| `- warning: capture of 'subscriber' with non-sendable type 'EventHub.Subscriber' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/EventHub/EventHub+Subscriber.swift:2:21: note: consider making struct 'Subscriber' conform to the 'Sendable' protocol
1 | extension EventHub {
2 | internal struct Subscriber {
| `- note: consider making struct 'Subscriber' conform to the 'Sendable' protocol
3 | public let identifier: String
4 | public let handler: Any
/Users/admin/builder/spi-builder-workspace/Sources/EventHub/EventHub.swift:30:48: warning: capture of 'event' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func trigger<T: Event>(event: T) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | self.subscriptions.forEach { subscriber in
29 | self.queue.async {
30 | self.notify(a: subscriber, of: event)
| `- warning: capture of 'event' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | }
32 | }
[7/8] Compiling EventHub Listener.swift
[8/8] Emitting module EventHub
Build complete! (6.76s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "EventHub",
"name" : "EventHub",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "EventHub",
"targets" : [
"EventHub"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EventHubTests",
"module_type" : "SwiftTarget",
"name" : "EventHubTests",
"path" : "Tests/EventHubTests",
"sources" : [
"EventHubTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"EventHub"
],
"type" : "test"
},
{
"c99name" : "EventHub",
"module_type" : "SwiftTarget",
"name" : "EventHub",
"path" : "Sources/EventHub",
"product_memberships" : [
"EventHub"
],
"sources" : [
"Event.swift",
"EventHub+Subscriber.swift",
"EventHub+SubscriptionType.swift",
"EventHub.swift",
"Listener.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.