The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build NetworkS, reference 5.0.1 (2f9868), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 01:58:31 UTC.

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/presscorp/NetworkS.git
Reference: 5.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/presscorp/NetworkS
 * tag               5.0.1      -> FETCH_HEAD
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 5.0.1
========================================
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": "networks",
      "name": "NetworkS",
      "url": "https://github.com/presscorp/NetworkS.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NetworkS",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/presscorp/NetworkS.git
[1/400] Fetching networks
Fetched https://github.com/presscorp/NetworkS.git from cache (0.79s)
Creating working copy for https://github.com/presscorp/NetworkS.git
Working copy of https://github.com/presscorp/NetworkS.git resolved at 5.0.1 (2f98682)
warning: '.resolve-product-dependencies': dependency 'networks' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/presscorp/NetworkS.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NetworkS",
  "name" : "NetworkS",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "NetworkS",
      "targets" : [
        "NetworkS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NetworkSTests",
      "module_type" : "SwiftTarget",
      "name" : "NetworkSTests",
      "path" : "Tests/NetworkSTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/NetworkSTests/Assets.xcassets",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/NetworkSTests/httpbin.org.cer",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Requests/AnythingRequest.swift",
        "Requests/MockRequest.swift",
        "Requests/PngImageRequest.swift",
        "Requests/StatusRequest.swift",
        "Requests/UploadRequest.swift",
        "Tests/AuthChallengeRequestTests.swift",
        "Tests/CachedResponseTests.swift",
        "Tests/GroupRequestTests.swift",
        "Tests/MockRequestTests.swift",
        "Tests/NetworkSTests.swift",
        "Tests/RequestTests.swift",
        "Tests/SessionRenewalTest.swift",
        "URLs/HttpbinOrgURL.swift",
        "URLs/MockURL.swift"
      ],
      "target_dependencies" : [
        "NetworkS"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NetworkS",
      "module_type" : "SwiftTarget",
      "name" : "NetworkS",
      "path" : "Sources/NetworkS",
      "product_memberships" : [
        "NetworkS"
      ],
      "sources" : [
        "ConsoleLogger.swift",
        "FailureResponse.swift",
        "MultipartFormDataRequest.swift",
        "NetworkCompose.swift",
        "NetworkConnectionChecker.swift",
        "NetworkError.swift",
        "NetworkLogger.swift",
        "NetworkRequest.swift",
        "NetworkResponse.swift",
        "NetworkService.swift",
        "NetworkWorker.swift",
        "Request task/CacheRequestTask.swift",
        "Request task/MockRequestTask.swift",
        "Request task/NetworkRequestTask.swift",
        "Request task/RequestTask.swift",
        "Request task/TaskOperation.swift",
        "Request task/TaskRunner.swift",
        "Request task/UtilRequestTask.swift",
        "RequestContentEncoding.swift",
        "RequestMethod.swift",
        "RequestURL.swift",
        "Session interface/NetworkSessionAdapter.swift",
        "Session interface/NetworkSessionInterface.swift",
        "Session/SessionAuthChallengeService.swift",
        "Session/SessionAuthChallenger.swift",
        "Session/SessionDelegationHandler.swift",
        "Session/SessionLifeCycle.swift",
        "Session/SessionLifeCycleService.swift",
        "Session/SessionRenewalService.swift",
        "Session/SessionTaskDataKeeper.swift",
        "SuccessResponse.swift",
        "Utils/Data+extension.swift",
        "Utils/PathInitializable.swift",
        "Utils/String+extension.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.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 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 }
[5/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 }
[6/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 }
[7/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 }
[8/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 |                 }
[9/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 |                 }
[10/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 |                 }
[11/37] Compiling NetworkS SessionRenewalService.swift
[12/37] Compiling NetworkS SessionTaskDataKeeper.swift
[13/37] Compiling NetworkS SuccessResponse.swift
[14/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 |
[15/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 |
[16/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 |
[17/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 {
[18/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 {
[19/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 {
[20/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 {
[21/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) {
[22/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) {
[23/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) {
[24/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?
[25/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?
[26/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?
[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