Build Information
Successful build of KYNearbyService, reference main (b058b1
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:41:13 UTC.
Swift 6 data race errors: 7
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kjuly/KYNearbyService.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kjuly/KYNearbyService
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b058b1a KYNearbyService.podspec: spec.version=1.2.0
Cloned https://github.com/Kjuly/KYNearbyService.git
Revision (git rev-parse @):
b058b1ad5bc6b1b6b298dd4ac0566bae3fb5aaee
SUCCESS checkout https://github.com/Kjuly/KYNearbyService.git at main
Fetching https://github.com/Kjuly/KYLogger.git
[1/188] Fetching kylogger
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.76s)
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
[1/230] Fetching kynearbyservice
Fetched https://github.com/Kjuly/KYNearbyService.git from cache (0.76s)
Fetching https://github.com/Kjuly/KYLogger.git from cache
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.47s)
Creating working copy for https://github.com/Kjuly/KYLogger.git
Working copy of https://github.com/Kjuly/KYLogger.git resolved at main (a7f01e7)
Creating working copy for https://github.com/Kjuly/KYNearbyService.git
Working copy of https://github.com/Kjuly/KYNearbyService.git resolved at main (b058b1a)
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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Copying KYNearbyServiceLocalizations.strings
[2/7] Copying Info.plist
[5/7] Write swift-version--7754E27361AE5C74.txt
[6/16] Compiling KYLoggerObjC KYLoggerObjC.m
[8/16] Compiling KYLogger KYFileLoggerError.swift
[9/16] Compiling KYLogger KYLog.swift
[10/16] Compiling KYLogger KYLogType.swift
[11/16] Compiling KYLogger KYFileLogger+Session.swift
[12/16] Compiling KYLogger KYFileLogger+LogDetails.swift
[13/16] Compiling KYLogger KYFileLogger.swift
[14/16] Emitting module KYLogger
[15/16] Compiling KYLogger KYFileLoggerConfig.swift
[16/16] Compiling KYLogger KYFileLogger+FolderNFile.swift
[17/44] Emitting module KYNearbyService
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:24:15: warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | #endif
18 |
19 | extension KYNearbyService: MCNearbyServiceAdvertiserDelegate {
| `- note: add '@preconcurrency' to the 'MCNearbyServiceAdvertiserDelegate' conformance to defer isolation checking to run time
20 |
21 | /// Incoming invitation request. Call the invitationHandler block with YES
22 | /// and a valid session to connect the inviting peer to the session.
23 | @MainActor
24 | public func advertiser(
| `- warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | _ advertiser: MCNearbyServiceAdvertiser,
26 | didReceiveInvitationFromPeer peerID: MCPeerID,
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:3:10: note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
1 | public protocol MCNearbyServiceAdvertiserDelegate : NSObjectProtocol {
2 | @available(macOS 10.10, *)
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
| `- note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:78:15: warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
76 | /// Advertising did not start due to an error.
77 | @MainActor
78 | public func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: Error) {
| `- warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
79 | presentErrorAlert(message: error.localizedDescription)
80 | }
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:5:19: note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
| `- note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
6 | }
/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+Debug.swift:76:7: warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
74 | }
75 |
76 | class MockProgress: Progress {
| `- warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
77 |
78 | static func debug_makeForProcessingPeer() -> MockProgress {
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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.
:
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
55 | }
56 | }
[18/46] Compiling KYNearbyService KYNearbyServiceLocalizations.swift
[19/46] Compiling KYNearbyService resource_bundle_accessor.swift
[20/46] Compiling KYNearbyService KYNearbyService+MCNearbyServiceBrowserDelegate.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:49: warning: capture of 'peerID' with non-sendable type 'MCPeerID' in a `@Sendable` closure; 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: capture of 'peerID' with non-sendable type 'MCPeerID' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
MultipeerConnectivity.MCPeerID:2:12: note: class 'MCPeerID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, *)
2 | open class MCPeerID : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'MCPeerID' does not conform to the 'Sendable' protocol
3 | public init(displayName myDisplayName: String)
4 | open var displayName: String { get }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MultipeerConnectivity'
8 |
9 | import Foundation
10 | import MultipeerConnectivity
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MultipeerConnectivity'
11 | import KYLogger
12 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:100: warning: capture of 'newItemState' with non-sendable type 'KYNearbyPeerConnectionStatus' in a `@Sendable` closure; 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: capture of 'newItemState' with non-sendable type 'KYNearbyPeerConnectionStatus' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyServiceConstants.swift:58:13: note: consider making enum 'KYNearbyPeerConnectionStatus' conform to the 'Sendable' protocol
56 | // MARK: - Peer Connection Status
57 |
58 | public enum KYNearbyPeerConnectionStatus: Int {
| `- note: consider making enum 'KYNearbyPeerConnectionStatus' conform to the 'Sendable' protocol
59 | /// Not connected to the session.
60 | case notConnected = 0
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:45:9: warning: capture of 'self' with non-sendable type 'KYNearbyService' in a `@Sendable` closure; 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: capture of 'self' with non-sendable type 'KYNearbyService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 |
47 | let userInfo: [String: Any] = [
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:14:14: note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:100: warning: reference to captured var 'newItemState' in concurrently-executing code; 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: reference to captured var 'newItemState' in concurrently-executing code; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:85:100: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | ]
84 | DispatchQueue.main.async {
85 | NotificationCenter.default.post(name: .KYNearbyService.browsingError, object: nil, userInfo: userInfo)
| `- warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:24:9: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | if item.isVisibleToOthers {
23 | DispatchQueue.main.async {
24 | item.updateState(with: state)
| `- warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | NotificationCenter.default.post(name: .KYNearbyService.peerDidChangeState, object: item)
26 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:68:7: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 |
67 | DispatchQueue.main.async {
68 | item.startProcessing(forReceiving: true)
| `- warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |
70 | progress.kind = .file
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:99:9: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; 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: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | }
101 | userInfo[KYNearbyServiceNotificationUserInfoKey.peerItem] = item
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; 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: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: reference to captured var 'userInfo' in concurrently-executing code; 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: reference to captured var 'userInfo' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | }
139 | }
/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 | }
[21/46] Compiling KYNearbyService KYNearbyService+MCSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:49: warning: capture of 'peerID' with non-sendable type 'MCPeerID' in a `@Sendable` closure; 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: capture of 'peerID' with non-sendable type 'MCPeerID' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
MultipeerConnectivity.MCPeerID:2:12: note: class 'MCPeerID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, *)
2 | open class MCPeerID : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'MCPeerID' does not conform to the 'Sendable' protocol
3 | public init(displayName myDisplayName: String)
4 | open var displayName: String { get }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MultipeerConnectivity'
8 |
9 | import Foundation
10 | import MultipeerConnectivity
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MultipeerConnectivity'
11 | import KYLogger
12 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:100: warning: capture of 'newItemState' with non-sendable type 'KYNearbyPeerConnectionStatus' in a `@Sendable` closure; 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: capture of 'newItemState' with non-sendable type 'KYNearbyPeerConnectionStatus' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyServiceConstants.swift:58:13: note: consider making enum 'KYNearbyPeerConnectionStatus' conform to the 'Sendable' protocol
56 | // MARK: - Peer Connection Status
57 |
58 | public enum KYNearbyPeerConnectionStatus: Int {
| `- note: consider making enum 'KYNearbyPeerConnectionStatus' conform to the 'Sendable' protocol
59 | /// Not connected to the session.
60 | case notConnected = 0
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:45:9: warning: capture of 'self' with non-sendable type 'KYNearbyService' in a `@Sendable` closure; 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: capture of 'self' with non-sendable type 'KYNearbyService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 |
47 | let userInfo: [String: Any] = [
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:14:14: note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:100: warning: reference to captured var 'newItemState' in concurrently-executing code; 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: reference to captured var 'newItemState' in concurrently-executing code; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:85:100: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | ]
84 | DispatchQueue.main.async {
85 | NotificationCenter.default.post(name: .KYNearbyService.browsingError, object: nil, userInfo: userInfo)
| `- warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:24:9: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | if item.isVisibleToOthers {
23 | DispatchQueue.main.async {
24 | item.updateState(with: state)
| `- warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | NotificationCenter.default.post(name: .KYNearbyService.peerDidChangeState, object: item)
26 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:68:7: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 |
67 | DispatchQueue.main.async {
68 | item.startProcessing(forReceiving: true)
| `- warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |
70 | progress.kind = .file
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:99:9: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; 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: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | }
101 | userInfo[KYNearbyServiceNotificationUserInfoKey.peerItem] = item
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; 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: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: reference to captured var 'userInfo' in concurrently-executing code; 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: reference to captured var 'userInfo' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | }
139 | }
/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 | }
[22/46] Compiling KYNearbyService KYNearbyService+Connection.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:49: warning: capture of 'peerID' with non-sendable type 'MCPeerID' in a `@Sendable` closure; 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: capture of 'peerID' with non-sendable type 'MCPeerID' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
MultipeerConnectivity.MCPeerID:2:12: note: class 'MCPeerID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, *)
2 | open class MCPeerID : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'MCPeerID' does not conform to the 'Sendable' protocol
3 | public init(displayName myDisplayName: String)
4 | open var displayName: String { get }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MultipeerConnectivity'
8 |
9 | import Foundation
10 | import MultipeerConnectivity
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MultipeerConnectivity'
11 | import KYLogger
12 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:100: warning: capture of 'newItemState' with non-sendable type 'KYNearbyPeerConnectionStatus' in a `@Sendable` closure; 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: capture of 'newItemState' with non-sendable type 'KYNearbyPeerConnectionStatus' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyServiceConstants.swift:58:13: note: consider making enum 'KYNearbyPeerConnectionStatus' conform to the 'Sendable' protocol
56 | // MARK: - Peer Connection Status
57 |
58 | public enum KYNearbyPeerConnectionStatus: Int {
| `- note: consider making enum 'KYNearbyPeerConnectionStatus' conform to the 'Sendable' protocol
59 | /// Not connected to the session.
60 | case notConnected = 0
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:45:9: warning: capture of 'self' with non-sendable type 'KYNearbyService' in a `@Sendable` closure; 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: capture of 'self' with non-sendable type 'KYNearbyService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 |
47 | let userInfo: [String: Any] = [
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:14:14: note: class 'KYNearbyService' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:44:100: warning: reference to captured var 'newItemState' in concurrently-executing code; 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: reference to captured var 'newItemState' in concurrently-executing code; this is an error in the Swift 6 language mode
45 | self.peers.append(newItem)
46 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift:85:100: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | ]
84 | DispatchQueue.main.async {
85 | NotificationCenter.default.post(name: .KYNearbyService.browsingError, object: nil, userInfo: userInfo)
| `- warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:24:9: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | if item.isVisibleToOthers {
23 | DispatchQueue.main.async {
24 | item.updateState(with: state)
| `- warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | NotificationCenter.default.post(name: .KYNearbyService.peerDidChangeState, object: item)
26 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:68:7: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 |
67 | DispatchQueue.main.async {
68 | item.startProcessing(forReceiving: true)
| `- warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |
70 | progress.kind = .file
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:99:9: warning: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; 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: capture of 'item' with non-sendable type 'KYNearbyPeerModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | }
101 | userInfo[KYNearbyServiceNotificationUserInfoKey.peerItem] = item
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:14:14: note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
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.
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; 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: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift:137:105: warning: reference to captured var 'userInfo' in concurrently-executing code; 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: reference to captured var 'userInfo' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | }
139 | }
/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 | }
[23/46] 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?
[24/46] 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?
[25/46] 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?
[26/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?
[27/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?
[28/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?
[29/46] Compiling KYNearbyService Animation+KYNearbyConnectionView.swift
[30/46] Compiling KYNearbyService View+KYNearbyConnectionView.swift
[31/46] Compiling KYNearbyService KYNearbyConnectionView.swift
[32/46] Compiling KYNearbyService KYNearbyConnectionViewTheme.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; 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: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | }
36 | }
/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+MCNearbyServiceAdvertiserDelegate.swift:24:15: warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | #endif
18 |
19 | extension KYNearbyService: MCNearbyServiceAdvertiserDelegate {
| `- note: add '@preconcurrency' to the 'MCNearbyServiceAdvertiserDelegate' conformance to defer isolation checking to run time
20 |
21 | /// Incoming invitation request. Call the invitationHandler block with YES
22 | /// and a valid session to connect the inviting peer to the session.
23 | @MainActor
24 | public func advertiser(
| `- warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | _ advertiser: MCNearbyServiceAdvertiser,
26 | didReceiveInvitationFromPeer peerID: MCPeerID,
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:3:10: note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
1 | public protocol MCNearbyServiceAdvertiserDelegate : NSObjectProtocol {
2 | @available(macOS 10.10, *)
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
| `- note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:78:15: warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
76 | /// Advertising did not start due to an error.
77 | @MainActor
78 | public func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: Error) {
| `- warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
79 | presentErrorAlert(message: error.localizedDescription)
80 | }
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:5:19: note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
| `- note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
6 | }
/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 | }
[33/46] Compiling KYNearbyService KYNearbyService+Internal.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; 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: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | }
36 | }
/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+MCNearbyServiceAdvertiserDelegate.swift:24:15: warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | #endif
18 |
19 | extension KYNearbyService: MCNearbyServiceAdvertiserDelegate {
| `- note: add '@preconcurrency' to the 'MCNearbyServiceAdvertiserDelegate' conformance to defer isolation checking to run time
20 |
21 | /// Incoming invitation request. Call the invitationHandler block with YES
22 | /// and a valid session to connect the inviting peer to the session.
23 | @MainActor
24 | public func advertiser(
| `- warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | _ advertiser: MCNearbyServiceAdvertiser,
26 | didReceiveInvitationFromPeer peerID: MCPeerID,
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:3:10: note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
1 | public protocol MCNearbyServiceAdvertiserDelegate : NSObjectProtocol {
2 | @available(macOS 10.10, *)
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
| `- note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:78:15: warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
76 | /// Advertising did not start due to an error.
77 | @MainActor
78 | public func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: Error) {
| `- warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
79 | presentErrorAlert(message: error.localizedDescription)
80 | }
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:5:19: note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
| `- note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
6 | }
/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 | }
[34/46] Compiling KYNearbyService KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; 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: capture of 'userInfo' with non-sendable type '[String : Any]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | }
36 | }
/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+MCNearbyServiceAdvertiserDelegate.swift:24:15: warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | #endif
18 |
19 | extension KYNearbyService: MCNearbyServiceAdvertiserDelegate {
| `- note: add '@preconcurrency' to the 'MCNearbyServiceAdvertiserDelegate' conformance to defer isolation checking to run time
20 |
21 | /// Incoming invitation request. Call the invitationHandler block with YES
22 | /// and a valid session to connect the inviting peer to the session.
23 | @MainActor
24 | public func advertiser(
| `- warning: main actor-isolated instance method 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | _ advertiser: MCNearbyServiceAdvertiser,
26 | didReceiveInvitationFromPeer peerID: MCPeerID,
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:3:10: note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
1 | public protocol MCNearbyServiceAdvertiserDelegate : NSObjectProtocol {
2 | @available(macOS 10.10, *)
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
| `- note: 'advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)' declared here
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:78:15: warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
76 | /// Advertising did not start due to an error.
77 | @MainActor
78 | public func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: Error) {
| `- warning: main actor-isolated instance method 'advertiser(_:didNotStartAdvertisingPeer:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
79 | presentErrorAlert(message: error.localizedDescription)
80 | }
MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate:5:19: note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
3 | func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void)
4 | @available(macOS 10.10, *)
5 | optional func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: any Error)
| `- note: 'advertiser(_:didNotStartAdvertisingPeer:)' declared here
6 | }
/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 | }
[35/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?
[36/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?
[37/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?
[38/46] Compiling KYNearbyService KYNearbyServiceConfiguration.swift
[39/46] Compiling KYNearbyService KYNearbyServiceConstants+ObjC.swift
[40/46] Compiling KYNearbyService KYNearbyServiceConstants.swift
[41/46] Compiling KYNearbyService KYNearbyPeerModel+Debug.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel+Debug.swift:76:7: warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
74 | }
75 |
76 | class MockProgress: Progress {
| `- warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
77 |
78 | static func debug_makeForProcessingPeer() -> MockProgress {
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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.
:
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
55 | }
56 | }
[42/46] Compiling KYNearbyService KYNearbyPeerModel+ObjC.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel+Debug.swift:76:7: warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
74 | }
75 |
76 | class MockProgress: Progress {
| `- warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
77 |
78 | static func debug_makeForProcessingPeer() -> MockProgress {
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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.
:
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
55 | }
56 | }
[43/46] Compiling KYNearbyService KYNearbyPeerModel.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel+Debug.swift:76:7: warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
74 | }
75 |
76 | class MockProgress: Progress {
| `- warning: class 'MockProgress' must restate inherited '@unchecked Sendable' conformance
77 |
78 | static func debug_makeForProcessingPeer() -> MockProgress {
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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.
:
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:54:16: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
52 | if self?.progressCounter != progressCounter {
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
55 | }
56 | }
[44/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.
[45/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.
[46/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.
Build complete! (21.49s)
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.