Build Information
Failed to build NetworkS, reference main (941524
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 01:58:24 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: 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 9415243 major: Updated public interfaces (#16)
Cloned https://github.com/presscorp/NetworkS.git
Revision (git rev-parse @):
941524330e5ea299f40417ad7234caf79719e07a
SUCCESS checkout https://github.com/presscorp/NetworkS.git at main
========================================
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.74s)
Creating working copy for https://github.com/presscorp/NetworkS.git
Working copy of https://github.com/presscorp/NetworkS.git resolved at main (9415243)
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" : [
"Logger/ConsoleLogger.swift",
"Logger/NetworkLogFormatter.swift",
"Logger/NetworkLogger.swift",
"Request/MultipartFormDataRequest.swift",
"Request/NetworkRequest.swift",
"Request/NetworkRequestExtensible.swift",
"Request/RequestContentType.swift",
"Request/RequestMethod.swift",
"Request/RequestURL.swift",
"Response/FailureResponse.swift",
"Response/NetworkResponse.swift",
"Response/SuccessResponse.swift",
"Service/NetworkCompose.swift",
"Service/NetworkService.swift",
"Service/NetworkWorker.swift",
"Session/NetworkConnectionChecker.swift",
"Session/NetworkSessionAdapter.swift",
"Session/NetworkSessionInterface.swift",
"Session/SSLCertificateCheck.swift",
"Session/SessionAuthChallengeService.swift",
"Session/SessionAuthChallenger.swift",
"Session/SessionDelegationHandler.swift",
"Session/SessionLifeCycle.swift",
"Session/SessionLifeCycleService.swift",
"Session/SessionRenewalService.swift",
"Session/SessionTaskDataKeeper.swift",
"Task/CacheRequestTask.swift",
"Task/MockRequestTask.swift",
"Task/NetworkRequestTask.swift",
"Task/RequestTask.swift",
"Task/TaskOperation.swift",
"Task/TaskRunner.swift",
"Task/UtilRequestTask.swift",
"Utils/Data+extension.swift",
"Utils/NetworkError.swift",
"Utils/PathInitializable.swift",
"Utils/String+extension.swift",
"WebView/WebViewAuthChallengeService.swift",
"WebView/WebViewAuthChallenger.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/39] Emitting module NetworkS
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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/Session/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 final class NetworkSessionAdapter {
| `- note: add @available attribute to enclosing class
14 |
15 | public var sslCertificateCheck = SSLCertificateCheck.enabled()
:
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/42] Compiling NetworkS NetworkRequest.swift
[5/42] Compiling NetworkS NetworkRequestExtensible.swift
[6/42] Compiling NetworkS RequestContentType.swift
[7/42] Compiling NetworkS RequestMethod.swift
[8/42] Compiling NetworkS NetworkRequestTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/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/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/42] Compiling NetworkS RequestTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/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/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/42] Compiling NetworkS TaskOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/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/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/42] Compiling NetworkS TaskRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/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/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 | }
[12/42] Compiling NetworkS ConsoleLogger.swift
[13/42] Compiling NetworkS NetworkLogFormatter.swift
[14/42] Compiling NetworkS NetworkLogger.swift
[15/42] Compiling NetworkS MultipartFormDataRequest.swift
[16/42] Compiling NetworkS SessionRenewalService.swift
[17/42] Compiling NetworkS SessionTaskDataKeeper.swift
[18/42] Compiling NetworkS CacheRequestTask.swift
[19/42] Compiling NetworkS MockRequestTask.swift
[20/42] Compiling NetworkS UtilRequestTask.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 |
[21/42] 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 |
[22/42] Compiling NetworkS NetworkError.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 |
[23/42] 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 |
[24/42] Compiling NetworkS NetworkCompose.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:33:64: warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | defer {
32 | if let queue = self?.sessionInterface.completionQueue {
33 | queue.addOperation { [weak requestTask] in requestTask?.operationCompletion() }
| `- warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | } else {
35 | requestTask?.operationCompletion()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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'
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Response/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 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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/Session/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 | }
[25/42] Compiling NetworkS NetworkService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:33:64: warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | defer {
32 | if let queue = self?.sessionInterface.completionQueue {
33 | queue.addOperation { [weak requestTask] in requestTask?.operationCompletion() }
| `- warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | } else {
35 | requestTask?.operationCompletion()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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'
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Response/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 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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/Session/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 | }
[26/42] Compiling NetworkS NetworkWorker.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:33:64: warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | defer {
32 | if let queue = self?.sessionInterface.completionQueue {
33 | queue.addOperation { [weak requestTask] in requestTask?.operationCompletion() }
| `- warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | } else {
35 | requestTask?.operationCompletion()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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'
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Response/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 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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/Session/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 | }
[27/42] Compiling NetworkS NetworkConnectionChecker.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:33:64: warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | defer {
32 | if let queue = self?.sessionInterface.completionQueue {
33 | queue.addOperation { [weak requestTask] in requestTask?.operationCompletion() }
| `- warning: capture of 'requestTask' with non-sendable type '(any UtilizableRequestTask)?' (aka 'Optional<any RequestTask & UtilRequestTask>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | } else {
35 | requestTask?.operationCompletion()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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'
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Service/NetworkWorker.swift:67: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
65 | if let requestTask, requestTask.stopped { return }
66 | if let queue = service.sessionInterface.completionQueue {
67 | 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
68 | } else {
69 | completion(response)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Response/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 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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/Session/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 | }
[28/42] Compiling NetworkS RequestURL.swift
[29/42] Compiling NetworkS FailureResponse.swift
[30/42] Compiling NetworkS NetworkResponse.swift
[31/42] Compiling NetworkS SuccessResponse.swift
[32/42] Compiling NetworkS NetworkSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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 final class NetworkSessionAdapter {
| `- note: add @available attribute to enclosing class
14 |
15 | public var sslCertificateCheck = SSLCertificateCheck.enabled()
:
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/42] Compiling NetworkS NetworkSessionInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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 final class NetworkSessionAdapter {
| `- note: add @available attribute to enclosing class
14 |
15 | public var sslCertificateCheck = SSLCertificateCheck.enabled()
:
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/42] Compiling NetworkS SSLCertificateCheck.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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 final class NetworkSessionAdapter {
| `- note: add @available attribute to enclosing class
14 |
15 | public var sslCertificateCheck = SSLCertificateCheck.enabled()
:
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))
[35/42] Compiling NetworkS SessionAuthChallengeService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/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 final class NetworkSessionAdapter {
| `- note: add @available attribute to enclosing class
14 |
15 | public var sslCertificateCheck = SSLCertificateCheck.enabled()
:
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))
[36/42] Compiling NetworkS SessionAuthChallenger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionAuthChallenger.swift:24:19: 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,
:
22 | guard protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
23 | let serverTrust = protectionSpace.serverTrust,
24 | SecTrustEvaluateWithError(serverTrust, nil),
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
25 | let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) else {
26 | return completionHandler(allowDefault ? .performDefaultHandling : .cancelAuthenticationChallenge, nil)
/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?
[37/42] Compiling NetworkS SessionDelegationHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionAuthChallenger.swift:24:19: 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,
:
22 | guard protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
23 | let serverTrust = protectionSpace.serverTrust,
24 | SecTrustEvaluateWithError(serverTrust, nil),
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
25 | let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) else {
26 | return completionHandler(allowDefault ? .performDefaultHandling : .cancelAuthenticationChallenge, nil)
/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?
[38/42] Compiling NetworkS SessionLifeCycle.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionAuthChallenger.swift:24:19: 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,
:
22 | guard protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
23 | let serverTrust = protectionSpace.serverTrust,
24 | SecTrustEvaluateWithError(serverTrust, nil),
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
25 | let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) else {
26 | return completionHandler(allowDefault ? .performDefaultHandling : .cancelAuthenticationChallenge, nil)
/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?
[39/42] Compiling NetworkS SessionLifeCycleService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/Session/SessionAuthChallenger.swift:24:19: 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,
:
22 | guard protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
23 | let serverTrust = protectionSpace.serverTrust,
24 | SecTrustEvaluateWithError(serverTrust, nil),
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
25 | let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) else {
26 | return completionHandler(allowDefault ? .performDefaultHandling : .cancelAuthenticationChallenge, nil)
/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?
[40/42] Compiling NetworkS String+extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/WebView/WebViewAuthChallenger.swift:28:19: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | public protocol WebViewAuthChallenger: WebViewAuthChallengeService {}
11 |
12 | public extension WebViewAuthChallenger {
| `- note: add @available attribute to enclosing extension
13 |
14 | func webView(
| `- note: add @available attribute to enclosing instance method
15 | _ webView: WKWebView,
16 | didReceive challenge: URLAuthenticationChallenge,
:
26 | guard protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
27 | let serverTrust = protectionSpace.serverTrust,
28 | SecTrustEvaluateWithError(serverTrust, nil),
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 | let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) else {
30 | disposition = allowDefault ? .performDefaultHandling : .cancelAuthenticationChallenge
[41/42] Compiling NetworkS WebViewAuthChallengeService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/WebView/WebViewAuthChallenger.swift:28:19: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | public protocol WebViewAuthChallenger: WebViewAuthChallengeService {}
11 |
12 | public extension WebViewAuthChallenger {
| `- note: add @available attribute to enclosing extension
13 |
14 | func webView(
| `- note: add @available attribute to enclosing instance method
15 | _ webView: WKWebView,
16 | didReceive challenge: URLAuthenticationChallenge,
:
26 | guard protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
27 | let serverTrust = protectionSpace.serverTrust,
28 | SecTrustEvaluateWithError(serverTrust, nil),
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 | let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) else {
30 | disposition = allowDefault ? .performDefaultHandling : .cancelAuthenticationChallenge
[42/42] Compiling NetworkS WebViewAuthChallenger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkS/WebView/WebViewAuthChallenger.swift:28:19: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | public protocol WebViewAuthChallenger: WebViewAuthChallengeService {}
11 |
12 | public extension WebViewAuthChallenger {
| `- note: add @available attribute to enclosing extension
13 |
14 | func webView(
| `- note: add @available attribute to enclosing instance method
15 | _ webView: WKWebView,
16 | didReceive challenge: URLAuthenticationChallenge,
:
26 | guard protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
27 | let serverTrust = protectionSpace.serverTrust,
28 | SecTrustEvaluateWithError(serverTrust, nil),
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 | let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) else {
30 | disposition = allowDefault ? .performDefaultHandling : .cancelAuthenticationChallenge
BUILD FAILURE 6.0 macosSpm