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 KYNearbyService, reference 2.1.1 (5d7e49), with Swift 6.0 for macOS (SPM) on 4 Feb 2025 12:59:27 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kjuly/KYNearbyService.git
Reference: 2.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kjuly/KYNearbyService
 * tag               2.1.1      -> FETCH_HEAD
HEAD is now at 5d7e49d Update KYNearbyService.podspec: Set spec.version=2.1.1
Cloned https://github.com/Kjuly/KYNearbyService.git
Revision (git rev-parse @):
5d7e49da5b2f2d49b68c621c19301872fe4cde9d
SUCCESS checkout https://github.com/Kjuly/KYNearbyService.git at 2.1.1
Fetching https://github.com/Kjuly/KYLogger.git
[1/188] Fetching kylogger
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.87s)
Creating working copy for https://github.com/Kjuly/KYLogger.git
Working copy of https://github.com/Kjuly/KYLogger.git resolved at main (a7f01e7)
========================================
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": "kynearbyservice",
      "name": "KYNearbyService",
      "url": "https://github.com/Kjuly/KYNearbyService.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KYNearbyService",
      "dependencies": [
        {
          "identity": "kylogger",
          "name": "KYLogger",
          "url": "https://github.com/Kjuly/KYLogger.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KYLogger",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Kjuly/KYNearbyService.git
[5/247] Fetching kynearbyservice
Fetched https://github.com/Kjuly/KYNearbyService.git from cache (0.83s)
Fetching https://github.com/Kjuly/KYLogger.git from cache
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.48s)
Creating working copy for https://github.com/Kjuly/KYNearbyService.git
Working copy of https://github.com/Kjuly/KYNearbyService.git resolved at 2.1.1 (5d7e49d)
Creating working copy for https://github.com/Kjuly/KYLogger.git
Working copy of https://github.com/Kjuly/KYLogger.git resolved at main (a7f01e7)
warning: '.resolve-product-dependencies': dependency 'kynearbyservice' is not used by any target
Found 1 product dependencies
  - KYLogger
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Kjuly/KYNearbyService.git
https://github.com/Kjuly/KYNearbyService.git
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "kylogger",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kjuly/KYLogger.git"
    }
  ],
  "manifest_display_name" : "KYNearbyService",
  "name" : "KYNearbyService",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.5"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "KYNearbyService",
      "targets" : [
        "KYNearbyService"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KYNearbyServiceTests",
      "module_type" : "SwiftTarget",
      "name" : "KYNearbyServiceTests",
      "path" : "KYNearbyServiceTests",
      "sources" : [
        "KYNearbyService/KYNearbyServiceConfigurationTests.swift",
        "KYNearbyService/KYNearbyServiceConstantsTests.swift",
        "KYNearbyService/KYNearbyServiceConstants_ObjCTests.swift",
        "KYNearbyService/KYNearbyService_ReceivedFileTests.swift"
      ],
      "target_dependencies" : [
        "KYNearbyService"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KYNearbyService",
      "module_type" : "SwiftTarget",
      "name" : "KYNearbyService",
      "path" : "KYNearbyService/Sources",
      "product_dependencies" : [
        "KYLogger"
      ],
      "product_memberships" : [
        "KYNearbyService"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/Resources/en.lproj/KYNearbyServiceLocalizations.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/Resources/zh-Hans.lproj/KYNearbyServiceLocalizations.strings",
          "rule" : {
            "process" : {
              "localization" : "zh-hans"
            }
          }
        }
      ],
      "sources" : [
        "KYNearbyConnectionView/Extensions/Animation+KYNearbyConnectionView.swift",
        "KYNearbyConnectionView/Extensions/View+KYNearbyConnectionView.swift",
        "KYNearbyConnectionView/KYNearbyConnectionView.swift",
        "KYNearbyConnectionView/KYNearbyConnectionViewConstants.swift",
        "KYNearbyConnectionView/PeerCell/KYNearbyConnectionPeerCell+Actions.swift",
        "KYNearbyConnectionView/PeerCell/KYNearbyConnectionPeerCell.swift",
        "KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel+Event.swift",
        "KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel+Notification.swift",
        "KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel.swift",
        "KYNearbyConnectionView/ViewModel/Theme/KYNearbyConnectionViewTheme.swift",
        "KYNearbyService/Internal/KYNearbyService+Internal.swift",
        "KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift",
        "KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift",
        "KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift",
        "KYNearbyService/KYNearbyService+Connection.swift",
        "KYNearbyService/KYNearbyService+Debug.swift",
        "KYNearbyService/KYNearbyService+ErrorAlert.swift",
        "KYNearbyService/KYNearbyService+ReceivedFile.swift",
        "KYNearbyService/KYNearbyService+Sending.swift",
        "KYNearbyService/KYNearbyService+Visibility.swift",
        "KYNearbyService/KYNearbyService.swift",
        "KYNearbyService/KYNearbyServiceConfiguration.swift",
        "KYNearbyService/KYNearbyServiceConstants+ObjC.swift",
        "KYNearbyService/KYNearbyServiceConstants.swift",
        "KYNearbyService/Model/KYNearbyPeerModel+Debug.swift",
        "KYNearbyService/Model/KYNearbyPeerModel+ObjC.swift",
        "KYNearbyService/Model/KYNearbyPeerModel.swift",
        "Localizations/KYNearbyServiceLocalizations.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/7] Write sources
[0/7] Copying KYNearbyServiceLocalizations.strings
[0/7] Copying Info.plist
[1/7] Write sources
[4/7] Copying KYNearbyServiceLocalizations.strings
[5/7] Write swift-version-5BDAB9E9C0126B9D.txt
[6/16] Compiling KYLoggerObjC KYLoggerObjC.m
[8/16] Compiling KYLogger KYLogType.swift
[9/16] Compiling KYLogger KYLog.swift
[10/16] Compiling KYLogger KYFileLogger+LogDetails.swift
[11/16] Compiling KYLogger KYFileLoggerError.swift
[12/16] Compiling KYLogger KYFileLogger+Session.swift
[13/16] Compiling KYLogger KYFileLogger.swift
[14/16] Emitting module KYLogger
[15/16] Compiling KYLogger KYFileLogger+FolderNFile.swift
[16/16] Compiling KYLogger KYFileLoggerConfig.swift
[17/44] Compiling KYNearbyService KYNearbyConnectionViewModel+Event.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[18/44] Compiling KYNearbyService KYNearbyConnectionViewModel+Notification.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[19/44] Compiling KYNearbyService KYNearbyConnectionViewModel.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[20/46] Emitting module KYNearbyService
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 12 |
 13 | @objc
 14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
    |              `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// Peer ID of the user nearby.
    :
 50 |            let progressCounter: Int = Int(round(fractionCompleted * 100))
 51 |
 52 |            if self?.progressCounter != progressCounter {
    |               `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 53 |              DispatchQueue.main.async {
 54 |                self?.progressCounter = progressCounter
[21/46] Compiling KYNearbyService KYNearbyServiceLocalizations.swift
[22/46] Compiling KYNearbyService resource_bundle_accessor.swift
[23/46] Compiling KYNearbyService KYNearbyService+MCNearbyServiceBrowserDelegate.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:49: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
42 |
43 |       DispatchQueue.main.async {
44 |         let newItem = KYNearbyPeerModel(peerID: peerID, isVisibleToOthers: true, connectionStatus: newItemState)
   |                                                 |- 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
45 |         self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:45:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
43 |       DispatchQueue.main.async {
44 |         let newItem = KYNearbyPeerModel(peerID: peerID, isVisibleToOthers: true, connectionStatus: newItemState)
45 |         self.peers.append(newItem)
   |         |- 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
46 |
47 |         let userInfo: [String: Any] = [
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:72:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
70 |         lostItem.isVisibleToOthers = false
71 |       } else {
72 |         p_removePeerItem(lostItem)
   |         |- 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
73 |       }
74 |     }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:67:10: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
65 |     }
66 |
67 |     Task { @MainActor in
   |          `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
68 |       if lostItem.connectionStatus == .connected {
69 |         // Mark it as invisible to rm when disconnected it.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:24:9: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 22 |     if item.isVisibleToOthers {
 23 |       DispatchQueue.main.async {
 24 |         item.updateState(with: state)
    |         |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 25 |         NotificationCenter.default.post(name: .KYNearbyService.peerDidChangeState, object: item)
 26 |       }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:68:7: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 66 |
 67 |     DispatchQueue.main.async {
 68 |       item.startProcessing(forReceiving: true)
    |       |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |       `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 69 |
 70 |       progress.kind = .file
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:99:9: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 97 |     if let item = p_getItem(with: peerID) {
 98 |       DispatchQueue.main.async {
 99 |         item.doneProcessing(with: nil)
    |         |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
100 |       }
101 |       userInfo[KYNearbyServiceNotificationUserInfoKey.peerItem] = item
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
135 |     }
136 |     DispatchQueue.main.async {
137 |       NotificationCenter.default.post(name: .KYNearbyService.didReceiveResource, object: nil, userInfo: userInfo)
    |                                                                                                         |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                                                         `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |     }
139 |   }
[24/46] Compiling KYNearbyService KYNearbyService+MCSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:49: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
42 |
43 |       DispatchQueue.main.async {
44 |         let newItem = KYNearbyPeerModel(peerID: peerID, isVisibleToOthers: true, connectionStatus: newItemState)
   |                                                 |- 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
45 |         self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:45:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
43 |       DispatchQueue.main.async {
44 |         let newItem = KYNearbyPeerModel(peerID: peerID, isVisibleToOthers: true, connectionStatus: newItemState)
45 |         self.peers.append(newItem)
   |         |- 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
46 |
47 |         let userInfo: [String: Any] = [
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:72:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
70 |         lostItem.isVisibleToOthers = false
71 |       } else {
72 |         p_removePeerItem(lostItem)
   |         |- 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
73 |       }
74 |     }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:67:10: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
65 |     }
66 |
67 |     Task { @MainActor in
   |          `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
68 |       if lostItem.connectionStatus == .connected {
69 |         // Mark it as invisible to rm when disconnected it.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:24:9: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 22 |     if item.isVisibleToOthers {
 23 |       DispatchQueue.main.async {
 24 |         item.updateState(with: state)
    |         |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 25 |         NotificationCenter.default.post(name: .KYNearbyService.peerDidChangeState, object: item)
 26 |       }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:68:7: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 66 |
 67 |     DispatchQueue.main.async {
 68 |       item.startProcessing(forReceiving: true)
    |       |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |       `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 69 |
 70 |       progress.kind = .file
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:99:9: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 97 |     if let item = p_getItem(with: peerID) {
 98 |       DispatchQueue.main.async {
 99 |         item.doneProcessing(with: nil)
    |         |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
100 |       }
101 |       userInfo[KYNearbyServiceNotificationUserInfoKey.peerItem] = item
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
135 |     }
136 |     DispatchQueue.main.async {
137 |       NotificationCenter.default.post(name: .KYNearbyService.didReceiveResource, object: nil, userInfo: userInfo)
    |                                                                                                         |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                                                         `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |     }
139 |   }
[25/46] Compiling KYNearbyService KYNearbyService+Connection.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:49: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
42 |
43 |       DispatchQueue.main.async {
44 |         let newItem = KYNearbyPeerModel(peerID: peerID, isVisibleToOthers: true, connectionStatus: newItemState)
   |                                                 |- 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
45 |         self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:45:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
43 |       DispatchQueue.main.async {
44 |         let newItem = KYNearbyPeerModel(peerID: peerID, isVisibleToOthers: true, connectionStatus: newItemState)
45 |         self.peers.append(newItem)
   |         |- 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
46 |
47 |         let userInfo: [String: Any] = [
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:72:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
70 |         lostItem.isVisibleToOthers = false
71 |       } else {
72 |         p_removePeerItem(lostItem)
   |         |- 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
73 |       }
74 |     }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:67:10: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
65 |     }
66 |
67 |     Task { @MainActor in
   |          `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
68 |       if lostItem.connectionStatus == .connected {
69 |         // Mark it as invisible to rm when disconnected it.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:24:9: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 22 |     if item.isVisibleToOthers {
 23 |       DispatchQueue.main.async {
 24 |         item.updateState(with: state)
    |         |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 25 |         NotificationCenter.default.post(name: .KYNearbyService.peerDidChangeState, object: item)
 26 |       }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:68:7: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 66 |
 67 |     DispatchQueue.main.async {
 68 |       item.startProcessing(forReceiving: true)
    |       |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |       `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 69 |
 70 |       progress.kind = .file
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:99:9: warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
 97 |     if let item = p_getItem(with: peerID) {
 98 |       DispatchQueue.main.async {
 99 |         item.doneProcessing(with: nil)
    |         |- warning: sending 'item' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'item' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
100 |       }
101 |       userInfo[KYNearbyServiceNotificationUserInfoKey.peerItem] = item
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
135 |     }
136 |     DispatchQueue.main.async {
137 |       NotificationCenter.default.post(name: .KYNearbyService.didReceiveResource, object: nil, userInfo: userInfo)
    |                                                                                                         |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                                                         `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |     }
139 |   }
[26/46] Compiling KYNearbyService KYNearbyService+Sending.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[27/46] Compiling KYNearbyService KYNearbyService+Visibility.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[28/46] Compiling KYNearbyService KYNearbyService.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[29/46] Compiling KYNearbyService KYNearbyService+Debug.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:25:17: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   |                 `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 |     open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 |     open var window: NSWindow { get }
33 |     @MainActor public init()
   |                       `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:26:11: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
   |           `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
AppKit.NSAlert:12:14: note: mutation of this property is only permitted within the actor
10 |     open func addButtonWithTitle(_ title: String) -> NSButton
11 |     open var buttons: [NSButton] { get }
12 |     open var alertStyle: NSAlert.Style { get set }
   |              `- note: mutation of this property is only permitted within the actor
13 |     open var showsHelp: Bool { get set }
14 |     open var helpAnchor: NSHelpManager.AnchorName? { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:27:11: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
   |           `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
AppKit.NSAlert:5:14: note: mutation of this property is only permitted within the actor
 3 |     @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
 4 |     open class func alertWithError(_ error: any Error) -> NSAlert
 5 |     open var messageText: String { get set }
   |              `- note: mutation of this property is only permitted within the actor
 6 |     open var informativeText: String { get set }
 7 |     open var icon: NSImage! { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:28:11: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
   |           `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
30 |     alert.runModal()
AppKit.NSAlert:6:14: note: mutation of this property is only permitted within the actor
 4 |     open class func alertWithError(_ error: any Error) -> NSAlert
 5 |     open var messageText: String { get set }
 6 |     open var informativeText: String { get set }
   |              `- note: mutation of this property is only permitted within the actor
 7 |     open var icon: NSImage! { get set }
 8 |     @MainActor open func addButton(withTitle title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:29:11: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   :
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
   |           `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 |     alert.runModal()
31 | #else
AppKit.NSAlert:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
 6 |     open var informativeText: String { get set }
 7 |     open var icon: NSImage! { get set }
 8 |     @MainActor open func addButton(withTitle title: String) -> NSButton
   |                          `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
 9 |     @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 |     open func addButtonWithTitle(_ title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:30:11: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   :
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
30 |     alert.runModal()
   |           `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #else
32 |     let alertController = UIAlertController(title: "LS:Error Occurred".ky_nearbyServiceLocalized, message: message, preferredStyle: .alert)
AppKit.NSAlert:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 |     @available(macOS 10.5, *)
19 |     open func layout()
20 |     @MainActor open func runModal() -> NSApplication.ModalResponse
   |                          `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 |     @available(macOS 10.5, *)
22 |     open var showsSuppressionButton: Bool { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
[30/46] Compiling KYNearbyService KYNearbyService+ErrorAlert.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:25:17: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   |                 `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 |     open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 |     open var window: NSWindow { get }
33 |     @MainActor public init()
   |                       `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:26:11: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
   |           `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
AppKit.NSAlert:12:14: note: mutation of this property is only permitted within the actor
10 |     open func addButtonWithTitle(_ title: String) -> NSButton
11 |     open var buttons: [NSButton] { get }
12 |     open var alertStyle: NSAlert.Style { get set }
   |              `- note: mutation of this property is only permitted within the actor
13 |     open var showsHelp: Bool { get set }
14 |     open var helpAnchor: NSHelpManager.AnchorName? { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:27:11: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
   |           `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
AppKit.NSAlert:5:14: note: mutation of this property is only permitted within the actor
 3 |     @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
 4 |     open class func alertWithError(_ error: any Error) -> NSAlert
 5 |     open var messageText: String { get set }
   |              `- note: mutation of this property is only permitted within the actor
 6 |     open var informativeText: String { get set }
 7 |     open var icon: NSImage! { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:28:11: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
   |           `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
30 |     alert.runModal()
AppKit.NSAlert:6:14: note: mutation of this property is only permitted within the actor
 4 |     open class func alertWithError(_ error: any Error) -> NSAlert
 5 |     open var messageText: String { get set }
 6 |     open var informativeText: String { get set }
   |              `- note: mutation of this property is only permitted within the actor
 7 |     open var icon: NSImage! { get set }
 8 |     @MainActor open func addButton(withTitle title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:29:11: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   :
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
   |           `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 |     alert.runModal()
31 | #else
AppKit.NSAlert:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
 6 |     open var informativeText: String { get set }
 7 |     open var icon: NSImage! { get set }
 8 |     @MainActor open func addButton(withTitle title: String) -> NSButton
   |                          `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
 9 |     @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 |     open func addButtonWithTitle(_ title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:30:11: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   :
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
30 |     alert.runModal()
   |           `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #else
32 |     let alertController = UIAlertController(title: "LS:Error Occurred".ky_nearbyServiceLocalized, message: message, preferredStyle: .alert)
AppKit.NSAlert:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 |     @available(macOS 10.5, *)
19 |     open func layout()
20 |     @MainActor open func runModal() -> NSApplication.ModalResponse
   |                          `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 |     @available(macOS 10.5, *)
22 |     open var showsSuppressionButton: Bool { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
[31/46] Compiling KYNearbyService KYNearbyService+ReceivedFile.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:25:17: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   |                 `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 |     open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 |     open var window: NSWindow { get }
33 |     @MainActor public init()
   |                       `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:26:11: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
   |           `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
AppKit.NSAlert:12:14: note: mutation of this property is only permitted within the actor
10 |     open func addButtonWithTitle(_ title: String) -> NSButton
11 |     open var buttons: [NSButton] { get }
12 |     open var alertStyle: NSAlert.Style { get set }
   |              `- note: mutation of this property is only permitted within the actor
13 |     open var showsHelp: Bool { get set }
14 |     open var helpAnchor: NSHelpManager.AnchorName? { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:27:11: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
   |           `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
AppKit.NSAlert:5:14: note: mutation of this property is only permitted within the actor
 3 |     @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
 4 |     open class func alertWithError(_ error: any Error) -> NSAlert
 5 |     open var messageText: String { get set }
   |              `- note: mutation of this property is only permitted within the actor
 6 |     open var informativeText: String { get set }
 7 |     open var icon: NSImage! { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:28:11: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
26 |     alert.alertStyle = .warning
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
   |           `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
30 |     alert.runModal()
AppKit.NSAlert:6:14: note: mutation of this property is only permitted within the actor
 4 |     open class func alertWithError(_ error: any Error) -> NSAlert
 5 |     open var messageText: String { get set }
 6 |     open var informativeText: String { get set }
   |              `- note: mutation of this property is only permitted within the actor
 7 |     open var icon: NSImage! { get set }
 8 |     @MainActor open func addButton(withTitle title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:29:11: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   :
27 |     alert.messageText = "LS:Error Occurred".ky_nearbyServiceLocalized
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
   |           `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 |     alert.runModal()
31 | #else
AppKit.NSAlert:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
 6 |     open var informativeText: String { get set }
 7 |     open var icon: NSImage! { get set }
 8 |     @MainActor open func addButton(withTitle title: String) -> NSButton
   |                          `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
 9 |     @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 |     open func addButtonWithTitle(_ title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService+ErrorAlert.swift:30:11: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |   /// - Parameter message: Error details.
22 |   ///
23 |   func presentErrorAlert(message: String) {
   |        `- note: add '@MainActor' to make instance method 'presentErrorAlert(message:)' part of global actor 'MainActor'
24 | #if os(macOS)
25 |     let alert = NSAlert()
   :
28 |     alert.informativeText = message
29 |     alert.addButton(withTitle: "LS:Cancel".ky_nearbyServiceLocalized)
30 |     alert.runModal()
   |           `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #else
32 |     let alertController = UIAlertController(title: "LS:Error Occurred".ky_nearbyServiceLocalized, message: message, preferredStyle: .alert)
AppKit.NSAlert:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 |     @available(macOS 10.5, *)
19 |     open func layout()
20 |     @MainActor open func runModal() -> NSApplication.ModalResponse
   |                          `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 |     @available(macOS 10.5, *)
22 |     open var showsSuppressionButton: Bool { get set }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
[32/46] Compiling KYNearbyService KYNearbyServiceConfiguration.swift
[33/46] Compiling KYNearbyService KYNearbyServiceConstants+ObjC.swift
[34/46] Compiling KYNearbyService KYNearbyServiceConstants.swift
[35/46] Compiling KYNearbyService KYNearbyConnectionViewTheme.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:46: warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                                              `- warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSWindow:360:25: note: property declared here
 358 |     open var titlebarSeparatorStyle: NSTitlebarSeparatorStyle { get set }
 359 |     @available(macOS 10.10, *)
 360 |     @MainActor open var contentViewController: NSViewController? { get set }
     |                         `- note: property declared here
 361 |     @available(macOS 10.10, *)
 362 |     public convenience init(contentViewController: NSViewController)
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:35: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                                   `- warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSApplication:13:30: note: property declared here
 11 |     open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
 12 |     weak open var mainWindow: NSWindow? { get }
 13 |     @MainActor weak open var keyWindow: NSWindow? { get }
    |                              `- note: property declared here
 14 |     open var isActive: Bool { get }
 15 |     @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:28: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                            `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSApplication:2:20: note: class property declared here
  1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
  2 |     open class var shared: NSApplication { get }
    |                    `- note: class property declared here
  3 |     @available(swift, obsoleted: 3, renamed: "shared")
  4 |     open class var sharedApplication: NSApplication { get }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
32 |     ]
33 |     DispatchQueue.main.async {
34 |       NotificationCenter.default.post(name: .KYNearbyService.lostPeer, object: nil, userInfo: userInfo)
   |                                                                                               |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
   |                                                                                               `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
35 |     }
36 |   }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:37:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 35 |     let message: String = String(format: "LS:%@ wants to connect.".ky_nearbyServiceLocalized, peerID.displayName)
 36 |     DispatchQueue.main.async {
 37 |       self._presentAlert(
    |       |- 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
 38 |         title: title,
 39 |         message: message,
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:40:17: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
 38 |         title: title,
 39 |         message: message,
 40 |         peerID: peerID,
    |                 |- 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
 41 |         invitationHandler: invitationHandler)
 42 |     }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:41:28: warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
 39 |         message: message,
 40 |         peerID: peerID,
 41 |         invitationHandler: invitationHandler)
    |                            |- warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'invitationHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 42 |     }
 43 |   }
[36/46] Compiling KYNearbyService KYNearbyService+Internal.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:46: warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                                              `- warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSWindow:360:25: note: property declared here
 358 |     open var titlebarSeparatorStyle: NSTitlebarSeparatorStyle { get set }
 359 |     @available(macOS 10.10, *)
 360 |     @MainActor open var contentViewController: NSViewController? { get set }
     |                         `- note: property declared here
 361 |     @available(macOS 10.10, *)
 362 |     public convenience init(contentViewController: NSViewController)
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:35: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                                   `- warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSApplication:13:30: note: property declared here
 11 |     open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
 12 |     weak open var mainWindow: NSWindow? { get }
 13 |     @MainActor weak open var keyWindow: NSWindow? { get }
    |                              `- note: property declared here
 14 |     open var isActive: Bool { get }
 15 |     @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:28: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                            `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSApplication:2:20: note: class property declared here
  1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
  2 |     open class var shared: NSApplication { get }
    |                    `- note: class property declared here
  3 |     @available(swift, obsoleted: 3, renamed: "shared")
  4 |     open class var sharedApplication: NSApplication { get }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
32 |     ]
33 |     DispatchQueue.main.async {
34 |       NotificationCenter.default.post(name: .KYNearbyService.lostPeer, object: nil, userInfo: userInfo)
   |                                                                                               |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
   |                                                                                               `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
35 |     }
36 |   }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:37:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 35 |     let message: String = String(format: "LS:%@ wants to connect.".ky_nearbyServiceLocalized, peerID.displayName)
 36 |     DispatchQueue.main.async {
 37 |       self._presentAlert(
    |       |- 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
 38 |         title: title,
 39 |         message: message,
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:40:17: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
 38 |         title: title,
 39 |         message: message,
 40 |         peerID: peerID,
    |                 |- 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
 41 |         invitationHandler: invitationHandler)
 42 |     }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:41:28: warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
 39 |         message: message,
 40 |         peerID: peerID,
 41 |         invitationHandler: invitationHandler)
    |                            |- warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'invitationHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 42 |     }
 43 |   }
[37/46] Compiling KYNearbyService KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |   /// The configuration for the nearby service.
 17 |   static var config = KYNearbyServiceConfiguration(serviceType: "")
    |              |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'config' 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
 18 |
 19 |   /// Max allowable peer name length in Byte.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:46: warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                                              `- warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSWindow:360:25: note: property declared here
 358 |     open var titlebarSeparatorStyle: NSTitlebarSeparatorStyle { get set }
 359 |     @available(macOS 10.10, *)
 360 |     @MainActor open var contentViewController: NSViewController? { get set }
     |                         `- note: property declared here
 361 |     @available(macOS 10.10, *)
 362 |     public convenience init(contentViewController: NSViewController)
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:35: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                                   `- warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSApplication:13:30: note: property declared here
 11 |     open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
 12 |     weak open var mainWindow: NSWindow? { get }
 13 |     @MainActor weak open var keyWindow: NSWindow? { get }
    |                              `- note: property declared here
 14 |     open var isActive: Bool { get }
 15 |     @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:47:28: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | #if os(macOS)
43 |   func p_appKeyViewController() -> NSViewController? {
   |        `- note: add '@MainActor' to make instance method 'p_appKeyViewController()' part of global actor 'MainActor'
44 |     if let viewInterface = KYNearbyService.config.viewInterface {
45 |       return viewInterface.ky_keyViewControllerForKYNearbyService()
46 |     } else {
47 |       return NSApplication.shared.keyWindow?.contentViewController
   |                            `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |   }
AppKit.NSApplication:2:20: note: class property declared here
  1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
  2 |     open class var shared: NSApplication { get }
    |                    `- note: class property declared here
  3 |     @available(swift, obsoleted: 3, renamed: "shared")
  4 |     open class var sharedApplication: NSApplication { get }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
32 |     ]
33 |     DispatchQueue.main.async {
34 |       NotificationCenter.default.post(name: .KYNearbyService.lostPeer, object: nil, userInfo: userInfo)
   |                                                                                               |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
   |                                                                                               `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
35 |     }
36 |   }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:37:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 35 |     let message: String = String(format: "LS:%@ wants to connect.".ky_nearbyServiceLocalized, peerID.displayName)
 36 |     DispatchQueue.main.async {
 37 |       self._presentAlert(
    |       |- 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
 38 |         title: title,
 39 |         message: message,
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:40:17: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
 38 |         title: title,
 39 |         message: message,
 40 |         peerID: peerID,
    |                 |- 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
 41 |         invitationHandler: invitationHandler)
 42 |     }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:41:28: warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
 39 |         message: message,
 40 |         peerID: peerID,
 41 |         invitationHandler: invitationHandler)
    |                            |- warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'invitationHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 42 |     }
 43 |   }
[38/46] Compiling KYNearbyService Animation+KYNearbyConnectionView.swift
[39/46] Compiling KYNearbyService View+KYNearbyConnectionView.swift
[40/46] Compiling KYNearbyService KYNearbyConnectionView.swift
[41/46] Compiling KYNearbyService KYNearbyPeerModel+Debug.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 12 |
 13 | @objc
 14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
    |              `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// Peer ID of the user nearby.
    :
 50 |            let progressCounter: Int = Int(round(fractionCompleted * 100))
 51 |
 52 |            if self?.progressCounter != progressCounter {
    |               `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 53 |              DispatchQueue.main.async {
 54 |                self?.progressCounter = progressCounter
[42/46] Compiling KYNearbyService KYNearbyPeerModel+ObjC.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 12 |
 13 | @objc
 14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
    |              `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// Peer ID of the user nearby.
    :
 50 |            let progressCounter: Int = Int(round(fractionCompleted * 100))
 51 |
 52 |            if self?.progressCounter != progressCounter {
    |               `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 53 |              DispatchQueue.main.async {
 54 |                self?.progressCounter = progressCounter
[43/46] Compiling KYNearbyService KYNearbyPeerModel.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 12 |
 13 | @objc
 14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
    |              `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// Peer ID of the user nearby.
    :
 50 |            let progressCounter: Int = Int(round(fractionCompleted * 100))
 51 |
 52 |            if self?.progressCounter != progressCounter {
    |               `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure
 53 |              DispatchQueue.main.async {
 54 |                self?.progressCounter = progressCounter
[44/46] Compiling KYNearbyService KYNearbyConnectionViewConstants.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[45/46] Compiling KYNearbyService KYNearbyConnectionPeerCell+Actions.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
[46/46] Compiling KYNearbyService KYNearbyConnectionPeerCell.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:23:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | @objc
 14 | public class KYNearbyService: NSObject {
    |              `- note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
 15 |
 16 |   /// The configuration for the nearby service.
    :
 21 |
 22 |   /// KYNearbyService singleton.
 23 |   @objc public static let shared = KYNearbyService()
    |                           |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KYNearbyService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'shared' 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
 24 |
 25 |   public private(set) var peerID: MCPeerID?
Build complete! (17.68s)
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "kylogger",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kjuly/KYLogger.git"
    }
  ],
  "manifest_display_name" : "KYNearbyService",
  "name" : "KYNearbyService",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.5"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "KYNearbyService",
      "targets" : [
        "KYNearbyService"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KYNearbyServiceTests",
      "module_type" : "SwiftTarget",
      "name" : "KYNearbyServiceTests",
      "path" : "KYNearbyServiceTests",
      "sources" : [
        "KYNearbyService/KYNearbyServiceConfigurationTests.swift",
        "KYNearbyService/KYNearbyServiceConstantsTests.swift",
        "KYNearbyService/KYNearbyServiceConstants_ObjCTests.swift",
        "KYNearbyService/KYNearbyService_ReceivedFileTests.swift"
      ],
      "target_dependencies" : [
        "KYNearbyService"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KYNearbyService",
      "module_type" : "SwiftTarget",
      "name" : "KYNearbyService",
      "path" : "KYNearbyService/Sources",
      "product_dependencies" : [
        "KYLogger"
      ],
      "product_memberships" : [
        "KYNearbyService"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/Resources/en.lproj/KYNearbyServiceLocalizations.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/Resources/zh-Hans.lproj/KYNearbyServiceLocalizations.strings",
          "rule" : {
            "process" : {
              "localization" : "zh-hans"
            }
          }
        }
      ],
      "sources" : [
        "KYNearbyConnectionView/Extensions/Animation+KYNearbyConnectionView.swift",
        "KYNearbyConnectionView/Extensions/View+KYNearbyConnectionView.swift",
        "KYNearbyConnectionView/KYNearbyConnectionView.swift",
        "KYNearbyConnectionView/KYNearbyConnectionViewConstants.swift",
        "KYNearbyConnectionView/PeerCell/KYNearbyConnectionPeerCell+Actions.swift",
        "KYNearbyConnectionView/PeerCell/KYNearbyConnectionPeerCell.swift",
        "KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel+Event.swift",
        "KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel+Notification.swift",
        "KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel.swift",
        "KYNearbyConnectionView/ViewModel/Theme/KYNearbyConnectionViewTheme.swift",
        "KYNearbyService/Internal/KYNearbyService+Internal.swift",
        "KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift",
        "KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift",
        "KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift",
        "KYNearbyService/KYNearbyService+Connection.swift",
        "KYNearbyService/KYNearbyService+Debug.swift",
        "KYNearbyService/KYNearbyService+ErrorAlert.swift",
        "KYNearbyService/KYNearbyService+ReceivedFile.swift",
        "KYNearbyService/KYNearbyService+Sending.swift",
        "KYNearbyService/KYNearbyService+Visibility.swift",
        "KYNearbyService/KYNearbyService.swift",
        "KYNearbyService/KYNearbyServiceConfiguration.swift",
        "KYNearbyService/KYNearbyServiceConstants+ObjC.swift",
        "KYNearbyService/KYNearbyServiceConstants.swift",
        "KYNearbyService/Model/KYNearbyPeerModel+Debug.swift",
        "KYNearbyService/Model/KYNearbyPeerModel+ObjC.swift",
        "KYNearbyService/Model/KYNearbyPeerModel.swift",
        "Localizations/KYNearbyServiceLocalizations.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.