Build Information
Successful build of XPCConnectionSession, reference main (7286e3
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 14:18:27 UTC.
Swift 6 data race errors: 2
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/ChimeHQ/XPCConnectionSession.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/XPCConnectionSession
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7286e38 funding
Cloned https://github.com/ChimeHQ/XPCConnectionSession.git
Revision (git rev-parse @):
7286e38e7c8a6abb2b2dea5c172509c55f470409
SUCCESS checkout https://github.com/ChimeHQ/XPCConnectionSession.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",
"dependencies": [
{
"identity": "xpcconnectionsession",
"name": "XPCConnectionSession",
"url": "https://github.com/ChimeHQ/XPCConnectionSession.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/XPCConnectionSession",
"dependencies": [
]
}
]
}
Fetching https://github.com/ChimeHQ/XPCConnectionSession.git
[1/38] Fetching xpcconnectionsession
Fetched https://github.com/ChimeHQ/XPCConnectionSession.git from cache (0.68s)
Creating working copy for https://github.com/ChimeHQ/XPCConnectionSession.git
Working copy of https://github.com/ChimeHQ/XPCConnectionSession.git resolved at main (7286e38)
warning: '.resolve-product-dependencies': dependency 'xpcconnectionsession' 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/ChimeHQ/XPCConnectionSession.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 XPCConnectionSession XPCSession+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/XPCConnectionSession/XPCSession+Async.swift:9:14: warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
7 | /// Sends a message over the session to the destination service asynchronously and returns the reply.
8 | @_unsafeInheritExecutor
9 | public func send<Message: Encodable, Reply: Decodable>(_ message: Message) async throws -> Reply {
| `- warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
10 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Reply, any Error>) in
11 | do {
/Users/admin/builder/spi-builder-workspace/Sources/XPCConnectionSession/XPCSession+Async.swift:12:38: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
10 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Reply, any Error>) in
11 | do {
12 | try send(message) { continuation.resume(with: $0) }
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
13 | } catch {
14 | continuation.resume(throwing: error)
[4/6] Compiling XPCConnectionSession XPCReceivedConnectionMessage.swift
[5/6] Compiling XPCConnectionSession XPCConnectionSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/XPCConnectionSession/XPCConnectionSession.swift:145:14: warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
143 | /// Sends a message to the remote service.
144 | @_unsafeInheritExecutor
145 | public func send<Message: Encodable, Reply: Decodable & Sendable>(_ message: Message) async throws -> Reply {
| `- warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
146 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Reply, any Error>) in
147 | do {
/Users/admin/builder/spi-builder-workspace/Sources/XPCConnectionSession/XPCConnectionSession.swift:137:41: warning: capture of 'incomingMessageHandler' with non-sendable type '(XPCReceivedConnectionMessage) -> (any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | queue.async {
136 | // I'm not sure how, or even if it is possible to get rid of this warning and also maintain backwards compatibility
137 | self.channelHandler.messageHandler = incomingMessageHandler
| |- warning: capture of 'incomingMessageHandler' with non-sendable type '(XPCReceivedConnectionMessage) -> (any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | }
139 | }
[6/6] Emitting module XPCConnectionSession
/Users/admin/builder/spi-builder-workspace/Sources/XPCConnectionSession/XPCConnectionSession.swift:145:14: warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
143 | /// Sends a message to the remote service.
144 | @_unsafeInheritExecutor
145 | public func send<Message: Encodable, Reply: Decodable & Sendable>(_ message: Message) async throws -> Reply {
| `- warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
146 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Reply, any Error>) in
147 | do {
/Users/admin/builder/spi-builder-workspace/Sources/XPCConnectionSession/XPCSession+Async.swift:9:14: warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
7 | /// Sends a message over the session to the destination service asynchronously and returns the reply.
8 | @_unsafeInheritExecutor
9 | public func send<Message: Encodable, Reply: Decodable>(_ message: Message) async throws -> Reply {
| `- warning: @_unsafeInheritExecutor attribute is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
10 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Reply, any Error>) in
11 | do {
Build complete! (5.94s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "XPCConnectionSession",
"name" : "XPCConnectionSession",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
}
],
"products" : [
{
"name" : "XPCConnectionSession",
"targets" : [
"XPCConnectionSession"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "XPCConnectionSessionTests",
"module_type" : "SwiftTarget",
"name" : "XPCConnectionSessionTests",
"path" : "Tests/XPCConnectionSessionTests",
"sources" : [
"XPCConnectionSessionTests.swift"
],
"target_dependencies" : [
"XPCConnectionSession"
],
"type" : "test"
},
{
"c99name" : "XPCConnectionSession",
"module_type" : "SwiftTarget",
"name" : "XPCConnectionSession",
"path" : "Sources/XPCConnectionSession",
"product_memberships" : [
"XPCConnectionSession"
],
"sources" : [
"XPCConnectionSession.swift",
"XPCReceivedConnectionMessage.swift",
"XPCSession+Async.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.