Build Information
Successful build of KYNearbyService, reference main (5d7e49
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 12:10:51 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
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 5d7e49d Update KYNearbyService.podspec: Set spec.version=2.1.1
Cloned https://github.com/Kjuly/KYNearbyService.git
Revision (git rev-parse @):
5d7e49da5b2f2d49b68c621c19301872fe4cde9d
SUCCESS checkout https://github.com/Kjuly/KYNearbyService.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Kjuly/KYNearbyService.git
https://github.com/Kjuly/KYNearbyService.git
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "kylogger",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kjuly/KYLogger.git"
}
],
"manifest_display_name" : "KYNearbyService",
"name" : "KYNearbyService",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.5"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "KYNearbyService",
"targets" : [
"KYNearbyService"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KYNearbyServiceTests",
"module_type" : "SwiftTarget",
"name" : "KYNearbyServiceTests",
"path" : "KYNearbyServiceTests",
"sources" : [
"KYNearbyService/KYNearbyServiceConfigurationTests.swift",
"KYNearbyService/KYNearbyServiceConstantsTests.swift",
"KYNearbyService/KYNearbyServiceConstants_ObjCTests.swift",
"KYNearbyService/KYNearbyService_ReceivedFileTests.swift"
],
"target_dependencies" : [
"KYNearbyService"
],
"type" : "test"
},
{
"c99name" : "KYNearbyService",
"module_type" : "SwiftTarget",
"name" : "KYNearbyService",
"path" : "KYNearbyService/Sources",
"product_dependencies" : [
"KYLogger"
],
"product_memberships" : [
"KYNearbyService"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/Resources/en.lproj/KYNearbyServiceLocalizations.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/Resources/zh-Hans.lproj/KYNearbyServiceLocalizations.strings",
"rule" : {
"process" : {
"localization" : "zh-hans"
}
}
}
],
"sources" : [
"KYNearbyConnectionView/Extensions/Animation+KYNearbyConnectionView.swift",
"KYNearbyConnectionView/Extensions/View+KYNearbyConnectionView.swift",
"KYNearbyConnectionView/KYNearbyConnectionView.swift",
"KYNearbyConnectionView/KYNearbyConnectionViewConstants.swift",
"KYNearbyConnectionView/PeerCell/KYNearbyConnectionPeerCell+Actions.swift",
"KYNearbyConnectionView/PeerCell/KYNearbyConnectionPeerCell.swift",
"KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel+Event.swift",
"KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel+Notification.swift",
"KYNearbyConnectionView/ViewModel/KYNearbyConnectionViewModel.swift",
"KYNearbyConnectionView/ViewModel/Theme/KYNearbyConnectionViewTheme.swift",
"KYNearbyService/Internal/KYNearbyService+Internal.swift",
"KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift",
"KYNearbyService/Internal/KYNearbyService+MCNearbyServiceBrowserDelegate.swift",
"KYNearbyService/Internal/KYNearbyService+MCSessionDelegate.swift",
"KYNearbyService/KYNearbyService+Connection.swift",
"KYNearbyService/KYNearbyService+Debug.swift",
"KYNearbyService/KYNearbyService+ErrorAlert.swift",
"KYNearbyService/KYNearbyService+ReceivedFile.swift",
"KYNearbyService/KYNearbyService+Sending.swift",
"KYNearbyService/KYNearbyService+Visibility.swift",
"KYNearbyService/KYNearbyService.swift",
"KYNearbyService/KYNearbyServiceConfiguration.swift",
"KYNearbyService/KYNearbyServiceConstants+ObjC.swift",
"KYNearbyService/KYNearbyServiceConstants.swift",
"KYNearbyService/Model/KYNearbyPeerModel+Debug.swift",
"KYNearbyService/Model/KYNearbyPeerModel+ObjC.swift",
"KYNearbyService/Model/KYNearbyPeerModel.swift",
"Localizations/KYNearbyServiceLocalizations.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[1/7] Copying Info.plist
[1/7] Write sources
[2/7] Copying KYNearbyServiceLocalizations.strings
[5/7] Write swift-version-2F0A5646E1D333AE.txt
[6/16] Compiling KYLoggerObjC KYLoggerObjC.m
[8/16] Compiling KYLogger KYLog.swift
[9/16] Compiling KYLogger KYLogType.swift
[10/16] Compiling KYLogger KYFileLoggerError.swift
[11/16] Compiling KYLogger KYFileLogger+Session.swift
[12/16] Compiling KYLogger KYFileLoggerConfig.swift
[13/16] Emitting module KYLogger
[14/16] Compiling KYLogger KYFileLogger+FolderNFile.swift
[15/16] Compiling KYLogger KYFileLogger+LogDetails.swift
[16/16] Compiling KYLogger KYFileLogger.swift
[17/44] Emitting module KYNearbyService
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The configuration for the nearby service.
17 | static var config = KYNearbyServiceConfiguration(serviceType: "")
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | public private(set) var peerID: MCPeerID?
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
12 |
13 | @objc
14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
| `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
15 |
16 | /// Peer ID of the user nearby.
:
50 | let progressCounter: Int = Int(round(fractionCompleted * 100))
51 |
52 | if self?.progressCounter != progressCounter {
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
[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: 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:68:10: warning: sending 'lostItem' risks causing data races; this is an error in the Swift 6 language mode
66 |
67 | Task { @MainActor in
68 | if lostItem.connectionStatus == .connected {
| |- warning: sending 'lostItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lostItem' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
69 | // Mark it as invisible to rm when disconnected it.
70 | lostItem.isVisibleToOthers = false
/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+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: 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:68:10: warning: sending 'lostItem' risks causing data races; this is an error in the Swift 6 language mode
66 |
67 | Task { @MainActor in
68 | if lostItem.connectionStatus == .connected {
| |- warning: sending 'lostItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lostItem' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
69 | // Mark it as invisible to rm when disconnected it.
70 | lostItem.isVisibleToOthers = false
/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+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: 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:68:10: warning: sending 'lostItem' risks causing data races; this is an error in the Swift 6 language mode
66 |
67 | Task { @MainActor in
68 | if lostItem.connectionStatus == .connected {
| |- warning: sending 'lostItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lostItem' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
69 | // Mark it as invisible to rm when disconnected it.
70 | lostItem.isVisibleToOthers = false
/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+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
[24/46] Compiling KYNearbyService KYNearbyConnectionViewModel+Notification.swift
[25/46] Compiling KYNearbyService KYNearbyConnectionViewModel.swift
[26/46] Compiling KYNearbyService KYNearbyService+Sending.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The configuration for the nearby service.
17 | static var config = KYNearbyServiceConfiguration(serviceType: "")
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | public private(set) var peerID: MCPeerID?
[27/46] Compiling KYNearbyService KYNearbyService+Visibility.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The configuration for the nearby service.
17 | static var config = KYNearbyServiceConfiguration(serviceType: "")
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | public private(set) var peerID: MCPeerID?
[28/46] Compiling KYNearbyService KYNearbyService.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/KYNearbyService.swift:17:14: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The configuration for the nearby service.
17 | static var config = KYNearbyServiceConfiguration(serviceType: "")
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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 KYNearbyServiceConfiguration.swift
[30/46] Compiling KYNearbyService KYNearbyServiceConstants+ObjC.swift
[31/46] Compiling KYNearbyService KYNearbyServiceConstants.swift
[32/46] Compiling KYNearbyService Animation+KYNearbyConnectionView.swift
[33/46] Compiling KYNearbyService View+KYNearbyConnectionView.swift
[34/46] Compiling KYNearbyService KYNearbyConnectionView.swift
[35/46] Compiling KYNearbyService KYNearbyConnectionViewConstants.swift
[36/46] Compiling KYNearbyService KYNearbyConnectionPeerCell+Actions.swift
[37/46] Compiling KYNearbyService KYNearbyConnectionPeerCell.swift
[38/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
| `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
69 | /// The text that is displayed prominently in the alert.
70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
71 | @property (copy) NSString *messageText;
| `- note: mutation of this property is only permitted within the actor
72 |
73 | /// The descriptive text that provides more details about the reason for the alert.
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
73 | /// The descriptive text that provides more details about the reason for the alert.
74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
75 | @property (copy) NSString *informativeText;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | // MARK: - Accessing a Custom Alert Icon
/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.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/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.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
[39/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
| `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
69 | /// The text that is displayed prominently in the alert.
70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
71 | @property (copy) NSString *messageText;
| `- note: mutation of this property is only permitted within the actor
72 |
73 | /// The descriptive text that provides more details about the reason for the alert.
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
73 | /// The descriptive text that provides more details about the reason for the alert.
74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
75 | @property (copy) NSString *informativeText;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | // MARK: - Accessing a Custom Alert Icon
/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.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/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.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
[40/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
| `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
69 | /// The text that is displayed prominently in the alert.
70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
71 | @property (copy) NSString *messageText;
| `- note: mutation of this property is only permitted within the actor
72 |
73 | /// The descriptive text that provides more details about the reason for the alert.
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
73 | /// The descriptive text that provides more details about the reason for the alert.
74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
75 | @property (copy) NSString *informativeText;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | // MARK: - Accessing a Custom Alert Icon
/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.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/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.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
[41/46] Compiling KYNearbyService KYNearbyPeerModel+Debug.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
12 |
13 | @objc
14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
| `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
15 |
16 | /// Peer ID of the user nearby.
:
50 | let progressCounter: Int = Int(round(fractionCompleted * 100))
51 |
52 | if self?.progressCounter != progressCounter {
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
[42/46] Compiling KYNearbyService KYNearbyPeerModel+ObjC.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
12 |
13 | @objc
14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
| `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
15 |
16 | /// Peer ID of the user nearby.
:
50 | let progressCounter: Int = Int(round(fractionCompleted * 100))
51 |
52 | if self?.progressCounter != progressCounter {
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
[43/46] Compiling KYNearbyService KYNearbyPeerModel.swift
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Model/KYNearbyPeerModel.swift:52:15: warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
12 |
13 | @objc
14 | public class KYNearbyPeerModel: NSObject, ObservableObject {
| `- note: class 'KYNearbyPeerModel' does not conform to the 'Sendable' protocol
15 |
16 | /// Peer ID of the user nearby.
:
50 | let progressCounter: Int = Int(round(fractionCompleted * 100))
51 |
52 | if self?.progressCounter != progressCounter {
| `- warning: capture of 'self' with non-sendable type 'KYNearbyPeerModel?' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | self?.progressCounter = progressCounter
[44/46] Compiling KYNearbyService KYNearbyConnectionViewTheme.swift
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:651:48: note: property declared here
649 | /*! The main content view controller for the window. This provides the contentView of the window. Assigning this value will remove the existing contentView and will make the contentViewController.view the main contentView for the window. The default value is nil. The contentViewController only controls the contentView, and not the title of the window. The window title can easily be bound to the contentViewController with the following: [window bind:NSTitleBinding toObject:contentViewController withKeyPath:@"title" options:nil]. Setting the contentViewController will cause the window to resize based on the current size of the contentViewController. Autolayout should be used to restrict the size of the window. The value of the contentViewController is encoded in the NIB. Directly assigning a contentView will clear out the contentViewController.
650 | */
651 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
| `- note: property declared here
652 |
653 | /*! Convenience method for creating an autoreleased titled window with the given contentViewController. A basic NSWindow with the following attributes is made: titled, closable, resizable, miniaturizable. The window's title is automatically bound to the contentViewController's title. The size of the window can easily be controlled by utilizing autolayout and applying size constraints to the view (or its subviews). The window has isReleasedWhenClosed set to NO, and it must be explicitly retained to keep the window instance alive. To have it automatically be freed when it is closed, do the following: [window retain] and [window setReleasedWhenClosed:YES].
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
32 | ]
33 | DispatchQueue.main.async {
34 | NotificationCenter.default.post(name: .KYNearbyService.lostPeer, object: nil, userInfo: userInfo)
| |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:37:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
35 | let message: String = String(format: "LS:%@ wants to connect.".ky_nearbyServiceLocalized, peerID.displayName)
36 | DispatchQueue.main.async {
37 | self._presentAlert(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
38 | title: title,
39 | message: message,
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:40:17: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
38 | title: title,
39 | message: message,
40 | peerID: peerID,
| |- warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'peerID' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | invitationHandler: invitationHandler)
42 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:41:28: warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
39 | message: message,
40 | peerID: peerID,
41 | invitationHandler: invitationHandler)
| |- warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'invitationHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[45/46] Compiling KYNearbyService KYNearbyService+Internal.swift
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:651:48: note: property declared here
649 | /*! The main content view controller for the window. This provides the contentView of the window. Assigning this value will remove the existing contentView and will make the contentViewController.view the main contentView for the window. The default value is nil. The contentViewController only controls the contentView, and not the title of the window. The window title can easily be bound to the contentViewController with the following: [window bind:NSTitleBinding toObject:contentViewController withKeyPath:@"title" options:nil]. Setting the contentViewController will cause the window to resize based on the current size of the contentViewController. Autolayout should be used to restrict the size of the window. The value of the contentViewController is encoded in the NIB. Directly assigning a contentView will clear out the contentViewController.
650 | */
651 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
| `- note: property declared here
652 |
653 | /*! Convenience method for creating an autoreleased titled window with the given contentViewController. A basic NSWindow with the following attributes is made: titled, closable, resizable, miniaturizable. The window's title is automatically bound to the contentViewController's title. The size of the window can easily be controlled by utilizing autolayout and applying size constraints to the view (or its subviews). The window has isReleasedWhenClosed set to NO, and it must be explicitly retained to keep the window instance alive. To have it automatically be freed when it is closed, do the following: [window retain] and [window setReleasedWhenClosed:YES].
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
32 | ]
33 | DispatchQueue.main.async {
34 | NotificationCenter.default.post(name: .KYNearbyService.lostPeer, object: nil, userInfo: userInfo)
| |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:37:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
35 | let message: String = String(format: "LS:%@ wants to connect.".ky_nearbyServiceLocalized, peerID.displayName)
36 | DispatchQueue.main.async {
37 | self._presentAlert(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
38 | title: title,
39 | message: message,
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:40:17: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
38 | title: title,
39 | message: message,
40 | peerID: peerID,
| |- warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'peerID' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | invitationHandler: invitationHandler)
42 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:41:28: warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
39 | message: message,
40 | peerID: peerID,
41 | invitationHandler: invitationHandler)
| |- warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'invitationHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
[46/46] Compiling KYNearbyService KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:651:48: note: property declared here
649 | /*! The main content view controller for the window. This provides the contentView of the window. Assigning this value will remove the existing contentView and will make the contentViewController.view the main contentView for the window. The default value is nil. The contentViewController only controls the contentView, and not the title of the window. The window title can easily be bound to the contentViewController with the following: [window bind:NSTitleBinding toObject:contentViewController withKeyPath:@"title" options:nil]. Setting the contentViewController will cause the window to resize based on the current size of the contentViewController. Autolayout should be used to restrict the size of the window. The value of the contentViewController is encoded in the NIB. Directly assigning a contentView will clear out the contentViewController.
650 | */
651 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
| `- note: property declared here
652 |
653 | /*! Convenience method for creating an autoreleased titled window with the given contentViewController. A basic NSWindow with the following attributes is made: titled, closable, resizable, miniaturizable. The window's title is automatically bound to the contentViewController's title. The size of the window can easily be controlled by utilizing autolayout and applying size constraints to the view (or its subviews). The window has isReleasedWhenClosed set to NO, and it must be explicitly retained to keep the window instance alive. To have it automatically be freed when it is closed, do the following: [window retain] and [window setReleasedWhenClosed:YES].
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+Internal.swift:34:95: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
32 | ]
33 | DispatchQueue.main.async {
34 | NotificationCenter.default.post(name: .KYNearbyService.lostPeer, object: nil, userInfo: userInfo)
| |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:37:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
35 | let message: String = String(format: "LS:%@ wants to connect.".ky_nearbyServiceLocalized, peerID.displayName)
36 | DispatchQueue.main.async {
37 | self._presentAlert(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
38 | title: title,
39 | message: message,
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:40:17: warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
38 | title: title,
39 | message: message,
40 | peerID: peerID,
| |- warning: sending 'peerID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'peerID' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | invitationHandler: invitationHandler)
42 | }
/Users/admin/builder/spi-builder-workspace/KYNearbyService/Sources/KYNearbyService/Internal/KYNearbyService+MCNearbyServiceAdvertiserDelegate.swift:41:28: warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
39 | message: message,
40 | peerID: peerID,
41 | invitationHandler: invitationHandler)
| |- warning: sending 'invitationHandler' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'invitationHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 | }
43 | }
Build complete! (11.61s)
Fetching https://github.com/Kjuly/KYLogger.git
[1/197] Fetching kylogger
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.70s)
Creating working copy for https://github.com/Kjuly/KYLogger.git
Working copy of https://github.com/Kjuly/KYLogger.git resolved at main (4af59f6)
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.