Build Information
Successful build of NetworkKit, reference 2.0.0 (0db9f4
), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 10:16:24 UTC.
Swift 6 data race errors: 15
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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ragzy15/NetworkKit.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ragzy15/NetworkKit
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 0db9f44 Merge pull request #4 from ragzy15/develop
Cloned https://github.com/ragzy15/NetworkKit.git
Revision (git rev-parse @):
0db9f4478b2a05776f030d97e63b149f08afc248
SUCCESS checkout https://github.com/ragzy15/NetworkKit.git at 2.0.0
Fetching https://github.com/ragzy15/PublisherKit
[1/4260] Fetching publisherkit
Fetched https://github.com/ragzy15/PublisherKit from cache (1.09s)
Computing version for https://github.com/ragzy15/PublisherKit
Computed https://github.com/ragzy15/PublisherKit at 4.0.2 (0.58s)
Creating working copy for https://github.com/ragzy15/PublisherKit
Working copy of https://github.com/ragzy15/PublisherKit resolved at 4.0.2
========================================
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": "networkkit",
"name": "NetworkKit",
"url": "https://github.com/ragzy15/NetworkKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NetworkKit",
"dependencies": [
{
"identity": "publisherkit",
"name": "PublisherKit",
"url": "https://github.com/ragzy15/PublisherKit",
"version": "4.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PublisherKit",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/ragzy15/NetworkKit.git
[1/855] Fetching networkkit
Fetched https://github.com/ragzy15/NetworkKit.git from cache (0.82s)
Fetching https://github.com/ragzy15/PublisherKit from cache
Fetched https://github.com/ragzy15/PublisherKit from cache (0.46s)
Computing version for https://github.com/ragzy15/PublisherKit
Computed https://github.com/ragzy15/PublisherKit at 4.0.2 (0.02s)
Creating working copy for https://github.com/ragzy15/PublisherKit
Working copy of https://github.com/ragzy15/PublisherKit resolved at 4.0.2
Creating working copy for https://github.com/ragzy15/NetworkKit.git
Working copy of https://github.com/ragzy15/NetworkKit.git resolved at 2.0.0 (0db9f44)
warning: '.resolve-product-dependencies': dependency 'networkkit' is not used by any target
Found 1 product dependencies
- PublisherKit
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ragzy15/NetworkKit.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[2/4] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling PublisherKitHelpers PublisherKitHelpers.cpp
[5/127] Compiling PublisherKit Compact Map.swift
[6/127] Compiling PublisherKit Comparison.swift
[7/127] Compiling PublisherKit Concatenate.swift
[8/127] Compiling PublisherKit Contains Where.swift
[9/127] Compiling PublisherKit Contains.swift
[10/127] Compiling PublisherKit Count.swift
[11/127] Compiling PublisherKit Debounce.swift
[12/127] Compiling PublisherKit Decode.swift
[13/127] Compiling PublisherKit Deferred.swift
[14/127] Compiling PublisherKit Delay.swift
[15/127] Compiling PublisherKit Drop Until Output.swift
[16/127] Compiling PublisherKit Drop While.swift
[17/127] Compiling PublisherKit Drop.swift
[18/127] Compiling PublisherKit Empty Publisher.swift
[19/140] Compiling PublisherKit Encode.swift
[20/140] Compiling PublisherKit Fail.swift
[21/140] Compiling PublisherKit Filter.swift
[22/140] Compiling PublisherKit First.swift
[23/140] Compiling PublisherKit Flat Map.swift
[24/140] Compiling PublisherKit Future.swift
[25/140] Compiling PublisherKit Handle Events.swift
[26/140] Compiling PublisherKit Ignore Output.swift
[27/140] Compiling PublisherKit Just+Operators.swift
[28/140] Compiling PublisherKit Just.swift
[29/140] Compiling PublisherKit Last.swift
[30/140] Compiling PublisherKit Make Connectable.swift
[31/140] Compiling PublisherKit Map Error.swift
[32/140] Compiling PublisherKit Map Keypath.swift
[33/140] Compiling PublisherKit Prefix While.swift
[34/140] Compiling PublisherKit Print.swift
[35/140] Compiling PublisherKit Publishers.swift
[36/140] Compiling PublisherKit Receive On.swift
[37/140] Compiling PublisherKit Record.swift
[38/140] Compiling PublisherKit Reduce.swift
[39/140] Compiling PublisherKit Remove Duplicates.swift
[40/140] Compiling PublisherKit Replace Empty.swift
[41/140] Compiling PublisherKit Replace Error.swift
[42/140] Compiling PublisherKit Result+Operators.swift
[43/140] Compiling PublisherKit Result.swift
[44/140] Compiling PublisherKit Retry.swift
[45/140] Compiling PublisherKit Scan.swift
[46/140] Compiling PublisherKit Assign.swift
[47/140] Compiling PublisherKit Completion.swift
[48/140] Compiling PublisherKit Demand.swift
[49/140] Compiling PublisherKit Filter Producer.swift
[50/140] Compiling PublisherKit PartialCompletion.swift
[51/140] Compiling PublisherKit Reduce Producer.swift
[52/140] Compiling PublisherKit Subject Subscriber.swift
[53/140] Compiling PublisherKit OnCompletion.swift
[54/140] Compiling PublisherKit Sink.swift
[55/140] Compiling PublisherKit Subscribers.swift
[56/140] Compiling PublisherKit Empty.swift
[57/140] Compiling PublisherKit Subscription Status.swift
[58/140] Compiling PublisherKit Subscriptions.swift
[59/140] Compiling PublisherKit Abstract Combine Latest.swift
[60/140] Compiling PublisherKit Abstract Zip.swift
[61/140] Compiling PublisherKit Bindable Value.swift
[62/140] Compiling PublisherKit Any Cancellable.swift
[63/140] Compiling PublisherKit JSONDecoder.swift
[64/140] Compiling PublisherKit JSONEncoder.swift
[65/140] Compiling PublisherKit PropertyListDecoder.swift
[66/140] Compiling PublisherKit PropertyListEncoder.swift
[67/140] Compiling PublisherKit Combine Identifier.swift
[68/140] Compiling PublisherKit HTTP Error.swift
[69/140] Compiling PublisherKit URLError.swift
[70/140] Compiling PublisherKit Array+Extension.swift
[71/140] Compiling PublisherKit Dictionary+Extension.swift
[72/140] Compiling PublisherKit Optional+Extension.swift
[73/140] Compiling PublisherKit Scheduler.swift
[74/140] Compiling PublisherKit Subject.swift
[75/140] Compiling PublisherKit Subscriber.swift
[76/140] Compiling PublisherKit Subscription.swift
[77/140] Compiling PublisherKit __KeyValueObservingPKPublisher.swift
[78/140] Compiling PublisherKit All Satisfy.swift
[79/140] Compiling PublisherKit Any Publisher.swift
[80/140] Compiling PublisherKit Assert No Failure.swift
[81/140] Compiling PublisherKit Autoconnect.swift
[82/140] Compiling PublisherKit Breakpoint.swift
[83/140] Compiling PublisherKit Buffer.swift
[84/140] Compiling PublisherKit Catch.swift
[85/140] Compiling PublisherKit Collect.swift
[86/140] Compiling PublisherKit Combine Latest.swift
[87/140] Compiling PublisherKit Result+Extension.swift
[88/140] Compiling PublisherKit URL+Extension.swift
[89/140] Compiling PublisherKit URLRequest+Extension.swift
[90/140] Compiling PublisherKit Locks.swift
[91/140] Compiling PublisherKit Logger.swift
[92/140] Compiling PublisherKit Asynchronous Operation.swift
[93/140] Compiling PublisherKit Cancellable.swift
[94/140] Compiling PublisherKit Connectable Publisher.swift
[95/140] Compiling PublisherKit Custom Combine Identifier Convertible.swift
[96/140] Compiling PublisherKit Top Level Decoder.swift
[97/140] Compiling PublisherKit Top Level Encoder.swift
[98/140] Compiling PublisherKit Publisher+Operators.swift
[99/140] Compiling PublisherKit Publisher+Subscribers.swift
[100/140] Compiling PublisherKit Publisher.swift
[101/140] Compiling PublisherKit Data Task.swift
[102/140] Compiling PublisherKit Download Task.swift
[103/140] Compiling PublisherKit Upload Task.swift
[104/140] Compiling PublisherKit Validate.swift
[105/140] Compiling PublisherKit Zip.swift
[106/140] Compiling PublisherKit Dispatch Queue.swift
[107/140] Compiling PublisherKit Immediate Scheduler.swift
[108/140] Compiling PublisherKit Operation Queue.swift
[109/140] Compiling PublisherKit Run Loop.swift
[110/140] Compiling PublisherKit Current Value Subject.swift
[111/140] Compiling PublisherKit Passthrough Subject.swift
[112/140] Compiling PublisherKit Any Subscriber.swift
[113/140] Compiling PublisherKit Assign No Retain.swift
[114/140] Compiling PublisherKit Map.swift
[115/140] Compiling PublisherKit First Match.swift
[116/140] Compiling PublisherKit Matches.swift
[117/140] Compiling PublisherKit Measure Interval.swift
[118/140] Compiling PublisherKit Merge.swift
[119/140] Compiling PublisherKit _Merged.swift
[120/140] Compiling PublisherKit Multicast.swift
[121/140] Compiling PublisherKit NSObject.swift
[122/140] Compiling PublisherKit Notification Center.swift
[123/140] Compiling PublisherKit Optional+Operators.swift
[124/140] Compiling PublisherKit Optional.swift
[125/140] Compiling PublisherKit Output.swift
[126/140] Compiling PublisherKit Prefix Until Output.swift
[127/140] Compiling PublisherKit Sequence+Operators.swift
[128/140] Compiling PublisherKit Sequence.swift
[129/140] Compiling PublisherKit Set Failure Type.swift
[130/140] Compiling PublisherKit Share.swift
[131/140] Compiling PublisherKit Subscribe On.swift
[132/140] Compiling PublisherKit Swift To Latest.swift
[133/140] Compiling PublisherKit Throttle.swift
[134/140] Compiling PublisherKit Timeout.swift
[135/140] Compiling PublisherKit Timer.swift
[136/140] Compiling PublisherKit NSTextField.swift
[137/140] Compiling PublisherKit NSTextView.swift
[138/140] Compiling PublisherKit UITextField.swift
[139/140] Compiling PublisherKit UITextView.swift
[140/140] Emitting module PublisherKit
[141/168] Compiling NetworkKit Host Representable.swift
[142/168] Compiling NetworkKit NSError+Extension.swift
[143/168] Compiling NetworkKit Set+Extension.swift
[144/171] Compiling NetworkKit HTTP Body Encoding.swift
[145/171] Compiling NetworkKit HTTP Method.swift
[146/171] Compiling NetworkKit Scheme.swift
[147/171] Compiling NetworkKit CellularTechnology.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:37: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
[148/171] Compiling NetworkKit NetworkInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:37: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
[149/171] Compiling NetworkKit NetworkMonitorType.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:37: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
[150/171] Compiling NetworkKit Configuration+Notification.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:25:23: warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | /// Should allow logging for all sessions.
24 | /// Default value is `false`.
25 | public static var allowLoggingOnAllSessions: Bool = true
| |- warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowLoggingOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allowLoggingOnAllSessions' 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
26 |
27 | /// Should empty cache before application terminates.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:33:23: warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// Should empty cache before application terminates.
32 | /// Default value is `false`.
33 | public static var emptyCacheOnAppTerminateOnAllSessions: Bool = false
| |- warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'emptyCacheOnAppTerminateOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'emptyCacheOnAppTerminateOnAllSessions' 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
34 |
35 | /// URL Cache for a URLSession
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:46:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// A default session configuration object.
46 | public static var defaultConfiguration: URLSessionConfiguration = {
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
47 | let configuration: URLSessionConfiguration = .default
48 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:149:85: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
147 | /// - Parameter apiName: API Name for debug console logging.
148 | /// - Returns: A publisher that wraps a data task for the URL request.
149 | open func dataTask(for request: URLRequest, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
150 | session.dataTaskPKPublisher(for: request, name: apiName)
151 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:159:74: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
157 | /// - Parameter apiName: API Name for debug console logging.
158 | /// - Returns: A publisher that wraps a data task for the URL.
159 | open func dataTask(for url: URL, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
160 | session.dataTaskPKPublisher(for: url, name: apiName)
161 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:194:75: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
192 | /// - Parameter name: Name for the task. Used for logging purpose only.
193 | /// - Returns: A publisher that wraps a download task for the URL.
194 | open func downloadTask(for url: URL, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
195 | session.downloadTaskPKPublisher(for: url, name: name)
196 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:204:86: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
202 | /// - Parameter name: Name for the task. Used for logging purpose only.
203 | /// - Returns: A publisher that wraps a download task for the URL request.
204 | open func downloadTask(for request: URLRequest, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
205 | session.downloadTaskPKPublisher(for: request, name: name)
206 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:214:88: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
212 | /// - Parameter name: Name for the task. Used for logging purpose only.
213 | /// - Returns: A publisher that wraps a download task for the URL request.
214 | open func downloadTask(withResumeData data: Data, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
215 | session.downloadTaskPKPublisher(withResumeData: data, name: name)
216 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:254:102: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
252 | /// - Parameter name: Name for the task. Used for logging purpose only.
253 | /// - Returns: A publisher that wraps a upload task for the URL request.
254 | open func uploadTask(for request: URLRequest, from data: Data?, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
255 | session.uploadTaskPKPublisher(for: request, from: data, name: name)
256 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:265:100: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
263 | /// - Parameter name: Name for the task. Used for logging purpose only.
264 | /// - Returns: A publisher that wraps a upload task for the URL request.
265 | open func uploadTask(for request: URLRequest, from file: URL, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
266 | session.uploadTaskPKPublisher(for: request, from: file, name: name)
267 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |
273 | /// Remove All Cached Responses from this session.
274 | open func removeAllCachedResponses() {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 | session.configuration.urlCache?.removeAllCachedResponses()
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:111:29: warning: capture of 'self' with non-sendable type 'NKConfiguration?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 | /// A Class that coordinates a group of related network data transfer tasks.
17 | open class NKConfiguration {
| `- note: class 'NKConfiguration' does not conform to the 'Sendable' protocol
18 |
19 | /// Enables Logging for this session.
:
109 | #if !os(watchOS)
110 | cacheObserver = NotificationCenter.default.addObserver(forName: notification, object: nil, queue: .init()) { [weak self] (_) in
111 | if let `self` = self, self.emptyCacheOnAppTerminate || NKConfiguration.emptyCacheOnAppTerminateOnAllSessions {
| `- warning: capture of 'self' with non-sendable type 'NKConfiguration?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | self.removeAllCachedResponses()
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
[151/171] Compiling NetworkKit Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:25:23: warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | /// Should allow logging for all sessions.
24 | /// Default value is `false`.
25 | public static var allowLoggingOnAllSessions: Bool = true
| |- warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowLoggingOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allowLoggingOnAllSessions' 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
26 |
27 | /// Should empty cache before application terminates.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:33:23: warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// Should empty cache before application terminates.
32 | /// Default value is `false`.
33 | public static var emptyCacheOnAppTerminateOnAllSessions: Bool = false
| |- warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'emptyCacheOnAppTerminateOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'emptyCacheOnAppTerminateOnAllSessions' 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
34 |
35 | /// URL Cache for a URLSession
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:46:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// A default session configuration object.
46 | public static var defaultConfiguration: URLSessionConfiguration = {
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
47 | let configuration: URLSessionConfiguration = .default
48 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:149:85: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
147 | /// - Parameter apiName: API Name for debug console logging.
148 | /// - Returns: A publisher that wraps a data task for the URL request.
149 | open func dataTask(for request: URLRequest, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
150 | session.dataTaskPKPublisher(for: request, name: apiName)
151 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:159:74: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
157 | /// - Parameter apiName: API Name for debug console logging.
158 | /// - Returns: A publisher that wraps a data task for the URL.
159 | open func dataTask(for url: URL, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
160 | session.dataTaskPKPublisher(for: url, name: apiName)
161 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:194:75: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
192 | /// - Parameter name: Name for the task. Used for logging purpose only.
193 | /// - Returns: A publisher that wraps a download task for the URL.
194 | open func downloadTask(for url: URL, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
195 | session.downloadTaskPKPublisher(for: url, name: name)
196 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:204:86: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
202 | /// - Parameter name: Name for the task. Used for logging purpose only.
203 | /// - Returns: A publisher that wraps a download task for the URL request.
204 | open func downloadTask(for request: URLRequest, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
205 | session.downloadTaskPKPublisher(for: request, name: name)
206 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:214:88: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
212 | /// - Parameter name: Name for the task. Used for logging purpose only.
213 | /// - Returns: A publisher that wraps a download task for the URL request.
214 | open func downloadTask(withResumeData data: Data, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
215 | session.downloadTaskPKPublisher(withResumeData: data, name: name)
216 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:254:102: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
252 | /// - Parameter name: Name for the task. Used for logging purpose only.
253 | /// - Returns: A publisher that wraps a upload task for the URL request.
254 | open func uploadTask(for request: URLRequest, from data: Data?, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
255 | session.uploadTaskPKPublisher(for: request, from: data, name: name)
256 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:265:100: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
263 | /// - Parameter name: Name for the task. Used for logging purpose only.
264 | /// - Returns: A publisher that wraps a upload task for the URL request.
265 | open func uploadTask(for request: URLRequest, from file: URL, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
266 | session.uploadTaskPKPublisher(for: request, from: file, name: name)
267 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |
273 | /// Remove All Cached Responses from this session.
274 | open func removeAllCachedResponses() {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 | session.configuration.urlCache?.removeAllCachedResponses()
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:111:29: warning: capture of 'self' with non-sendable type 'NKConfiguration?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 | /// A Class that coordinates a group of related network data transfer tasks.
17 | open class NKConfiguration {
| `- note: class 'NKConfiguration' does not conform to the 'Sendable' protocol
18 |
19 | /// Enables Logging for this session.
:
109 | #if !os(watchOS)
110 | cacheObserver = NotificationCenter.default.addObserver(forName: notification, object: nil, queue: .init()) { [weak self] (_) in
111 | if let `self` = self, self.emptyCacheOnAppTerminate || NKConfiguration.emptyCacheOnAppTerminateOnAllSessions {
| `- warning: capture of 'self' with non-sendable type 'NKConfiguration?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | self.removeAllCachedResponses()
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
[152/171] Compiling NetworkKit ImageSession+ImageType.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:25:23: warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | /// Should allow logging for all sessions.
24 | /// Default value is `false`.
25 | public static var allowLoggingOnAllSessions: Bool = true
| |- warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowLoggingOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allowLoggingOnAllSessions' 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
26 |
27 | /// Should empty cache before application terminates.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:33:23: warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// Should empty cache before application terminates.
32 | /// Default value is `false`.
33 | public static var emptyCacheOnAppTerminateOnAllSessions: Bool = false
| |- warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'emptyCacheOnAppTerminateOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'emptyCacheOnAppTerminateOnAllSessions' 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
34 |
35 | /// URL Cache for a URLSession
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:46:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// A default session configuration object.
46 | public static var defaultConfiguration: URLSessionConfiguration = {
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
47 | let configuration: URLSessionConfiguration = .default
48 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:149:85: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
147 | /// - Parameter apiName: API Name for debug console logging.
148 | /// - Returns: A publisher that wraps a data task for the URL request.
149 | open func dataTask(for request: URLRequest, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
150 | session.dataTaskPKPublisher(for: request, name: apiName)
151 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:159:74: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
157 | /// - Parameter apiName: API Name for debug console logging.
158 | /// - Returns: A publisher that wraps a data task for the URL.
159 | open func dataTask(for url: URL, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
160 | session.dataTaskPKPublisher(for: url, name: apiName)
161 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:194:75: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
192 | /// - Parameter name: Name for the task. Used for logging purpose only.
193 | /// - Returns: A publisher that wraps a download task for the URL.
194 | open func downloadTask(for url: URL, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
195 | session.downloadTaskPKPublisher(for: url, name: name)
196 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:204:86: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
202 | /// - Parameter name: Name for the task. Used for logging purpose only.
203 | /// - Returns: A publisher that wraps a download task for the URL request.
204 | open func downloadTask(for request: URLRequest, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
205 | session.downloadTaskPKPublisher(for: request, name: name)
206 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:214:88: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
212 | /// - Parameter name: Name for the task. Used for logging purpose only.
213 | /// - Returns: A publisher that wraps a download task for the URL request.
214 | open func downloadTask(withResumeData data: Data, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
215 | session.downloadTaskPKPublisher(withResumeData: data, name: name)
216 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:254:102: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
252 | /// - Parameter name: Name for the task. Used for logging purpose only.
253 | /// - Returns: A publisher that wraps a upload task for the URL request.
254 | open func uploadTask(for request: URLRequest, from data: Data?, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
255 | session.uploadTaskPKPublisher(for: request, from: data, name: name)
256 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:265:100: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
263 | /// - Parameter name: Name for the task. Used for logging purpose only.
264 | /// - Returns: A publisher that wraps a upload task for the URL request.
265 | open func uploadTask(for request: URLRequest, from file: URL, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
266 | session.uploadTaskPKPublisher(for: request, from: file, name: name)
267 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |
273 | /// Remove All Cached Responses from this session.
274 | open func removeAllCachedResponses() {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 | session.configuration.urlCache?.removeAllCachedResponses()
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:111:29: warning: capture of 'self' with non-sendable type 'NKConfiguration?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 | /// A Class that coordinates a group of related network data transfer tasks.
17 | open class NKConfiguration {
| `- note: class 'NKConfiguration' does not conform to the 'Sendable' protocol
18 |
19 | /// Enables Logging for this session.
:
109 | #if !os(watchOS)
110 | cacheObserver = NotificationCenter.default.addObserver(forName: notification, object: nil, queue: .init()) { [weak self] (_) in
111 | if let `self` = self, self.emptyCacheOnAppTerminate || NKConfiguration.emptyCacheOnAppTerminateOnAllSessions {
| `- warning: capture of 'self' with non-sendable type 'NKConfiguration?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | self.removeAllCachedResponses()
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
[153/171] Compiling NetworkKit ImageSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:43:32: warning: capture of 'self' with non-sendable type 'NKImageSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
:
41 | let task = session.dataTask(with: request) { [weak self] (data, response, error) in
42 |
43 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'NKImageSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | return
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:58:21: warning: capture of 'completion' with non-sendable type '(Result<NKImageSession.ImageType, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 |
57 | DispatchQueue.main.async {
58 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<NKImageSession.ImageType, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/NKSession.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' may have shared mutable state; this is an error in the Swift 6 language mode
14 | import PublisherKit
15 |
16 | final public class NKSession: NKConfiguration {
| `- note: class 'NKSession' does not conform to the 'Sendable' protocol
17 |
18 | public static let shared = NKSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' 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
19 |
20 | public override var isLoggingEnabled: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:46:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// A default session configuration object.
46 | public static var defaultConfiguration: URLSessionConfiguration = {
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
47 | let configuration: URLSessionConfiguration = .default
48 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
31 | public internal(set) static var current: Environment = .none
32 |
33 | public static let none = Environment(value: "")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
[154/171] Compiling NetworkKit NKSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:43:32: warning: capture of 'self' with non-sendable type 'NKImageSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
:
41 | let task = session.dataTask(with: request) { [weak self] (data, response, error) in
42 |
43 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'NKImageSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | return
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:58:21: warning: capture of 'completion' with non-sendable type '(Result<NKImageSession.ImageType, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 |
57 | DispatchQueue.main.async {
58 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<NKImageSession.ImageType, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/NKSession.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' may have shared mutable state; this is an error in the Swift 6 language mode
14 | import PublisherKit
15 |
16 | final public class NKSession: NKConfiguration {
| `- note: class 'NKSession' does not conform to the 'Sendable' protocol
17 |
18 | public static let shared = NKSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' 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
19 |
20 | public override var isLoggingEnabled: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:46:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// A default session configuration object.
46 | public static var defaultConfiguration: URLSessionConfiguration = {
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
47 | let configuration: URLSessionConfiguration = .default
48 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
31 | public internal(set) static var current: Environment = .none
32 |
33 | public static let none = Environment(value: "")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
[155/171] Compiling NetworkKit Typealias.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:43:32: warning: capture of 'self' with non-sendable type 'NKImageSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
:
41 | let task = session.dataTask(with: request) { [weak self] (data, response, error) in
42 |
43 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'NKImageSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | return
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:58:21: warning: capture of 'completion' with non-sendable type '(Result<NKImageSession.ImageType, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 |
57 | DispatchQueue.main.async {
58 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<NKImageSession.ImageType, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/NKSession.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' may have shared mutable state; this is an error in the Swift 6 language mode
14 | import PublisherKit
15 |
16 | final public class NKSession: NKConfiguration {
| `- note: class 'NKSession' does not conform to the 'Sendable' protocol
17 |
18 | public static let shared = NKSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' 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
19 |
20 | public override var isLoggingEnabled: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:46:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// A default session configuration object.
46 | public static var defaultConfiguration: URLSessionConfiguration = {
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
47 | let configuration: URLSessionConfiguration = .default
48 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
31 | public internal(set) static var current: Environment = .none
32 |
33 | public static let none = Environment(value: "")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
[156/171] Emitting module NetworkKit
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
31 | public internal(set) static var current: Environment = .none
32 |
33 | public static let none = Environment(value: "")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:34:23: warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
32 |
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
| |- warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'staging' 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
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:35:23: warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
| |- warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dev' 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
36 | public static let production = Environment(value: "")
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:36:23: warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
| |- warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'production' 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
37 | }
38 |
AppKit.NSImageView:7:25: warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | @MainActor open var image: NSImage? { get set }
| `- warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:39:24: note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
37 | import AppKit.NSImage
38 |
39 | extension NSImageView: NKImageSessionDelegate {
| `- note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:20:9: note: 'image' declared here
18 | typealias ImageType = NKImageSession.ImageType
19 |
20 | var image: ImageType? { get set }
| `- note: 'image' declared here
21 |
22 | /// Fetches Image from provided URL and sets it on this UIImageView.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:41:21: warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
39 | extension NSImageView: NKImageSessionDelegate {
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
| |- warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'prepareForReuse' to make this instance method not isolated to the actor
42 | image = placeholder
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:45:10: note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
43 | ///
44 | /// - Parameter placeholder: Optional placeholder image on reuse.
45 | func prepareForReuse(_ placeholder: ImageType?)
| `- note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:37: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkPathMonitor.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' may have shared mutable state; this is an error in the Swift 6 language mode
12 | ///
13 | /// macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0 and later will never return `nil`.
14 | public static let shared: NetworkMonitorType? = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' 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
15 | if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *) {
16 | return _NWNetworkMonitor.default
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:17: note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:13:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
11 | final class _NWNetworkMonitor: NetworkMonitorType {
| `- note: class '_NWNetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | static let `default` = _NWNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
14 |
15 | private let monitor: NWPathMonitor
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:83:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
81 |
82 | /// Default `NetworkReachabilityManager` for the zero address and a `listenerQueue` of `.main`.
83 | static let `default` = _SCNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageFetchable.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 |
17 | /// Allows Image View to fetch image using `PublisherKit`
18 | public protocol ImageFetchable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 |
20 | typealias ImageType = NKImageSession.ImageType
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:16:41: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 | import os.log
15 |
16 | public protocol NKImageSessionDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 |
18 | typealias ImageType = NKImageSession.ImageType
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:25:23: warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | /// Should allow logging for all sessions.
24 | /// Default value is `false`.
25 | public static var allowLoggingOnAllSessions: Bool = true
| |- warning: static property 'allowLoggingOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowLoggingOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allowLoggingOnAllSessions' 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
26 |
27 | /// Should empty cache before application terminates.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:33:23: warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// Should empty cache before application terminates.
32 | /// Default value is `false`.
33 | public static var emptyCacheOnAppTerminateOnAllSessions: Bool = false
| |- warning: static property 'emptyCacheOnAppTerminateOnAllSessions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'emptyCacheOnAppTerminateOnAllSessions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'emptyCacheOnAppTerminateOnAllSessions' 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
34 |
35 | /// URL Cache for a URLSession
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:46:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// A default session configuration object.
46 | public static var defaultConfiguration: URLSessionConfiguration = {
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' 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
47 | let configuration: URLSessionConfiguration = .default
48 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:149:85: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
147 | /// - Parameter apiName: API Name for debug console logging.
148 | /// - Returns: A publisher that wraps a data task for the URL request.
149 | open func dataTask(for request: URLRequest, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
150 | session.dataTaskPKPublisher(for: request, name: apiName)
151 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:159:74: warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
157 | /// - Parameter apiName: API Name for debug console logging.
158 | /// - Returns: A publisher that wraps a data task for the URL.
159 | open func dataTask(for url: URL, apiName: String = "") -> URLSession.DataTaskPKPublisher {
| `- warning: cannot use struct 'DataTaskPKPublisher' here; 'PublisherKit' was not imported by this file
160 | session.dataTaskPKPublisher(for: url, name: apiName)
161 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Data Task.swift:40:19: note: type declared here
38 | extension URLSession {
39 |
40 | public struct DataTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
41 |
42 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:194:75: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
192 | /// - Parameter name: Name for the task. Used for logging purpose only.
193 | /// - Returns: A publisher that wraps a download task for the URL.
194 | open func downloadTask(for url: URL, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
195 | session.downloadTaskPKPublisher(for: url, name: name)
196 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:204:86: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
202 | /// - Parameter name: Name for the task. Used for logging purpose only.
203 | /// - Returns: A publisher that wraps a download task for the URL request.
204 | open func downloadTask(for request: URLRequest, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
205 | session.downloadTaskPKPublisher(for: request, name: name)
206 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:214:88: warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
212 | /// - Parameter name: Name for the task. Used for logging purpose only.
213 | /// - Returns: A publisher that wraps a download task for the URL request.
214 | open func downloadTask(withResumeData data: Data, name: String = "") -> URLSession.DownloadTaskPKPublisher {
| `- warning: cannot use struct 'DownloadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
215 | session.downloadTaskPKPublisher(withResumeData: data, name: name)
216 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Download Task.swift:50:19: note: type declared here
48 | extension URLSession {
49 |
50 | public struct DownloadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
51 |
52 | public typealias Output = (url: URL, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:254:102: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
252 | /// - Parameter name: Name for the task. Used for logging purpose only.
253 | /// - Returns: A publisher that wraps a upload task for the URL request.
254 | open func uploadTask(for request: URLRequest, from data: Data?, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
255 | session.uploadTaskPKPublisher(for: request, from: data, name: name)
256 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:265:100: warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
263 | /// - Parameter name: Name for the task. Used for logging purpose only.
264 | /// - Returns: A publisher that wraps a upload task for the URL request.
265 | open func uploadTask(for request: URLRequest, from file: URL, name: String = "") -> URLSession.UploadTaskPKPublisher {
| `- warning: cannot use struct 'UploadTaskPKPublisher' here; 'PublisherKit' was not imported by this file
266 | session.uploadTaskPKPublisher(for: request, from: file, name: name)
267 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PublisherKit/Sources/PublisherKit/Publishers/URLSession/Upload Task.swift:41:19: note: type declared here
39 | extension URLSession {
40 |
41 | public struct UploadTaskPKPublisher: PublisherKit.Publisher {
| `- note: type declared here
42 |
43 | public typealias Output = (data: Data, response: URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/Configuration/Configuration.swift:274:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
272 |
273 | /// Remove All Cached Responses from this session.
274 | open func removeAllCachedResponses() {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
275 | session.configuration.urlCache?.removeAllCachedResponses()
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/NKSession.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' may have shared mutable state; this is an error in the Swift 6 language mode
14 | import PublisherKit
15 |
16 | final public class NKSession: NKConfiguration {
| `- note: class 'NKSession' does not conform to the 'Sendable' protocol
17 |
18 | public static let shared = NKSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKSession' 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
19 |
20 | public override var isLoggingEnabled: Bool {
[157/171] Compiling NetworkKit String+Extension.swift
AppKit.NSImageView:7:25: warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | @MainActor open var image: NSImage? { get set }
| `- warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:39:24: note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
37 | import AppKit.NSImage
38 |
39 | extension NSImageView: NKImageSessionDelegate {
| `- note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:20:9: note: 'image' declared here
18 | typealias ImageType = NKImageSession.ImageType
19 |
20 | var image: ImageType? { get set }
| `- note: 'image' declared here
21 |
22 | /// Fetches Image from provided URL and sets it on this UIImageView.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:41:21: warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
39 | extension NSImageView: NKImageSessionDelegate {
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
| |- warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'prepareForReuse' to make this instance method not isolated to the actor
42 | image = placeholder
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:45:10: note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
43 | ///
44 | /// - Parameter placeholder: Optional placeholder image on reuse.
45 | func prepareForReuse(_ placeholder: ImageType?)
| `- note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
46 | }
47 |
[158/171] Compiling NetworkKit UIImageView+NSImageView+WKInterfaceImage+Extension.swift
AppKit.NSImageView:7:25: warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | @MainActor open var image: NSImage? { get set }
| `- warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:39:24: note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
37 | import AppKit.NSImage
38 |
39 | extension NSImageView: NKImageSessionDelegate {
| `- note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:20:9: note: 'image' declared here
18 | typealias ImageType = NKImageSession.ImageType
19 |
20 | var image: ImageType? { get set }
| `- note: 'image' declared here
21 |
22 | /// Fetches Image from provided URL and sets it on this UIImageView.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:41:21: warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
39 | extension NSImageView: NKImageSessionDelegate {
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
| |- warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'prepareForReuse' to make this instance method not isolated to the actor
42 | image = placeholder
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:45:10: note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
43 | ///
44 | /// - Parameter placeholder: Optional placeholder image on reuse.
45 | func prepareForReuse(_ placeholder: ImageType?)
| `- note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
46 | }
47 |
[159/171] Compiling NetworkKit Locks.swift
AppKit.NSImageView:7:25: warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | @MainActor open var image: NSImage? { get set }
| `- warning: main actor-isolated property 'image' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:39:24: note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
37 | import AppKit.NSImage
38 |
39 | extension NSImageView: NKImageSessionDelegate {
| `- note: add '@preconcurrency' to the 'NKImageSessionDelegate' conformance to defer isolation checking to run time
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:20:9: note: 'image' declared here
18 | typealias ImageType = NKImageSession.ImageType
19 |
20 | var image: ImageType? { get set }
| `- note: 'image' declared here
21 |
22 | /// Fetches Image from provided URL and sets it on this UIImageView.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift:41:21: warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
39 | extension NSImageView: NKImageSessionDelegate {
40 |
41 | @objc open func prepareForReuse(_ placeholder: ImageType? = nil) {
| |- warning: main actor-isolated instance method 'prepareForReuse' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'prepareForReuse' to make this instance method not isolated to the actor
42 | image = placeholder
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:45:10: note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
43 | ///
44 | /// - Parameter placeholder: Optional placeholder image on reuse.
45 | func prepareForReuse(_ placeholder: ImageType?)
| `- note: mark the protocol requirement 'prepareForReuse' 'async' to allow actor-isolated conformances
46 | }
47 |
[160/171] Compiling NetworkKit _SCNetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:83:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
81 |
82 | /// Default `NetworkReachabilityManager` for the zero address and a `listenerQueue` of `.main`.
83 | static let `default` = _SCNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:210:17: warning: capture of 'self' with non-sendable type '_SCNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
208 | if let currentFlags = flags {
209 | queue.async {
210 | self.notifyListener(currentFlags)
| `- warning: capture of 'self' with non-sendable type '_SCNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 | }
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:264:17: warning: capture of 'listener' with non-sendable type '_SCNetworkMonitor.NetworkPathHandler?' (aka 'Optional<(NetworkPath) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | state.listenerQueue?.async {
264 | listener?(details)
| |- warning: capture of 'listener' with non-sendable type '_SCNetworkMonitor.NetworkPathHandler?' (aka 'Optional<(NetworkPath) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:264:27: warning: capture of 'details' with non-sendable type 'NetworkPath' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | state.listenerQueue?.async {
264 | listener?(details)
| `- warning: capture of 'details' with non-sendable type 'NetworkPath' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkPath.swift:9:15: note: consider making struct 'NetworkPath' conform to the 'Sendable' protocol
7 |
8 | /// An NetworkPath object represents a snapshot of network state. This state represents the known information about the local interface and routes that may be used to send and receive data. If the network details for a connection changes due to interface characteristics, addresses, or other attributes, a new NetworkDetails object will be generated.
9 | public struct NetworkPath: Equatable {
| `- note: consider making struct 'NetworkPath' conform to the 'Sendable' protocol
10 |
11 | private let _isConstrained: Bool
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageFetchable.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 |
17 | /// Allows Image View to fetch image using `PublisherKit`
18 | public protocol ImageFetchable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 |
20 | typealias ImageType = NKImageSession.ImageType
[161/171] Compiling NetworkKit OSLog+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:83:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
81 |
82 | /// Default `NetworkReachabilityManager` for the zero address and a `listenerQueue` of `.main`.
83 | static let `default` = _SCNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:210:17: warning: capture of 'self' with non-sendable type '_SCNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
208 | if let currentFlags = flags {
209 | queue.async {
210 | self.notifyListener(currentFlags)
| `- warning: capture of 'self' with non-sendable type '_SCNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 | }
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:264:17: warning: capture of 'listener' with non-sendable type '_SCNetworkMonitor.NetworkPathHandler?' (aka 'Optional<(NetworkPath) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | state.listenerQueue?.async {
264 | listener?(details)
| |- warning: capture of 'listener' with non-sendable type '_SCNetworkMonitor.NetworkPathHandler?' (aka 'Optional<(NetworkPath) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:264:27: warning: capture of 'details' with non-sendable type 'NetworkPath' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | state.listenerQueue?.async {
264 | listener?(details)
| `- warning: capture of 'details' with non-sendable type 'NetworkPath' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkPath.swift:9:15: note: consider making struct 'NetworkPath' conform to the 'Sendable' protocol
7 |
8 | /// An NetworkPath object represents a snapshot of network state. This state represents the known information about the local interface and routes that may be used to send and receive data. If the network details for a connection changes due to interface characteristics, addresses, or other attributes, a new NetworkDetails object will be generated.
9 | public struct NetworkPath: Equatable {
| `- note: consider making struct 'NetworkPath' conform to the 'Sendable' protocol
10 |
11 | private let _isConstrained: Bool
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageFetchable.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 |
17 | /// Allows Image View to fetch image using `PublisherKit`
18 | public protocol ImageFetchable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 |
20 | typealias ImageType = NKImageSession.ImageType
[162/171] Compiling NetworkKit ImageFetchable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:83:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
81 |
82 | /// Default `NetworkReachabilityManager` for the zero address and a `listenerQueue` of `.main`.
83 | static let `default` = _SCNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:210:17: warning: capture of 'self' with non-sendable type '_SCNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
208 | if let currentFlags = flags {
209 | queue.async {
210 | self.notifyListener(currentFlags)
| `- warning: capture of 'self' with non-sendable type '_SCNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 | }
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:264:17: warning: capture of 'listener' with non-sendable type '_SCNetworkMonitor.NetworkPathHandler?' (aka 'Optional<(NetworkPath) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | state.listenerQueue?.async {
264 | listener?(details)
| |- warning: capture of 'listener' with non-sendable type '_SCNetworkMonitor.NetworkPathHandler?' (aka 'Optional<(NetworkPath) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:264:27: warning: capture of 'details' with non-sendable type 'NetworkPath' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 |
263 | state.listenerQueue?.async {
264 | listener?(details)
| `- warning: capture of 'details' with non-sendable type 'NetworkPath' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | }
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkPath.swift:9:15: note: consider making struct 'NetworkPath' conform to the 'Sendable' protocol
7 |
8 | /// An NetworkPath object represents a snapshot of network state. This state represents the known information about the local interface and routes that may be used to send and receive data. If the network details for a connection changes due to interface characteristics, addresses, or other attributes, a new NetworkDetails object will be generated.
9 | public struct NetworkPath: Equatable {
| `- note: consider making struct 'NetworkPath' conform to the 'Sendable' protocol
10 |
11 | private let _isConstrained: Bool
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageFetchable.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 |
17 | /// Allows Image View to fetch image using `PublisherKit`
18 | public protocol ImageFetchable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 |
20 | typealias ImageType = NKImageSession.ImageType
[163/171] Compiling NetworkKit API Representable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
31 | public internal(set) static var current: Environment = .none
32 |
33 | public static let none = Environment(value: "")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:34:23: warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
32 |
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
| |- warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'staging' 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
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:35:23: warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
| |- warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dev' 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
36 | public static let production = Environment(value: "")
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:36:23: warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
| |- warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'production' 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
37 | }
38 |
[164/171] Compiling NetworkKit Connection Representable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
31 | public internal(set) static var current: Environment = .none
32 |
33 | public static let none = Environment(value: "")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:34:23: warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
32 |
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
| |- warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'staging' 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
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:35:23: warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
| |- warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dev' 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
36 | public static let production = Environment(value: "")
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:36:23: warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
| |- warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'production' 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
37 | }
38 |
[165/171] Compiling NetworkKit Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:31:37: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public internal(set) static var current: Environment = .none
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
32 |
33 | public static let none = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:33:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
31 | public internal(set) static var current: Environment = .none
32 |
33 | public static let none = Environment(value: "")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:34:23: warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
32 |
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
| |- warning: static property 'staging' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'staging' 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
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:35:23: warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
33 | public static let none = Environment(value: "")
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
| |- warning: static property 'dev' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dev' 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
36 | public static let production = Environment(value: "")
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/API Creation/Environment.swift:36:23: warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
20 | In `DEBUG` mode, it persists the `current` value in `UserDefaults`.
21 | */
22 | public struct Environment: Hashable, Equatable {
| `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
23 |
24 | /// String value of the environment
:
34 | public static let staging = Environment(value: "staging")
35 | public static let dev = Environment(value: "dev")
36 | public static let production = Environment(value: "")
| |- warning: static property 'production' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'production' 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
37 | }
38 |
[166/171] Compiling NetworkKit ImageSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:16:41: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 | import os.log
15 |
16 | public protocol NKImageSessionDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 |
18 | typealias ImageType = NKImageSession.ImageType
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
[167/171] Compiling NetworkKit Request+Create.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:16:41: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 | import os.log
15 |
16 | public protocol NKImageSessionDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 |
18 | typealias ImageType = NKImageSession.ImageType
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
[168/171] Compiling NetworkKit Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Protocols/ImageSessionDelegate.swift:16:41: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 | import os.log
15 |
16 | public protocol NKImageSessionDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 |
18 | typealias ImageType = NKImageSession.ImageType
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Sessions/ImageSession.swift:19:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 | import os.log
16 |
17 | public final class NKImageSession: NKConfiguration {
| `- note: class 'NKImageSession' does not conform to the 'Sendable' protocol
18 |
19 | public static let shared = NKImageSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NKImageSession' 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
20 |
21 | public init(useCache: Bool = true, cacheDiskPath: String? = "cachedImages") {
[169/171] Compiling NetworkKit NetworkPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkPathMonitor.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' may have shared mutable state; this is an error in the Swift 6 language mode
12 | ///
13 | /// macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0 and later will never return `nil`.
14 | public static let shared: NetworkMonitorType? = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' 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
15 | if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *) {
16 | return _NWNetworkMonitor.default
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:17: note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:13:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
11 | final class _NWNetworkMonitor: NetworkMonitorType {
| `- note: class '_NWNetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | static let `default` = _NWNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
14 |
15 | private let monitor: NWPathMonitor
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:83:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
81 |
82 | /// Default `NetworkReachabilityManager` for the zero address and a `listenerQueue` of `.main`.
83 | static let `default` = _SCNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:53:32: warning: capture of 'self' with non-sendable type '_NWNetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
11 | final class _NWNetworkMonitor: NetworkMonitorType {
| `- note: class '_NWNetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | static let `default` = _NWNetworkMonitor()
:
51 | monitor.pathUpdateHandler = { [weak self] (path) in
52 |
53 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type '_NWNetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | return
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:60:13: warning: capture of 'handler' with non-sendable type '_NWNetworkMonitor.NetworkPathHandler' (aka '(NetworkPath) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | self.currentPath = networkPath
59 |
60 | handler(networkPath)
| |- warning: capture of 'handler' with non-sendable type '_NWNetworkMonitor.NetworkPathHandler' (aka '(NetworkPath) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | }
62 | }
[170/171] Compiling NetworkKit NetworkPathMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkPathMonitor.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' may have shared mutable state; this is an error in the Swift 6 language mode
12 | ///
13 | /// macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0 and later will never return `nil`.
14 | public static let shared: NetworkMonitorType? = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' 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
15 | if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *) {
16 | return _NWNetworkMonitor.default
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:17: note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:13:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
11 | final class _NWNetworkMonitor: NetworkMonitorType {
| `- note: class '_NWNetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | static let `default` = _NWNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
14 |
15 | private let monitor: NWPathMonitor
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:83:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
81 |
82 | /// Default `NetworkReachabilityManager` for the zero address and a `listenerQueue` of `.main`.
83 | static let `default` = _SCNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:53:32: warning: capture of 'self' with non-sendable type '_NWNetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
11 | final class _NWNetworkMonitor: NetworkMonitorType {
| `- note: class '_NWNetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | static let `default` = _NWNetworkMonitor()
:
51 | monitor.pathUpdateHandler = { [weak self] (path) in
52 |
53 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type '_NWNetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | return
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:60:13: warning: capture of 'handler' with non-sendable type '_NWNetworkMonitor.NetworkPathHandler' (aka '(NetworkPath) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | self.currentPath = networkPath
59 |
60 | handler(networkPath)
| |- warning: capture of 'handler' with non-sendable type '_NWNetworkMonitor.NetworkPathHandler' (aka '(NetworkPath) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | }
62 | }
[171/171] Compiling NetworkKit _NWNetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkPathMonitor.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' may have shared mutable state; this is an error in the Swift 6 language mode
12 | ///
13 | /// macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0 and later will never return `nil`.
14 | public static let shared: NetworkMonitorType? = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type '(any NetworkMonitorType)?' 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
15 | if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *) {
16 | return _NWNetworkMonitor.default
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/NetworkMonitorType.swift:8:17: note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
6 | //
7 |
8 | public protocol NetworkMonitorType: class {
| `- note: protocol 'NetworkMonitorType' does not conform to the 'Sendable' protocol
9 |
10 | typealias NetworkPathHandler = (NetworkPath) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:13:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
11 | final class _NWNetworkMonitor: NetworkMonitorType {
| `- note: class '_NWNetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | static let `default` = _NWNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_NWNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
14 |
15 | private let monitor: NWPathMonitor
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_SCNetworkMonitor.swift:83:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// network requests when a connection is established. It should not be used to prevent a user from initiating a network
21 | /// request, as it's possible that an initial request may be required to establish reachability.
22 | final class _SCNetworkMonitor: NetworkMonitorType {
| `- note: class '_SCNetworkMonitor' does not conform to the 'Sendable' protocol
23 |
24 | public private(set) var currentPath: NetworkPath
:
81 |
82 | /// Default `NetworkReachabilityManager` for the zero address and a `listenerQueue` of `.main`.
83 | static let `default` = _SCNetworkMonitor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SCNetworkMonitor?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:53:32: warning: capture of 'self' with non-sendable type '_NWNetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
11 | final class _NWNetworkMonitor: NetworkMonitorType {
| `- note: class '_NWNetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | static let `default` = _NWNetworkMonitor()
:
51 | monitor.pathUpdateHandler = { [weak self] (path) in
52 |
53 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type '_NWNetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | return
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Monitor/_NWNetworkMonitor.swift:60:13: warning: capture of 'handler' with non-sendable type '_NWNetworkMonitor.NetworkPathHandler' (aka '(NetworkPath) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | self.currentPath = networkPath
59 |
60 | handler(networkPath)
| |- warning: capture of 'handler' with non-sendable type '_NWNetworkMonitor.NetworkPathHandler' (aka '(NetworkPath) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | }
62 | }
Build complete! (22.65s)
Build complete.
{
"dependencies" : [
{
"identity" : "publisherkit",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.2",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ragzy15/PublisherKit"
}
],
"manifest_display_name" : "NetworkKit",
"name" : "NetworkKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "8.0"
},
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "NetworkKit",
"targets" : [
"NetworkKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NetworkKitTests",
"module_type" : "SwiftTarget",
"name" : "NetworkKitTests",
"path" : "Tests/NetworkKitTests",
"sources" : [
"NetworkKitTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NetworkKit"
],
"type" : "test"
},
{
"c99name" : "NetworkKit",
"module_type" : "SwiftTarget",
"name" : "NetworkKit",
"path" : "Sources/NetworkKit",
"product_dependencies" : [
"PublisherKit"
],
"product_memberships" : [
"NetworkKit"
],
"sources" : [
"API Creation/API Representable.swift",
"API Creation/Connection Representable.swift",
"API Creation/Environment.swift",
"API Creation/Host Representable.swift",
"Extensions/NSError+Extension.swift",
"Extensions/Set+Extension.swift",
"Extensions/String+Extension.swift",
"Extensions/UIImageView+NSImageView+WKInterfaceImage+Extension.swift",
"Locks/Locks.swift",
"Monitor/CellularTechnology.swift",
"Monitor/NetworkInterface.swift",
"Monitor/NetworkMonitorType.swift",
"Monitor/NetworkPath.swift",
"Monitor/NetworkPathMonitor.swift",
"Monitor/_NWNetworkMonitor.swift",
"Monitor/_SCNetworkMonitor.swift",
"OSLog/OSLog+Extension.swift",
"Protocols/ImageFetchable.swift",
"Protocols/ImageSessionDelegate.swift",
"Request/Request+Create.swift",
"Request/Request.swift",
"Resources/HTTP Body Encoding.swift",
"Resources/HTTP Method.swift",
"Resources/Scheme.swift",
"Sessions/Configuration/Configuration+Notification.swift",
"Sessions/Configuration/Configuration.swift",
"Sessions/ImageSession+ImageType.swift",
"Sessions/ImageSession.swift",
"Sessions/NKSession.swift",
"Typealias/Typealias.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.