Build Information
Failed to build SwiftlyNetFlex, reference master (b42775), with Swift 6.1 for macOS (SPM) on 10 Mar 2026 17:34:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/namazii/SwiftlyNetFlex.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/namazii/SwiftlyNetFlex
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at b427756 staging into master 1.0.0
Cloned https://github.com/namazii/SwiftlyNetFlex.git
Revision (git rev-parse @):
b427756ec38099e1ed77d8f81e6248a8d055ba44
SUCCESS checkout https://github.com/namazii/SwiftlyNetFlex.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/namazii/SwiftlyNetFlex.git
https://github.com/namazii/SwiftlyNetFlex.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftlyNetFlex",
"name" : "SwiftlyNetFlex",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "SwiftlyNetFlex",
"targets" : [
"SwiftlyNetFlex"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftlyNetFlex",
"module_type" : "SwiftTarget",
"name" : "SwiftlyNetFlex",
"path" : "Sources/SwiftlyNetFlex",
"product_memberships" : [
"SwiftlyNetFlex"
],
"sources" : [
"Encoding/JSONParameterEncoder.swift",
"Encoding/ParameterEncoding.swift",
"Encoding/URLParameterEncoding.swift",
"Models/FailureData.swift",
"Models/NetworkEnvironment.swift",
"Models/NetworkRequestError.swift",
"Models/NetworkResponse.swift",
"Parser/CompletionRequest.swift",
"Parser/ParserNetworkData.swift",
"Parser/ResultRequest.swift",
"Service/EndPoint/EndPointType.swift",
"Service/HTTP/HTTPMethod.swift",
"Service/HTTP/HTTPTask.swift",
"Service/Log.swift",
"Service/NetworkConnectivityManager.swift",
"Service/NetworkRouter.swift",
"Service/SafedCollections/AtomicArray.swift",
"Service/SafedCollections/SafeArray.swift",
"Service/TokenAuthorizator.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/21] Compiling SwiftlyNetFlex AtomicArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:31: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:48:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
46 | public func removeAll() {
47 | dispatchQueue.async(flags: .barrier) {
48 | self.array.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
49 | }
50 | }
[4/21] Compiling SwiftlyNetFlex SafeArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:31: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:48:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
46 | public func removeAll() {
47 | dispatchQueue.async(flags: .barrier) {
48 | self.array.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
49 | }
50 | }
[5/21] Compiling SwiftlyNetFlex NetworkConnectivityManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:33:26: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
31 |
32 | private let queue = DispatchQueue(label: "NetworkConnectivityMonitor")
33 | private let monitor: NWPathMonitor
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | private(set) var isConnected = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:37:45: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
35 | private(set) var isConnected = false
36 | private(set) var isExpensive = false
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
| `- error: 'NWInterface' is only available in macOS 10.14 or newer
38 |
39 | private init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:66:34: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static property
67 | .other,
68 | .wifi,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:64:11: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:40:19: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
38 |
39 | private init() {
| `- note: add @available attribute to enclosing initializer
40 | monitor = NWPathMonitor()
| |- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:51:44: error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
50 |
51 | self.isConnected = path.status != .unsatisfied
| |- error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:53:42: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
:
51 | self.isConnected = path.status != .unsatisfied
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
| |- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
54 | }
55 | monitor.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|64 |
|65 |
|66 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|97 |
|98 |
|99 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:34: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:51: warning: reference to captured var 'task' in concurrently-executing code
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: reference to captured var 'task' in concurrently-executing code
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:25: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
[6/21] Compiling SwiftlyNetFlex NetworkRouter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:33:26: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
31 |
32 | private let queue = DispatchQueue(label: "NetworkConnectivityMonitor")
33 | private let monitor: NWPathMonitor
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | private(set) var isConnected = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:37:45: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
35 | private(set) var isConnected = false
36 | private(set) var isExpensive = false
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
| `- error: 'NWInterface' is only available in macOS 10.14 or newer
38 |
39 | private init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:66:34: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static property
67 | .other,
68 | .wifi,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:64:11: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:40:19: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
38 |
39 | private init() {
| `- note: add @available attribute to enclosing initializer
40 | monitor = NWPathMonitor()
| |- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:51:44: error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
50 |
51 | self.isConnected = path.status != .unsatisfied
| |- error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:53:42: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
:
51 | self.isConnected = path.status != .unsatisfied
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
| |- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
54 | }
55 | monitor.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|64 |
|65 |
|66 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|97 |
|98 |
|99 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:34: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:51: warning: reference to captured var 'task' in concurrently-executing code
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: reference to captured var 'task' in concurrently-executing code
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:25: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
[7/22] Compiling SwiftlyNetFlex EndPointType.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/22] Compiling SwiftlyNetFlex HTTPMethod.swift
[9/22] Compiling SwiftlyNetFlex NetworkResponse.swift
[10/22] Compiling SwiftlyNetFlex CompletionRequest.swift
[11/22] Compiling SwiftlyNetFlex URLParameterEncoding.swift
[12/22] Compiling SwiftlyNetFlex FailureData.swift
[13/22] Compiling SwiftlyNetFlex NetworkEnvironment.swift
[14/22] Compiling SwiftlyNetFlex NetworkRequestError.swift
[15/22] Emitting module SwiftlyNetFlex
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:33:26: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
31 |
32 | private let queue = DispatchQueue(label: "NetworkConnectivityMonitor")
33 | private let monitor: NWPathMonitor
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | private(set) var isConnected = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:37:45: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
35 | private(set) var isConnected = false
36 | private(set) var isExpensive = false
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
| `- error: 'NWInterface' is only available in macOS 10.14 or newer
38 |
39 | private init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:66:34: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static property
67 | .other,
68 | .wifi,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:64:11: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
[16/22] Compiling SwiftlyNetFlex HTTPTask.swift
[17/22] Compiling SwiftlyNetFlex Log.swift
[18/22] Compiling SwiftlyNetFlex ParserNetworkData.swift
[19/22] Compiling SwiftlyNetFlex ResultRequest.swift
[20/22] Compiling SwiftlyNetFlex JSONParameterEncoder.swift
[21/22] Compiling SwiftlyNetFlex ParameterEncoding.swift
[22/22] Compiling SwiftlyNetFlex TokenAuthorizator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:70:21: warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
| `- warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
71 | return
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:76:17: warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
74 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
75 | self.requests.append(data)
76 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
| `- warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
77 |
78 | self.refreshToken(router: router, using: self.configuration) { [weak self] result in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:84:38: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
82 | self?.retryQueuedRequests(token: data)
83 |
84 | case .errorLocal(let error):
| `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
85 | self?.configuration.onTokenRefreshFailed?()
86 | self?.requests.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:88:40: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
86 | self?.requests.removeAll()
87 |
88 | case .errorNetwork(let error):
| `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
89 | self?.configuration.onTokenRefreshFailed?()
90 | self?.requests.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:68:58: warning: capture of 'router' with non-sendable type 'any NetworkRouterProtocol' in a '@Sendable' closure
66 |
67 | guard self.requests.arrayValues.isEmpty else {
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
| `- warning: capture of 'router' with non-sendable type 'any NetworkRouterProtocol' in a '@Sendable' closure
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:30:17: note: protocol 'NetworkRouterProtocol' does not conform to the 'Sendable' protocol
28 |
29 | // MARK: - NetworkRouter
30 | public protocol NetworkRouterProtocol: AnyObject {
| `- note: protocol 'NetworkRouterProtocol' does not conform to the 'Sendable' protocol
31 | func request<T: Codable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T
32 | func request<T: Codable>(dataType: T.Type, _ route: EndPointType) async throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:68:73: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
66 |
67 | guard self.requests.arrayValues.isEmpty else {
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:68:106: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
66 |
67 | guard self.requests.arrayValues.isEmpty else {
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/20] Compiling SwiftlyNetFlex ParserNetworkData.swift
[3/20] Compiling SwiftlyNetFlex ResultRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/20] Compiling SwiftlyNetFlex HTTPTask.swift
[5/20] Compiling SwiftlyNetFlex Log.swift
[6/20] Compiling SwiftlyNetFlex NetworkEnvironment.swift
[7/20] Compiling SwiftlyNetFlex NetworkRequestError.swift
[8/20] Compiling SwiftlyNetFlex EndPointType.swift
[9/20] Compiling SwiftlyNetFlex HTTPMethod.swift
[10/20] Compiling SwiftlyNetFlex NetworkResponse.swift
[11/20] Compiling SwiftlyNetFlex CompletionRequest.swift
[12/20] Compiling SwiftlyNetFlex URLParameterEncoding.swift
[13/20] Compiling SwiftlyNetFlex FailureData.swift
[14/20] Compiling SwiftlyNetFlex NetworkConnectivityManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:33:26: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
31 |
32 | private let queue = DispatchQueue(label: "NetworkConnectivityMonitor")
33 | private let monitor: NWPathMonitor
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | private(set) var isConnected = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:37:45: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
35 | private(set) var isConnected = false
36 | private(set) var isExpensive = false
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
| `- error: 'NWInterface' is only available in macOS 10.14 or newer
38 |
39 | private init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:66:34: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static property
67 | .other,
68 | .wifi,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:64:11: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:40:19: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
38 |
39 | private init() {
| `- note: add @available attribute to enclosing initializer
40 | monitor = NWPathMonitor()
| |- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:51:44: error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
50 |
51 | self.isConnected = path.status != .unsatisfied
| |- error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:53:42: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
:
51 | self.isConnected = path.status != .unsatisfied
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
| |- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
54 | }
55 | monitor.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|64 |
|65 |
|66 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|97 |
|98 |
|99 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:34: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:51: warning: reference to captured var 'task' in concurrently-executing code
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: reference to captured var 'task' in concurrently-executing code
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:25: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
[15/20] Compiling SwiftlyNetFlex NetworkRouter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:33:26: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
31 |
32 | private let queue = DispatchQueue(label: "NetworkConnectivityMonitor")
33 | private let monitor: NWPathMonitor
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | private(set) var isConnected = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:37:45: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
35 | private(set) var isConnected = false
36 | private(set) var isExpensive = false
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
| `- error: 'NWInterface' is only available in macOS 10.14 or newer
38 |
39 | private init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:66:34: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static property
67 | .other,
68 | .wifi,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:64:11: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:40:19: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
38 |
39 | private init() {
| `- note: add @available attribute to enclosing initializer
40 | monitor = NWPathMonitor()
| |- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:51:44: error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
50 |
51 | self.isConnected = path.status != .unsatisfied
| |- error: conformance of 'NWPath.Status' to 'Equatable' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:53:42: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
45 | }
46 |
47 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
48 | monitor.pathUpdateHandler = { [weak self] path in
49 | guard let self = self else { return }
:
51 | self.isConnected = path.status != .unsatisfied
52 | self.isExpensive = path.isExpensive
53 | self.currentConnectionType = NWInterface.InterfaceType.allCases.filter { path.usesInterfaceType($0) }.first
| |- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
54 | }
55 | monitor.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:66:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
63 |
64 | // MARK: Modern Concurrency Wrapping
65 | public func request<T: Codable&Sendable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
66 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|64 |
|65 |
|66 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
67 | request(route, result: { (result: ResultRequestCase<T>) in
68 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:99:51: note: expanded code originates here
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: add @available attribute to enclosing generic class
41 |
42 | // MARK: Dependencies
:
96 | }
97 |
98 | public func request<T: Codable&Sendable>(dataType: T.Type, _ route: EndPointType) async throws -> T {
| `- note: add @available attribute to enclosing instance method
99 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift
|97 |
|98 |
|99 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------
100 | request(route, resultHandler: { (result: ResultRequestCase<T>) in
101 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:34: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>?' in a '@Sendable' closure
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:123:51: warning: reference to captured var 'task' in concurrently-executing code
121 |
122 | task = session.dataTask(with: request) { [weak self] data, response, error in
123 | guard let self = self, let task = task, (error as NSError?)?.code != -999 else {
| `- warning: reference to captured var 'task' in concurrently-executing code
124 | Log.error("Router: Task completion result invoke faild \nMaybe self or task is nil")
125 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:25: warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
38 | }
39 |
40 | public final class NetworkRouter<Config: TokenRefreshConfiguration>: NSObject, NetworkRouterProtocol where Config.ResponseType: Codable {
| `- note: generic class 'NetworkRouter' does not conform to the 'Sendable' protocol
41 |
42 | // MARK: Dependencies
:
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'NetworkRouter<Config>' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:81: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:131:100: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
129 |
130 | self.queue.async { [weak task] in
131 | self.tokenAuthorizator.updateTokens(router: self, with: route, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | guard let task = task else { return }
133 | self.tasks.cancelAll(where: { $0 == task })
[16/20] Compiling SwiftlyNetFlex JSONParameterEncoder.swift
[17/20] Compiling SwiftlyNetFlex ParameterEncoding.swift
[18/20] Compiling SwiftlyNetFlex AtomicArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:31: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:48:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
46 | public func removeAll() {
47 | dispatchQueue.async(flags: .barrier) {
48 | self.array.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
49 | }
50 | }
[19/20] Compiling SwiftlyNetFlex SafeArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:34:31: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
32 | public func append(_ value: T) {
33 | dispatchQueue.async(flags: .barrier) {
34 | self.array.append(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/SafedCollections/SafeArray.swift:48:13: warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
25 | import Foundation
26 |
27 | final class SafeArray<T> {
| `- note: generic class 'SafeArray' does not conform to the 'Sendable' protocol
28 |
29 | private var array = [T]()
:
46 | public func removeAll() {
47 | dispatchQueue.async(flags: .barrier) {
48 | self.array.removeAll()
| `- warning: capture of 'self' with non-sendable type 'SafeArray<T>' in a '@Sendable' closure
49 | }
50 | }
[20/20] Emitting module SwiftlyNetFlex
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:33:26: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
31 |
32 | private let queue = DispatchQueue(label: "NetworkConnectivityMonitor")
33 | private let monitor: NWPathMonitor
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | private(set) var isConnected = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:37:45: error: 'NWInterface' is only available in macOS 10.14 or newer
26 | import Network
27 |
28 | public final class NetworkMonitor: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
29 |
30 | public static let shared = NetworkMonitor()
:
35 | private(set) var isConnected = false
36 | private(set) var isExpensive = false
37 | private(set) var currentConnectionType: NWInterface.InterfaceType?
| `- error: 'NWInterface' is only available in macOS 10.14 or newer
38 |
39 | private init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:66:34: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing static property
67 | .other,
68 | .wifi,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkConnectivityManager.swift:64:11: error: 'NWInterface' is only available in macOS 10.14 or newer
62 | }
63 |
64 | extension NWInterface.InterfaceType: @retroactive CaseIterable {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing extension
65 |
66 | public static let allCases: [NWInterface.InterfaceType] = [
[21/21] Compiling SwiftlyNetFlex TokenAuthorizator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:70:21: warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
| `- warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
71 | return
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:76:17: warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
74 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
75 | self.requests.append(data)
76 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
| `- warning: initialization of immutable value 'values' was never used; consider replacing with assignment to '_' or removing it
77 |
78 | self.refreshToken(router: router, using: self.configuration) { [weak self] result in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:84:38: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
82 | self?.retryQueuedRequests(token: data)
83 |
84 | case .errorLocal(let error):
| `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
85 | self?.configuration.onTokenRefreshFailed?()
86 | self?.requests.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:88:40: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
86 | self?.requests.removeAll()
87 |
88 | case .errorNetwork(let error):
| `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
89 | self?.configuration.onTokenRefreshFailed?()
90 | self?.requests.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:68:58: warning: capture of 'router' with non-sendable type 'any NetworkRouterProtocol' in a '@Sendable' closure
66 |
67 | guard self.requests.arrayValues.isEmpty else {
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
| `- warning: capture of 'router' with non-sendable type 'any NetworkRouterProtocol' in a '@Sendable' closure
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/NetworkRouter.swift:30:17: note: protocol 'NetworkRouterProtocol' does not conform to the 'Sendable' protocol
28 |
29 | // MARK: - NetworkRouter
30 | public protocol NetworkRouterProtocol: AnyObject {
| `- note: protocol 'NetworkRouterProtocol' does not conform to the 'Sendable' protocol
31 | func request<T: Codable>(_ dataType: T.Type, _ route: EndPointType) async throws -> T
32 | func request<T: Codable>(dataType: T.Type, _ route: EndPointType) async throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:68:73: warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
66 |
67 | guard self.requests.arrayValues.isEmpty else {
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
| `- warning: capture of 'route' with non-sendable type 'any EndPointType' in a '@Sendable' closure
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/EndPoint/EndPointType.swift:27:17: note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
25 | import Foundation
26 |
27 | public protocol EndPointType {
| `- note: protocol 'EndPointType' does not conform to the 'Sendable' protocol
28 | var baseURL: URL { get }
29 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyNetFlex/Service/TokenAuthorizator.swift:68:106: warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
66 |
67 | guard self.requests.arrayValues.isEmpty else {
68 | let data = TokenAuthorizatorData(router: router, route: route, isLog: isLog, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'NetworkRouterCompletion' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | self.requests.append(data)
70 | let values = self.requests.arrayValues.compactMap({ $0.route.path }).joined(separator: ", ")
BUILD FAILURE 6.1 macosSpm