The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of APIKit, reference 5.4.0 (b839e5), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 18:41:39 UTC.

Swift 6 data race errors: 11

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/ishkawa/APIKit.git
Reference: 5.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ishkawa/APIKit
 * tag               5.4.0      -> FETCH_HEAD
HEAD is now at b839e53 Set version 5.4.0
Cloned https://github.com/ishkawa/APIKit.git
Revision (git rev-parse @):
b839e53b870104798035b279d2a6168b0a2227b1
SUCCESS checkout https://github.com/ishkawa/APIKit.git at 5.4.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": "apikit",
      "name": "APIKit",
      "url": "https://github.com/ishkawa/APIKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/APIKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ishkawa/APIKit.git
[1/5564] Fetching apikit
Fetched https://github.com/ishkawa/APIKit.git from cache (1.16s)
Creating working copy for https://github.com/ishkawa/APIKit.git
Working copy of https://github.com/ishkawa/APIKit.git resolved at 5.4.0 (b839e53)
warning: '.resolve-product-dependencies': dependency 'apikit' 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/ishkawa/APIKit.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/25] Emitting module APIKit
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift:5:10: warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 3 | enum InputStreamError: Error {
 4 |     case invalidDataCapacity(Int)
 5 |     case unreadableStream(InputStream)
   |          `- warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 6 | }
 7 |
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
 1 | open class InputStream : Stream {
   |            `- note: class 'InputStream' does not conform to the 'Sendable' protocol
 2 |     open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
 3 |     open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:63:18: warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 61 |     struct Part {
 62 |         public enum Error: Swift.Error {
 63 |             case illegalValue(Any)
    |                  `- warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 64 |             case illegalFileURL(URL)
 65 |             case cannotGetFileSize(URL)
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Combine/Combine.swift:31:49: warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 |
 6 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 7 | public struct SessionTaskPublisher<Request: APIKit.Request>: Publisher {
   |                                    `- note: 'Request' previously declared here
 8 |     /// The kind of values published by this publisher.
 9 |     public typealias Output = Request.Response
   :
29 |     }
30 |
31 |     private final class SessionTaskSubscription<Request: APIKit.Request, Downstream: Subscriber>: Subscription where Request.Response == Downstream.Input, Downstream.Failure == Failure {
   |                                                 `- warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
32 |
33 |         private let request: Request
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Error/ResponseError.swift:14:10: warning: associated value 'unexpectedObject' of 'Sendable'-conforming enum 'ResponseError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 |
13 |     /// Indicates `Any` that represents the response is unexpected.
14 |     case unexpectedObject(Any)
   |          `- warning: associated value 'unexpectedObject' of 'Sendable'-conforming enum 'ResponseError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Serializations/URLEncodedSerialization.swift:50:14: warning: associated value 'cannotCastObjectToDictionary' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 48 |         case cannotGetStringFromData(Data, String.Encoding)
 49 |         case cannotGetDataFromString(String, String.Encoding)
 50 |         case cannotCastObjectToDictionary(Any)
    |              `- warning: associated value 'cannotCastObjectToDictionary' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 51 |         case invalidFormatString(String)
 52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Session.swift:3:13: warning: var 'taskRequestKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | private var taskRequestKey = 0
    |             |- warning: var 'taskRequestKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'taskRequestKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'taskRequestKey' 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
  4 |
  5 | /// `Session` manages tasks for HTTP/HTTPS requests.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Session.swift:22:24: warning: static property 'privateShared' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// `Session` manages tasks for HTTP/HTTPS requests.
  6 | open class Session {
    |            `- note: class 'Session' does not conform to the 'Sendable' protocol
  7 |     /// The adapter that connects `Session` instance and lower level backend.
  8 |     public let adapter: SessionAdapter
    :
 20 |
 21 |     // Shared session for class methods
 22 |     private static let privateShared: Session = {
    |                        |- warning: static property 'privateShared' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'privateShared' 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
 23 |         let configuration = URLSessionConfiguration.default
 24 |         let adapter = URLSessionAdapter(configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:7:13: warning: var 'dataTaskResponseBufferKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | private var dataTaskResponseBufferKey = 0
   |             |- warning: var 'dataTaskResponseBufferKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dataTaskResponseBufferKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'dataTaskResponseBufferKey' 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
 8 | private var taskAssociatedObjectCompletionHandlerKey = 0
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:8:13: warning: var 'taskAssociatedObjectCompletionHandlerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | private var dataTaskResponseBufferKey = 0
 8 | private var taskAssociatedObjectCompletionHandlerKey = 0
   |             |- warning: var 'taskAssociatedObjectCompletionHandlerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'taskAssociatedObjectCompletionHandlerKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'taskAssociatedObjectCompletionHandlerKey' 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
 9 |
10 | /// `URLSessionAdapter` connects `URLSession` with `Session`.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:12: warning: non-final class 'URLSessionAdapter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
   |            `- warning: non-final class 'URLSessionAdapter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:14: warning: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionAdapter' is mutable; this is an error in the Swift 6 language mode
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
   |              `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionAdapter' is mutable; this is an error in the Swift 6 language mode
20 |
21 |     /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
[4/27] Compiling APIKit DataParser.swift
[5/27] Compiling APIKit FormURLEncodedDataParser.swift
[6/27] Compiling APIKit JSONDataParser.swift
[7/27] Compiling APIKit URLSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:7:13: warning: var 'dataTaskResponseBufferKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | private var dataTaskResponseBufferKey = 0
   |             |- warning: var 'dataTaskResponseBufferKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dataTaskResponseBufferKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'dataTaskResponseBufferKey' 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
 8 | private var taskAssociatedObjectCompletionHandlerKey = 0
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:8:13: warning: var 'taskAssociatedObjectCompletionHandlerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | private var dataTaskResponseBufferKey = 0
 8 | private var taskAssociatedObjectCompletionHandlerKey = 0
   |             |- warning: var 'taskAssociatedObjectCompletionHandlerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'taskAssociatedObjectCompletionHandlerKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'taskAssociatedObjectCompletionHandlerKey' 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
 9 |
10 | /// `URLSessionAdapter` connects `URLSession` with `Session`.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:12: warning: non-final class 'URLSessionAdapter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
   |            `- warning: non-final class 'URLSessionAdapter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:14: warning: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionAdapter' is mutable; this is an error in the Swift 6 language mode
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
   |              `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionAdapter' is mutable; this is an error in the Swift 6 language mode
20 |
21 |     /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:41:13: warning: capture of 'handler' with non-sendable type '([any SessionTask]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |         urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
40 |             let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 |             handler(allTasks)
   |             |- warning: capture of 'handler' with non-sendable type '([any SessionTask]) -> Void' 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'
42 |         }
43 |     }
[8/27] Compiling APIKit Unavailable.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:7:13: warning: var 'dataTaskResponseBufferKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | private var dataTaskResponseBufferKey = 0
   |             |- warning: var 'dataTaskResponseBufferKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dataTaskResponseBufferKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'dataTaskResponseBufferKey' 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
 8 | private var taskAssociatedObjectCompletionHandlerKey = 0
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:8:13: warning: var 'taskAssociatedObjectCompletionHandlerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | private var dataTaskResponseBufferKey = 0
 8 | private var taskAssociatedObjectCompletionHandlerKey = 0
   |             |- warning: var 'taskAssociatedObjectCompletionHandlerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'taskAssociatedObjectCompletionHandlerKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'taskAssociatedObjectCompletionHandlerKey' 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
 9 |
10 | /// `URLSessionAdapter` connects `URLSession` with `Session`.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:12: warning: non-final class 'URLSessionAdapter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
   |            `- warning: non-final class 'URLSessionAdapter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:14: warning: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionAdapter' is mutable; this is an error in the Swift 6 language mode
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
   |              `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionAdapter' is mutable; this is an error in the Swift 6 language mode
20 |
21 |     /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:41:13: warning: capture of 'handler' with non-sendable type '([any SessionTask]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |         urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
40 |             let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 |             handler(allTasks)
   |             |- warning: capture of 'handler' with non-sendable type '([any SessionTask]) -> Void' 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'
42 |         }
43 |     }
[9/27] Compiling APIKit Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Session.swift:3:13: warning: var 'taskRequestKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | private var taskRequestKey = 0
    |             |- warning: var 'taskRequestKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'taskRequestKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'taskRequestKey' 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
  4 |
  5 | /// `Session` manages tasks for HTTP/HTTPS requests.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Session.swift:22:24: warning: static property 'privateShared' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// `Session` manages tasks for HTTP/HTTPS requests.
  6 | open class Session {
    |            `- note: class 'Session' does not conform to the 'Sendable' protocol
  7 |     /// The adapter that connects `Session` instance and lower level backend.
  8 |     public let adapter: SessionAdapter
    :
 20 |
 21 |     // Shared session for class methods
 22 |     private static let privateShared: Session = {
    |                        |- warning: static property 'privateShared' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'privateShared' 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
 23 |         let configuration = URLSessionConfiguration.default
 24 |         let adapter = URLSessionAdapter(configuration: configuration)
[10/27] Compiling APIKit SessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Session.swift:3:13: warning: var 'taskRequestKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | private var taskRequestKey = 0
    |             |- warning: var 'taskRequestKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'taskRequestKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'taskRequestKey' 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
  4 |
  5 | /// `Session` manages tasks for HTTP/HTTPS requests.
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Session.swift:22:24: warning: static property 'privateShared' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// `Session` manages tasks for HTTP/HTTPS requests.
  6 | open class Session {
    |            `- note: class 'Session' does not conform to the 'Sendable' protocol
  7 |     /// The adapter that connects `Session` instance and lower level backend.
  8 |     public let adapter: SessionAdapter
    :
 20 |
 21 |     // Shared session for class methods
 22 |     private static let privateShared: Session = {
    |                        |- warning: static property 'privateShared' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'privateShared' 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
 23 |         let configuration = URLSessionConfiguration.default
 24 |         let adapter = URLSessionAdapter(configuration: configuration)
[11/27] Compiling APIKit ProtobufDataParser.swift
[12/27] Compiling APIKit StringDataParser.swift
[13/27] Compiling APIKit Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Serializations/URLEncodedSerialization.swift:50:14: warning: associated value 'cannotCastObjectToDictionary' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 48 |         case cannotGetStringFromData(Data, String.Encoding)
 49 |         case cannotGetDataFromString(String, String.Encoding)
 50 |         case cannotCastObjectToDictionary(Any)
    |              `- warning: associated value 'cannotCastObjectToDictionary' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 51 |         case invalidFormatString(String)
 52 |     }
[14/27] Compiling APIKit URLEncodedSerialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Serializations/URLEncodedSerialization.swift:50:14: warning: associated value 'cannotCastObjectToDictionary' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 48 |         case cannotGetStringFromData(Data, String.Encoding)
 49 |         case cannotGetDataFromString(String, String.Encoding)
 50 |         case cannotCastObjectToDictionary(Any)
    |              `- warning: associated value 'cannotCastObjectToDictionary' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 51 |         case invalidFormatString(String)
 52 |     }
[15/27] Compiling APIKit RequestError.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Error/ResponseError.swift:14:10: warning: associated value 'unexpectedObject' of 'Sendable'-conforming enum 'ResponseError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 |
13 |     /// Indicates `Any` that represents the response is unexpected.
14 |     case unexpectedObject(Any)
   |          `- warning: associated value 'unexpectedObject' of 'Sendable'-conforming enum 'ResponseError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
15 | }
16 |
[16/27] Compiling APIKit ResponseError.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Error/ResponseError.swift:14:10: warning: associated value 'unexpectedObject' of 'Sendable'-conforming enum 'ResponseError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 |
13 |     /// Indicates `Any` that represents the response is unexpected.
14 |     case unexpectedObject(Any)
   |          `- warning: associated value 'unexpectedObject' of 'Sendable'-conforming enum 'ResponseError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
15 | }
16 |
[17/27] Compiling APIKit SessionTaskError.swift
[18/27] Compiling APIKit HTTPMethod.swift
[19/27] Compiling APIKit JSONBodyParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:63:18: warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 61 |     struct Part {
 62 |         public enum Error: Swift.Error {
 63 |             case illegalValue(Any)
    |                  `- warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 64 |             case illegalFileURL(URL)
 65 |             case cannotGetFileSize(URL)
[20/27] Compiling APIKit MultipartFormDataBodyParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:63:18: warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 61 |     struct Part {
 62 |         public enum Error: Swift.Error {
 63 |             case illegalValue(Any)
    |                  `- warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 64 |             case illegalFileURL(URL)
 65 |             case cannotGetFileSize(URL)
[21/27] Compiling APIKit ProtobufBodyParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:63:18: warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 61 |     struct Part {
 62 |         public enum Error: Swift.Error {
 63 |             case illegalValue(Any)
    |                  `- warning: associated value 'illegalValue' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 64 |             case illegalFileURL(URL)
 65 |             case cannotGetFileSize(URL)
[22/27] Compiling APIKit BodyParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift:5:10: warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 3 | enum InputStreamError: Error {
 4 |     case invalidDataCapacity(Int)
 5 |     case unreadableStream(InputStream)
   |          `- warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 6 | }
 7 |
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
 1 | open class InputStream : Stream {
   |            `- note: class 'InputStream' does not conform to the 'Sendable' protocol
 2 |     open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
 3 |     open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
[23/27] Compiling APIKit Data+InputStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift:5:10: warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 3 | enum InputStreamError: Error {
 4 |     case invalidDataCapacity(Int)
 5 |     case unreadableStream(InputStream)
   |          `- warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 6 | }
 7 |
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
 1 | open class InputStream : Stream {
   |            `- note: class 'InputStream' does not conform to the 'Sendable' protocol
 2 |     open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
 3 |     open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
[24/27] Compiling APIKit FormURLEncodedBodyParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift:5:10: warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 3 | enum InputStreamError: Error {
 4 |     case invalidDataCapacity(Int)
 5 |     case unreadableStream(InputStream)
   |          `- warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-sendable type 'InputStream'; this is an error in the Swift 6 language mode
 6 | }
 7 |
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
 1 | open class InputStream : Stream {
   |            `- note: class 'InputStream' does not conform to the 'Sendable' protocol
 2 |     open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
 3 |     open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
[25/27] Compiling APIKit CallbackQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:21:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |         case .main:
20 |             DispatchQueue.main.async {
21 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
22 |             }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:29:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         case .operationQueue(let operationQueue):
28 |             operationQueue.addOperation {
29 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
30 |             }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:34:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |         case .dispatchQueue(let dispatchQueue):
33 |             dispatchQueue.async {
34 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
35 |             }
36 |         }
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Combine/Combine.swift:31:49: warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 |
 6 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 7 | public struct SessionTaskPublisher<Request: APIKit.Request>: Publisher {
   |                                    `- note: 'Request' previously declared here
 8 |     /// The kind of values published by this publisher.
 9 |     public typealias Output = Request.Response
   :
29 |     }
30 |
31 |     private final class SessionTaskSubscription<Request: APIKit.Request, Downstream: Subscriber>: Subscription where Request.Response == Downstream.Input, Downstream.Failure == Failure {
   |                                                 `- warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
32 |
33 |         private let request: Request
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:21:17: warning: sending 'closure' risks causing data races; this is an error in the Swift 6 language mode
19 |         case .main:
20 |             DispatchQueue.main.async {
21 |                 closure()
   |                 |- warning: sending 'closure' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'closure' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 |             }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:25:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
23 |         return try await withTaskCancellationHandler(operation: {
24 |             return try await withCheckedThrowingContinuation { continuation in
25 |                 Task {
   |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
26 |                     let sessionTask = createSessionTask(request, callbackQueue: callbackQueue) { result in
   |                                                                                 `- note: closure captures 'callbackQueue' which is accessible to code in the current task
27 |                         continuation.resume(with: result)
28 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:29:47: warning: sending 'sessionTask' risks causing data races; this is an error in the Swift 6 language mode
27 |                         continuation.resume(with: result)
28 |                     }
29 |                     await cancellationHandler.register(with: sessionTask)
   |                                               |- warning: sending 'sessionTask' risks causing data races; this is an error in the Swift 6 language mode
   |                                               `- note: sending task-isolated 'sessionTask' to actor-isolated instance method 'register(with:)' risks causing data races between actor-isolated and task-isolated uses
30 |                     if await cancellationHandler.isTaskCancelled {
31 |                         sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:27:38: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
25 |                 Task {
26 |                     let sessionTask = createSessionTask(request, callbackQueue: callbackQueue) { result in
27 |                         continuation.resume(with: result)
   |                                      |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                                      `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
28 |                     }
29 |                     await cancellationHandler.register(with: sessionTask)
[26/27] Compiling APIKit Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:21:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |         case .main:
20 |             DispatchQueue.main.async {
21 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
22 |             }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:29:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         case .operationQueue(let operationQueue):
28 |             operationQueue.addOperation {
29 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
30 |             }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:34:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |         case .dispatchQueue(let dispatchQueue):
33 |             dispatchQueue.async {
34 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
35 |             }
36 |         }
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Combine/Combine.swift:31:49: warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 |
 6 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 7 | public struct SessionTaskPublisher<Request: APIKit.Request>: Publisher {
   |                                    `- note: 'Request' previously declared here
 8 |     /// The kind of values published by this publisher.
 9 |     public typealias Output = Request.Response
   :
29 |     }
30 |
31 |     private final class SessionTaskSubscription<Request: APIKit.Request, Downstream: Subscriber>: Subscription where Request.Response == Downstream.Input, Downstream.Failure == Failure {
   |                                                 `- warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
32 |
33 |         private let request: Request
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:21:17: warning: sending 'closure' risks causing data races; this is an error in the Swift 6 language mode
19 |         case .main:
20 |             DispatchQueue.main.async {
21 |                 closure()
   |                 |- warning: sending 'closure' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'closure' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 |             }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:25:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
23 |         return try await withTaskCancellationHandler(operation: {
24 |             return try await withCheckedThrowingContinuation { continuation in
25 |                 Task {
   |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
26 |                     let sessionTask = createSessionTask(request, callbackQueue: callbackQueue) { result in
   |                                                                                 `- note: closure captures 'callbackQueue' which is accessible to code in the current task
27 |                         continuation.resume(with: result)
28 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:29:47: warning: sending 'sessionTask' risks causing data races; this is an error in the Swift 6 language mode
27 |                         continuation.resume(with: result)
28 |                     }
29 |                     await cancellationHandler.register(with: sessionTask)
   |                                               |- warning: sending 'sessionTask' risks causing data races; this is an error in the Swift 6 language mode
   |                                               `- note: sending task-isolated 'sessionTask' to actor-isolated instance method 'register(with:)' risks causing data races between actor-isolated and task-isolated uses
30 |                     if await cancellationHandler.isTaskCancelled {
31 |                         sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:27:38: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
25 |                 Task {
26 |                     let sessionTask = createSessionTask(request, callbackQueue: callbackQueue) { result in
27 |                         continuation.resume(with: result)
   |                                      |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                                      `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
28 |                     }
29 |                     await cancellationHandler.register(with: sessionTask)
[27/27] Compiling APIKit Concurrency.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:21:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |         case .main:
20 |             DispatchQueue.main.async {
21 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
22 |             }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:29:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         case .operationQueue(let operationQueue):
28 |             operationQueue.addOperation {
29 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
30 |             }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:34:17: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |         case .dispatchQueue(let dispatchQueue):
33 |             dispatchQueue.async {
34 |                 closure()
   |                 |- warning: capture of 'closure' with non-sendable type '() -> Void' 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'
35 |             }
36 |         }
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Combine/Combine.swift:31:49: warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 |
 6 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 7 | public struct SessionTaskPublisher<Request: APIKit.Request>: Publisher {
   |                                    `- note: 'Request' previously declared here
 8 |     /// The kind of values published by this publisher.
 9 |     public typealias Output = Request.Response
   :
29 |     }
30 |
31 |     private final class SessionTaskSubscription<Request: APIKit.Request, Downstream: Subscriber>: Subscription where Request.Response == Downstream.Input, Downstream.Failure == Failure {
   |                                                 `- warning: generic parameter 'Request' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
32 |
33 |         private let request: Request
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:21:17: warning: sending 'closure' risks causing data races; this is an error in the Swift 6 language mode
19 |         case .main:
20 |             DispatchQueue.main.async {
21 |                 closure()
   |                 |- warning: sending 'closure' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'closure' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 |             }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:25:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
23 |         return try await withTaskCancellationHandler(operation: {
24 |             return try await withCheckedThrowingContinuation { continuation in
25 |                 Task {
   |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
26 |                     let sessionTask = createSessionTask(request, callbackQueue: callbackQueue) { result in
   |                                                                                 `- note: closure captures 'callbackQueue' which is accessible to code in the current task
27 |                         continuation.resume(with: result)
28 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:29:47: warning: sending 'sessionTask' risks causing data races; this is an error in the Swift 6 language mode
27 |                         continuation.resume(with: result)
28 |                     }
29 |                     await cancellationHandler.register(with: sessionTask)
   |                                               |- warning: sending 'sessionTask' risks causing data races; this is an error in the Swift 6 language mode
   |                                               `- note: sending task-isolated 'sessionTask' to actor-isolated instance method 'register(with:)' risks causing data races between actor-isolated and task-isolated uses
30 |                     if await cancellationHandler.isTaskCancelled {
31 |                         sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift:27:38: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
25 |                 Task {
26 |                     let sessionTask = createSessionTask(request, callbackQueue: callbackQueue) { result in
27 |                         continuation.resume(with: result)
   |                                      |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                                      `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
28 |                     }
29 |                     await cancellationHandler.register(with: sessionTask)
Build complete! (17.97s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/APIKit/Info.plist
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "APIKit",
  "name" : "APIKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "APIKit",
      "targets" : [
        "APIKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "APIKitTests",
      "module_type" : "SwiftTarget",
      "name" : "APIKitTests",
      "path" : "Tests/APIKitTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/APIKitTests/Resources/test.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "BodyParametersType/FormURLEncodedBodyParametersTests.swift",
        "BodyParametersType/JSONBodyParametersTests.swift",
        "BodyParametersType/MultipartFormDataParametersTests.swift",
        "BodyParametersType/ProtobufBodyParametersTests.swift",
        "BodyParametersType/URLEncodedSerializationTests.swift",
        "Combine/CombineTests.swift",
        "Concurrency/ConcurrencyTests.swift",
        "DataParserType/FormURLEncodedDataParserTests.swift",
        "DataParserType/JSONDataParserTests.swift",
        "DataParserType/ProtobufDataParserTests.swift",
        "DataParserType/StringDataParserTests.swift",
        "RequestTests.swift",
        "SessionAdapterType/URLSessionAdapterSubclassTests.swift",
        "SessionAdapterType/URLSessionAdapterTests.swift",
        "SessionCallbackQueueTests.swift",
        "SessionTests.swift",
        "TestComponents/HTTPStub.swift",
        "TestComponents/TestRequest.swift",
        "TestComponents/TestSessionAdapter.swift",
        "TestComponents/TestSessionTask.swift"
      ],
      "target_dependencies" : [
        "APIKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "APIKit",
      "module_type" : "SwiftTarget",
      "name" : "APIKit",
      "path" : "Sources/APIKit",
      "product_memberships" : [
        "APIKit"
      ],
      "sources" : [
        "BodyParameters/BodyParameters.swift",
        "BodyParameters/Data+InputStream.swift",
        "BodyParameters/FormURLEncodedBodyParameters.swift",
        "BodyParameters/JSONBodyParameters.swift",
        "BodyParameters/MultipartFormDataBodyParameters.swift",
        "BodyParameters/ProtobufBodyParameters.swift",
        "CallbackQueue.swift",
        "Combine/Combine.swift",
        "Concurrency/Concurrency.swift",
        "DataParser/DataParser.swift",
        "DataParser/FormURLEncodedDataParser.swift",
        "DataParser/JSONDataParser.swift",
        "DataParser/ProtobufDataParser.swift",
        "DataParser/StringDataParser.swift",
        "Error/RequestError.swift",
        "Error/ResponseError.swift",
        "Error/SessionTaskError.swift",
        "HTTPMethod.swift",
        "Request.swift",
        "Serializations/URLEncodedSerialization.swift",
        "Session.swift",
        "SessionAdapter/SessionAdapter.swift",
        "SessionAdapter/URLSessionAdapter.swift",
        "Unavailable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.