This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build NetworkS with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/presscorp/NetworkS.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/presscorp/NetworkS
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2f98682 patch: Memory leak fix (#12)
Cloned https://github.com/presscorp/NetworkS.git
Revision (git rev-parse @):
2f98682cef8bc54153b5946a6c69087e0e06b6dd
SUCCESS checkout https://github.com/presscorp/NetworkS.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/presscorp/NetworkS.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/34] Emitting module NetworkS
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 8 | import Network
 9 |
10 | protocol NetworkConnectionChecker: AnyObject {
   |          `- note: add @available attribute to enclosing protocol
11 |
12 |     var connectionMonitor: NWPathMonitor { get }
   |         |                  `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
   |         `- note: add @available attribute to enclosing property
13 |
14 |     var connectionMonitorQueue: DispatchQueue { get }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskOperation.swift:10:7: warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | class TaskOperation: Operation {
   |       `- warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
11 |
12 |     enum State: String {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session interface/NetworkSessionAdapter.swift:35:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
 12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
 13 | public class NetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
    |              `- note: add @available attribute to enclosing class
 14 |
 15 |     public var defaultSSLChallengeEnabled = false
    :
 33 |     var networkIsReachable = false
 34 |
 35 |     let connectionMonitor = NWPathMonitor()
    |                             `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 36 |
 37 |     let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:10:7: warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class SessionDelegationHandler: NSObject {
   |       `- warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:12:14: warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
10 | class SessionDelegationHandler: NSObject {
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
   |              `- warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
13 |
14 |     weak var lifeCycle: SessionLifeCycleService?
[4/37] Compiling NetworkS Data+extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Utils/Data+extension.swift:44:82: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
37 | }
38 |
39 | fileprivate extension Data {
   |             `- note: add @available attribute to enclosing extension
40 |
41 |     func getJsonString(pretty: Bool = false) -> String? {
   |          `- note: add @available attribute to enclosing instance method
42 |         var writingOptions: JSONSerialization.WritingOptions = [.fragmentsAllowed]
43 |         if pretty {
44 |             writingOptions = writingOptions.union([.prettyPrinted, .sortedKeys, .withoutEscapingSlashes])
   |                                                                                  |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
   |                                                                                  `- note: add 'if #available' version check
45 |         }
46 |
[5/37] Compiling NetworkS PathInitializable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Utils/Data+extension.swift:44:82: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
37 | }
38 |
39 | fileprivate extension Data {
   |             `- note: add @available attribute to enclosing extension
40 |
41 |     func getJsonString(pretty: Bool = false) -> String? {
   |          `- note: add @available attribute to enclosing instance method
42 |         var writingOptions: JSONSerialization.WritingOptions = [.fragmentsAllowed]
43 |         if pretty {
44 |             writingOptions = writingOptions.union([.prettyPrinted, .sortedKeys, .withoutEscapingSlashes])
   |                                                                                  |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
   |                                                                                  `- note: add 'if #available' version check
45 |         }
46 |
[6/37] Compiling NetworkS String+extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Utils/Data+extension.swift:44:82: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
37 | }
38 |
39 | fileprivate extension Data {
   |             `- note: add @available attribute to enclosing extension
40 |
41 |     func getJsonString(pretty: Bool = false) -> String? {
   |          `- note: add @available attribute to enclosing instance method
42 |         var writingOptions: JSONSerialization.WritingOptions = [.fragmentsAllowed]
43 |         if pretty {
44 |             writingOptions = writingOptions.union([.prettyPrinted, .sortedKeys, .withoutEscapingSlashes])
   |                                                                                  |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
   |                                                                                  `- note: add 'if #available' version check
45 |         }
46 |
[7/37] Compiling NetworkS TaskRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskRunner.swift:31:44: warning: capture of 'tasks' with non-sendable type '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |             let operation = TaskOperation(requestTask: task)
30 |             operation.completionBlock = { [weak dispatchGroup] in
31 |                 if !inSequence || index == tasks.count - 1 {
   |                                            `- warning: capture of 'tasks' with non-sendable type '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |                     dispatchGroup?.leave()
33 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskRunner.swift:31:44: warning: implicit capture of 'tasks' requires that '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') conforms to `Sendable`; this is an error in the Swift 6 language mode
29 |             let operation = TaskOperation(requestTask: task)
30 |             operation.completionBlock = { [weak dispatchGroup] in
31 |                 if !inSequence || index == tasks.count - 1 {
   |                                            `- warning: implicit capture of 'tasks' requires that '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') conforms to `Sendable`; this is an error in the Swift 6 language mode
32 |                     dispatchGroup?.leave()
33 |                 }
[8/37] Compiling NetworkS UtilRequestTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskRunner.swift:31:44: warning: capture of 'tasks' with non-sendable type '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |             let operation = TaskOperation(requestTask: task)
30 |             operation.completionBlock = { [weak dispatchGroup] in
31 |                 if !inSequence || index == tasks.count - 1 {
   |                                            `- warning: capture of 'tasks' with non-sendable type '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |                     dispatchGroup?.leave()
33 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskRunner.swift:31:44: warning: implicit capture of 'tasks' requires that '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') conforms to `Sendable`; this is an error in the Swift 6 language mode
29 |             let operation = TaskOperation(requestTask: task)
30 |             operation.completionBlock = { [weak dispatchGroup] in
31 |                 if !inSequence || index == tasks.count - 1 {
   |                                            `- warning: implicit capture of 'tasks' requires that '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') conforms to `Sendable`; this is an error in the Swift 6 language mode
32 |                     dispatchGroup?.leave()
33 |                 }
[9/37] Compiling NetworkS RequestContentEncoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskRunner.swift:31:44: warning: capture of 'tasks' with non-sendable type '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |             let operation = TaskOperation(requestTask: task)
30 |             operation.completionBlock = { [weak dispatchGroup] in
31 |                 if !inSequence || index == tasks.count - 1 {
   |                                            `- warning: capture of 'tasks' with non-sendable type '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |                     dispatchGroup?.leave()
33 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskRunner.swift:31:44: warning: implicit capture of 'tasks' requires that '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') conforms to `Sendable`; this is an error in the Swift 6 language mode
29 |             let operation = TaskOperation(requestTask: task)
30 |             operation.completionBlock = { [weak dispatchGroup] in
31 |                 if !inSequence || index == tasks.count - 1 {
   |                                            `- warning: implicit capture of 'tasks' requires that '[any UtilizableRequestTask]' (aka 'Array<any RequestTask & UtilRequestTask>') conforms to `Sendable`; this is an error in the Swift 6 language mode
32 |                     dispatchGroup?.leave()
33 |                 }
[10/37] Compiling NetworkS NetworkSessionInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionAuthChallenger.swift:29:29: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | protocol SessionAuthChallenger: SessionAuthChallengeService {}
11 |
12 | extension SessionAuthChallenger {
   | `- note: add @available attribute to enclosing extension
13 |
14 |     func urlSession(
   |          `- note: add @available attribute to enclosing instance method
15 |         _ session: URLSession,
16 |         didReceive challenge: URLAuthenticationChallenge,
   :
27 |         if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
28 |         let serverTrust = challenge.protectionSpace.serverTrust {
29 |             let isTrusted = SecTrustEvaluateWithError(serverTrust, nil)
   |                             |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
   |                             `- note: add 'if #available' version check
30 |
31 |             if isTrusted, let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {
[11/37] Compiling NetworkS SessionAuthChallengeService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionAuthChallenger.swift:29:29: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | protocol SessionAuthChallenger: SessionAuthChallengeService {}
11 |
12 | extension SessionAuthChallenger {
   | `- note: add @available attribute to enclosing extension
13 |
14 |     func urlSession(
   |          `- note: add @available attribute to enclosing instance method
15 |         _ session: URLSession,
16 |         didReceive challenge: URLAuthenticationChallenge,
   :
27 |         if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
28 |         let serverTrust = challenge.protectionSpace.serverTrust {
29 |             let isTrusted = SecTrustEvaluateWithError(serverTrust, nil)
   |                             |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
   |                             `- note: add 'if #available' version check
30 |
31 |             if isTrusted, let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {
[12/37] Compiling NetworkS SessionAuthChallenger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionAuthChallenger.swift:29:29: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | protocol SessionAuthChallenger: SessionAuthChallengeService {}
11 |
12 | extension SessionAuthChallenger {
   | `- note: add @available attribute to enclosing extension
13 |
14 |     func urlSession(
   |          `- note: add @available attribute to enclosing instance method
15 |         _ session: URLSession,
16 |         didReceive challenge: URLAuthenticationChallenge,
   :
27 |         if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
28 |         let serverTrust = challenge.protectionSpace.serverTrust {
29 |             let isTrusted = SecTrustEvaluateWithError(serverTrust, nil)
   |                             |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
   |                             `- note: add 'if #available' version check
30 |
31 |             if isTrusted, let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {
[13/37] Compiling NetworkS MockRequestTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskOperation.swift:10:7: warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | class TaskOperation: Operation {
   |       `- warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
11 |
12 |     enum State: String {
[14/37] Compiling NetworkS NetworkRequestTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskOperation.swift:10:7: warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | class TaskOperation: Operation {
   |       `- warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
11 |
12 |     enum State: String {
[15/37] Compiling NetworkS RequestTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskOperation.swift:10:7: warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | class TaskOperation: Operation {
   |       `- warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
11 |
12 |     enum State: String {
[16/37] Compiling NetworkS TaskOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Request task/TaskOperation.swift:10:7: warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | class TaskOperation: Operation {
   |       `- warning: class 'TaskOperation' must restate inherited '@unchecked Sendable' conformance
11 |
12 |     enum State: String {
[17/37] Compiling NetworkS SessionRenewalService.swift
[18/37] Compiling NetworkS SessionTaskDataKeeper.swift
[19/37] Compiling NetworkS SuccessResponse.swift
[20/37] Compiling NetworkS SessionDelegationHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:10:7: warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class SessionDelegationHandler: NSObject {
   |       `- warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:12:14: warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
10 | class SessionDelegationHandler: NSObject {
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
   |              `- warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
13 |
14 |     weak var lifeCycle: SessionLifeCycleService?
[21/37] Compiling NetworkS SessionLifeCycle.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:10:7: warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class SessionDelegationHandler: NSObject {
   |       `- warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:12:14: warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
10 | class SessionDelegationHandler: NSObject {
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
   |              `- warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
13 |
14 |     weak var lifeCycle: SessionLifeCycleService?
[22/37] Compiling NetworkS SessionLifeCycleService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:10:7: warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class SessionDelegationHandler: NSObject {
   |       `- warning: non-final class 'SessionDelegationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionDelegationHandler.swift:12:14: warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
10 | class SessionDelegationHandler: NSObject {
11 |
12 |     weak var authChallenge: SessionAuthChallengeService?
   |              `- warning: stored property 'authChallenge' of 'Sendable'-conforming class 'SessionDelegationHandler' is mutable; this is an error in the Swift 6 language mode
13 |
14 |     weak var lifeCycle: SessionLifeCycleService?
[23/37] Compiling NetworkS NetworkResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:38: warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                      |- warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' 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'
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:49: warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                                 `- warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkResponse.swift:10:17: note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public protocol NetworkResponse {
   |                 `- note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
11 |
12 |     var statusCode: Int { get }
[24/37] Compiling NetworkS NetworkService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:38: warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                      |- warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' 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'
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:49: warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                                 `- warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkResponse.swift:10:17: note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public protocol NetworkResponse {
   |                 `- note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
11 |
12 |     var statusCode: Int { get }
[25/37] Compiling NetworkS NetworkWorker.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:38: warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                      |- warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' 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'
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:49: warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                                 `- warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkResponse.swift:10:17: note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public protocol NetworkResponse {
   |                 `- note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
11 |
12 |     var statusCode: Int { get }
[26/37] Compiling NetworkS CacheRequestTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:38: warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                      |- warning: capture of 'completion' with non-sendable type '(any NetworkResponse) -> Void' 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'
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkWorker.swift:61:49: warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 |
 60 |             if let queue = service.sessionInterface.completionQueue {
 61 |                 queue.addOperation { completion(response) }
    |                                                 `- warning: capture of 'response' with non-sendable type 'any NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 62 |             } else {
 63 |                 completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkResponse.swift:10:17: note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public protocol NetworkResponse {
   |                 `- note: protocol 'NetworkResponse' does not conform to the 'Sendable' protocol
11 |
12 |     var statusCode: Int { get }
[27/37] Compiling NetworkS ConsoleLogger.swift
[28/37] Compiling NetworkS FailureResponse.swift
[29/37] Compiling NetworkS MultipartFormDataRequest.swift
[30/37] Compiling NetworkS NetworkCompose.swift
[31/37] Compiling NetworkS RequestMethod.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session interface/NetworkSessionAdapter.swift:35:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
 12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
 13 | public class NetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
    |              `- note: add @available attribute to enclosing class
 14 |
 15 |     public var defaultSSLChallengeEnabled = false
    :
 33 |     var networkIsReachable = false
 34 |
 35 |     let connectionMonitor = NWPathMonitor()
    |                             `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 36 |
 37 |     let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
[32/37] Compiling NetworkS RequestURL.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session interface/NetworkSessionAdapter.swift:35:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
 12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
 13 | public class NetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
    |              `- note: add @available attribute to enclosing class
 14 |
 15 |     public var defaultSSLChallengeEnabled = false
    :
 33 |     var networkIsReachable = false
 34 |
 35 |     let connectionMonitor = NWPathMonitor()
    |                             `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 36 |
 37 |     let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
[33/37] Compiling NetworkS NetworkSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session interface/NetworkSessionAdapter.swift:35:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
 12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
 13 | public class NetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
    |              `- note: add @available attribute to enclosing class
 14 |
 15 |     public var defaultSSLChallengeEnabled = false
    :
 33 |     var networkIsReachable = false
 34 |
 35 |     let connectionMonitor = NWPathMonitor()
    |                             `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 36 |
 37 |     let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
[34/37] Compiling NetworkS NetworkConnectionChecker.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 8 | import Network
 9 |
10 | protocol NetworkConnectionChecker: AnyObject {
   |          `- note: add @available attribute to enclosing protocol
11 |
12 |     var connectionMonitor: NWPathMonitor { get }
   |         |                  `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
   |         `- note: add @available attribute to enclosing property
13 |
14 |     var connectionMonitorQueue: DispatchQueue { get }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:23:43: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |     func runConnectionMonitor() {
22 |         connectionMonitor.pathUpdateHandler = { [weak self] newPath in
23 |             guard let connectionMonitor = self else { return }
   |                                           `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |             connectionMonitor.networkIsReachable = newPath.status == .satisfied
25 |         }
[35/37] Compiling NetworkS NetworkError.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 8 | import Network
 9 |
10 | protocol NetworkConnectionChecker: AnyObject {
   |          `- note: add @available attribute to enclosing protocol
11 |
12 |     var connectionMonitor: NWPathMonitor { get }
   |         |                  `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
   |         `- note: add @available attribute to enclosing property
13 |
14 |     var connectionMonitorQueue: DispatchQueue { get }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:23:43: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |     func runConnectionMonitor() {
22 |         connectionMonitor.pathUpdateHandler = { [weak self] newPath in
23 |             guard let connectionMonitor = self else { return }
   |                                           `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |             connectionMonitor.networkIsReachable = newPath.status == .satisfied
25 |         }
[36/37] Compiling NetworkS NetworkLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 8 | import Network
 9 |
10 | protocol NetworkConnectionChecker: AnyObject {
   |          `- note: add @available attribute to enclosing protocol
11 |
12 |     var connectionMonitor: NWPathMonitor { get }
   |         |                  `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
   |         `- note: add @available attribute to enclosing property
13 |
14 |     var connectionMonitorQueue: DispatchQueue { get }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:23:43: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |     func runConnectionMonitor() {
22 |         connectionMonitor.pathUpdateHandler = { [weak self] newPath in
23 |             guard let connectionMonitor = self else { return }
   |                                           `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |             connectionMonitor.networkIsReachable = newPath.status == .satisfied
25 |         }
[37/37] Compiling NetworkS NetworkRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
 8 | import Network
 9 |
10 | protocol NetworkConnectionChecker: AnyObject {
   |          `- note: add @available attribute to enclosing protocol
11 |
12 |     var connectionMonitor: NWPathMonitor { get }
   |         |                  `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
   |         `- note: add @available attribute to enclosing property
13 |
14 |     var connectionMonitorQueue: DispatchQueue { get }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/NetworkConnectionChecker.swift:23:43: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |     func runConnectionMonitor() {
22 |         connectionMonitor.pathUpdateHandler = { [weak self] newPath in
23 |             guard let connectionMonitor = self else { return }
   |                                           `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |             connectionMonitor.networkIsReachable = newPath.status == .satisfied
25 |         }
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.