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 MultipeerKit, reference 0.4.0 (ee013f), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 23:52:20 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/insidegui/MultipeerKit.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/insidegui/MultipeerKit
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at ee013fd Merge pull request #15 from insidegui/connection-callbacks
Cloned https://github.com/insidegui/MultipeerKit.git
Revision (git rev-parse @):
ee013fd04f20166ea40ff456a67058c040289c1c
SUCCESS checkout https://github.com/insidegui/MultipeerKit.git at 0.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": "multipeerkit",
      "name": "MultipeerKit",
      "url": "https://github.com/insidegui/MultipeerKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MultipeerKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/insidegui/MultipeerKit.git
[1/914] Fetching multipeerkit
Fetched https://github.com/insidegui/MultipeerKit.git from cache (1.01s)
Creating working copy for https://github.com/insidegui/MultipeerKit.git
Working copy of https://github.com/insidegui/MultipeerKit.git resolved at 0.4.0 (ee013fd)
warning: '.resolve-product-dependencies': dependency 'multipeerkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/insidegui/MultipeerKit.git
https://github.com/insidegui/MultipeerKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MultipeerKit",
  "name" : "MultipeerKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "MultipeerKit",
      "targets" : [
        "MultipeerKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MultipeerKitDynamic",
      "targets" : [
        "MultipeerKit"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MultipeerKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MultipeerKitTests",
      "path" : "Tests/MultipeerKitTests",
      "sources" : [
        "MultipeerKitTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "MultipeerKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MultipeerKit",
      "module_type" : "SwiftTarget",
      "name" : "MultipeerKit",
      "path" : "Sources/MultipeerKit",
      "product_memberships" : [
        "MultipeerKit",
        "MultipeerKitDynamic"
      ],
      "sources" : [
        "Internal API/Extensions/MCPeerID+Me.swift",
        "Internal API/MockMultipeerConnection.swift",
        "Internal API/Models/MultipeerMessage.swift",
        "Internal API/MultipeerConnection.swift",
        "Internal API/MultipeerKit.swift",
        "Internal API/MultipeerProtocol.swift",
        "Public API/Models/Peer.swift",
        "Public API/MultipeerConfiguration.swift",
        "Public API/MultipeerDataSource.swift",
        "Public API/MultipeerTransceiver.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-2F0A5646E1D333AE.txt
[3/14] Compiling MultipeerKit MultipeerConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerConfiguration.swift:58:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration.Security' may have shared mutable state; this is an error in the Swift 6 language mode
 19 |
 20 |     /// Configures security-related aspects of the multipeer connection.
 21 |     public struct Security {
    |                   `- note: consider making struct 'Security' conform to the 'Sendable' protocol
 22 |
 23 |         public typealias InvitationHandler = (Peer, Data?, @escaping (Bool) -> Void) -> Void
    :
 56 |
 57 |         /// The default security configuration, which has no identity, uses no encryption and accepts all invitations.
 58 |         public static let `default` = Security(identity: nil, encryptionPreference: .none, invitationHandler: { _, _, closure in
    |                           |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration.Security' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |             closure(true)
 60 |         })
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerConfiguration.swift:114:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Configures several aspects of the multipeer communication.
  5 | public struct MultipeerConfiguration {
    |               `- note: consider making struct 'MultipeerConfiguration' conform to the 'Sendable' protocol
  6 |
  7 |     /// Defines how the multipeer connection handles newly discovered peers.
    :
112 |     /// The default configuration, uses the service type `MKSVC`, the name of the device/computer as the
113 |     /// display name, `UserDefaults.standard`, the default security configuration and automatic invitation.
114 |     public static let `default` = MultipeerConfiguration(
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |         serviceType: "MKSVC",
116 |         peerName: MCPeerID.defaultDisplayName,
[4/15] Compiling MultipeerKit MultipeerConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/MultipeerConnection.swift:140:17: warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
138 |             switch state {
139 |             case .connected:
140 |                 handler?(.success(peer))
    |                 |- warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'handler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
141 |                 self.invitationCompletionHandlers[peerID] = nil
142 |                 self.didConnectToPeer?(peer)
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/MultipeerConnection.swift:140:35: warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
138 |             switch state {
139 |             case .connected:
140 |                 handler?(.success(peer))
    |                                   |- warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: task-isolated 'peer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
141 |                 self.invitationCompletionHandlers[peerID] = nil
142 |                 self.didConnectToPeer?(peer)
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/MultipeerConnection.swift:141:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
139 |             case .connected:
140 |                 handler?(.success(peer))
141 |                 self.invitationCompletionHandlers[peerID] = nil
    |                 |- 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
142 |                 self.didConnectToPeer?(peer)
143 |             case .notConnected:
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/MultipeerConnection.swift:141:51: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
139 |             case .connected:
140 |                 handler?(.success(peer))
141 |                 self.invitationCompletionHandlers[peerID] = nil
    |                                                   |- warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
    |                                                   `- note: task-isolated 'peerID' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
142 |                 self.didConnectToPeer?(peer)
143 |             case .notConnected:
[5/15] Compiling MultipeerKit MultipeerProtocol.swift
[6/15] Compiling MultipeerKit MultipeerMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/Models/MultipeerMessage.swift:48:24: warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     private typealias MessageEncoder = (Any, inout KeyedEncodingContainer<CodingKeys>) throws -> Void
 47 |
 48 |     private static var decoders: [String: MessageDecoder] = [:]
    |                        |- warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'decoders' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'decoders' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     private static var encoders: [String: MessageEncoder] = [:]
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/Models/MultipeerMessage.swift:49:24: warning: static property 'encoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 47 |
 48 |     private static var decoders: [String: MessageDecoder] = [:]
 49 |     private static var encoders: [String: MessageEncoder] = [:]
    |                        |- warning: static property 'encoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'encoders' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'encoders' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 50 |
 51 |     static func register<T: Codable>(_ type: T.Type, for typeName: String, closure: @escaping (T, Peer) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/Models/MultipeerMessage.swift:55:40: warning: sending 'closure' risks causing data races; this is an error in the Swift 6 language mode
 53 |             let payload = try container.decode(T.self, forKey: .payload)
 54 |
 55 |             DispatchQueue.main.async { closure(payload, peer) }
    |                                        |- 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
 56 |
 57 |             return payload
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/Models/MultipeerMessage.swift:55:48: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
 53 |             let payload = try container.decode(T.self, forKey: .payload)
 54 |
 55 |             DispatchQueue.main.async { closure(payload, peer) }
    |                                                |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'payload' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 56 |
 57 |             return payload
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/Models/MultipeerMessage.swift:55:57: warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
 53 |             let payload = try container.decode(T.self, forKey: .payload)
 54 |
 55 |             DispatchQueue.main.async { closure(payload, peer) }
    |                                                         |- warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                         `- note: task-isolated 'peer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 56 |
 57 |             return payload
[7/15] Compiling MultipeerKit MockMultipeerConnection.swift
[8/15] Compiling MultipeerKit MCPeerID+Me.swift
[9/15] Compiling MultipeerKit MultipeerKit.swift
[10/15] Emitting module MultipeerKit
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/Models/MultipeerMessage.swift:48:24: warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     private typealias MessageEncoder = (Any, inout KeyedEncodingContainer<CodingKeys>) throws -> Void
 47 |
 48 |     private static var decoders: [String: MessageDecoder] = [:]
    |                        |- warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'decoders' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'decoders' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     private static var encoders: [String: MessageEncoder] = [:]
 50 |
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Internal API/Models/MultipeerMessage.swift:49:24: warning: static property 'encoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 47 |
 48 |     private static var decoders: [String: MessageDecoder] = [:]
 49 |     private static var encoders: [String: MessageEncoder] = [:]
    |                        |- warning: static property 'encoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'encoders' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'encoders' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 50 |
 51 |     static func register<T: Codable>(_ type: T.Type, for typeName: String, closure: @escaping (T, Peer) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerConfiguration.swift:58:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration.Security' may have shared mutable state; this is an error in the Swift 6 language mode
 19 |
 20 |     /// Configures security-related aspects of the multipeer connection.
 21 |     public struct Security {
    |                   `- note: consider making struct 'Security' conform to the 'Sendable' protocol
 22 |
 23 |         public typealias InvitationHandler = (Peer, Data?, @escaping (Bool) -> Void) -> Void
    :
 56 |
 57 |         /// The default security configuration, which has no identity, uses no encryption and accepts all invitations.
 58 |         public static let `default` = Security(identity: nil, encryptionPreference: .none, invitationHandler: { _, _, closure in
    |                           |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration.Security' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |             closure(true)
 60 |         })
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerConfiguration.swift:114:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Configures several aspects of the multipeer communication.
  5 | public struct MultipeerConfiguration {
    |               `- note: consider making struct 'MultipeerConfiguration' conform to the 'Sendable' protocol
  6 |
  7 |     /// Defines how the multipeer connection handles newly discovered peers.
    :
112 |     /// The default configuration, uses the service type `MKSVC`, the name of the device/computer as the
113 |     /// display name, `UserDefaults.standard`, the default security configuration and automatic invitation.
114 |     public static let `default` = MultipeerConfiguration(
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MultipeerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |         serviceType: "MKSVC",
116 |         peerName: MCPeerID.defaultDisplayName,
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:38:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 36 |
 37 |             DispatchQueue.main.async {
 38 |                 self.availablePeersDidChange(self.availablePeers)
    |                 |- 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
 39 |             }
 40 |         }
[11/15] Compiling MultipeerKit Peer.swift
[12/15] Compiling MultipeerKit MultipeerDataSource.swift
[13/15] Compiling MultipeerKit MultipeerTransceiver.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:142:68: warning: type 'Peer' does not conform to the 'Sendable' protocol
140 |         do {
141 |             let decoder = JSONDecoder()
142 |             decoder.userInfo[MultipeerMessage.senderUserInfoKey] = peer
    |                                                                    `- warning: type 'Peer' does not conform to the 'Sendable' protocol
143 |             let message = try decoder.decode(MultipeerMessage.self, from: data)
144 |
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/Models/Peer.swift:6:15: note: consider making struct 'Peer' conform to the 'Sendable' protocol
 4 |
 5 | /// Represents a remote peer.
 6 | public struct Peer: Hashable, Identifiable {
   |               `- note: consider making struct 'Peer' conform to the 'Sendable' protocol
 7 |
 8 |     let underlyingPeer: MCPeerID
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:38:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 36 |
 37 |             DispatchQueue.main.async {
 38 |                 self.availablePeersDidChange(self.availablePeers)
    |                 |- 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
 39 |             }
 40 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:65:40: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 63 |         }
 64 |         connection.didFindPeer = { [weak self] peer in
 65 |             DispatchQueue.main.async { self?.handlePeerAdded(peer) }
    |                                        |- 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
 66 |         }
 67 |         connection.didLosePeer = { [weak self] peer in
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:65:62: warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
 63 |         }
 64 |         connection.didFindPeer = { [weak self] peer in
 65 |             DispatchQueue.main.async { self?.handlePeerAdded(peer) }
    |                                                              |- warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: task-isolated 'peer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 66 |         }
 67 |         connection.didLosePeer = { [weak self] peer in
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:68:40: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 66 |         }
 67 |         connection.didLosePeer = { [weak self] peer in
 68 |             DispatchQueue.main.async { self?.handlePeerRemoved(peer) }
    |                                        |- 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
 69 |         }
 70 |         connection.didConnectToPeer = { [weak self] peer in
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:68:64: warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
 66 |         }
 67 |         connection.didLosePeer = { [weak self] peer in
 68 |             DispatchQueue.main.async { self?.handlePeerRemoved(peer) }
    |                                                                |- warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                `- note: task-isolated 'peer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 69 |         }
 70 |         connection.didConnectToPeer = { [weak self] peer in
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:71:40: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 69 |         }
 70 |         connection.didConnectToPeer = { [weak self] peer in
 71 |             DispatchQueue.main.async { self?.handlePeerConnected(peer) }
    |                                        |- 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
 72 |         }
 73 |         connection.didDisconnectFromPeer = { [weak self] peer in
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:71:66: warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
 69 |         }
 70 |         connection.didConnectToPeer = { [weak self] peer in
 71 |             DispatchQueue.main.async { self?.handlePeerConnected(peer) }
    |                                                                  |- warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                  `- note: task-isolated 'peer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 72 |         }
 73 |         connection.didDisconnectFromPeer = { [weak self] peer in
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:74:40: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 72 |         }
 73 |         connection.didDisconnectFromPeer = { [weak self] peer in
 74 |             DispatchQueue.main.async { self?.handlePeerDisconnected(peer) }
    |                                        |- 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
 75 |         }
 76 |     }
/Users/admin/builder/spi-builder-workspace/Sources/MultipeerKit/Public API/MultipeerTransceiver.swift:74:69: warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
 72 |         }
 73 |         connection.didDisconnectFromPeer = { [weak self] peer in
 74 |             DispatchQueue.main.async { self?.handlePeerDisconnected(peer) }
    |                                                                     |- warning: sending 'peer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                     `- note: task-isolated 'peer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |         }
 76 |     }
[13/15] Write Objects.LinkFileList
[14/15] Linking libMultipeerKitDynamic.dylib
Build complete! (8.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MultipeerKit",
  "name" : "MultipeerKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "MultipeerKit",
      "targets" : [
        "MultipeerKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MultipeerKitDynamic",
      "targets" : [
        "MultipeerKit"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MultipeerKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MultipeerKitTests",
      "path" : "Tests/MultipeerKitTests",
      "sources" : [
        "MultipeerKitTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "MultipeerKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MultipeerKit",
      "module_type" : "SwiftTarget",
      "name" : "MultipeerKit",
      "path" : "Sources/MultipeerKit",
      "product_memberships" : [
        "MultipeerKit",
        "MultipeerKitDynamic"
      ],
      "sources" : [
        "Internal API/Extensions/MCPeerID+Me.swift",
        "Internal API/MockMultipeerConnection.swift",
        "Internal API/Models/MultipeerMessage.swift",
        "Internal API/MultipeerConnection.swift",
        "Internal API/MultipeerKit.swift",
        "Internal API/MultipeerProtocol.swift",
        "Public API/Models/Peer.swift",
        "Public API/MultipeerConfiguration.swift",
        "Public API/MultipeerDataSource.swift",
        "Public API/MultipeerTransceiver.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.