Build Information
Successful build of NetworkKit, reference master (8fa2cf
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 05:39:20 UTC.
Swift 6 data race errors: 1
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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cs4alhaider/NetworkKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cs4alhaider/NetworkKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 8fa2cf2 Update README.md
Cloned https://github.com/cs4alhaider/NetworkKit.git
Revision (git rev-parse @):
8fa2cf2b83833e188bc8ca820296f9679f1bbf54
SUCCESS checkout https://github.com/cs4alhaider/NetworkKit.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "networkkit",
"name": "NetworkKit",
"url": "https://github.com/cs4alhaider/NetworkKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NetworkKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/cs4alhaider/NetworkKit.git
[1/201] Fetching networkkit
Fetched https://github.com/cs4alhaider/NetworkKit.git from cache (0.76s)
Creating working copy for https://github.com/cs4alhaider/NetworkKit.git
Working copy of https://github.com/cs4alhaider/NetworkKit.git resolved at master (8fa2cf2)
warning: '.resolve-product-dependencies': dependency 'networkkit' 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/cs4alhaider/NetworkKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/21] Compiling NetworkKit Path.swift
[4/21] Compiling NetworkKit Router.swift
[5/22] Compiling NetworkKit Extension+Encodable.swift
[6/22] Compiling NetworkKit Extension+Error.swift
[7/22] Compiling NetworkKit Extension+Collection.swift
[8/22] Compiling NetworkKit Extension+Dictionary.swift
[9/22] Emitting module NetworkKit
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public final class NetworkService {
| `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
11 |
12 | private init() {}
13 | static let shared = NetworkService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // MARK:- public methods
[10/22] Compiling NetworkKit ApiError.swift
[11/22] Compiling NetworkKit Empty.swift
[12/22] Compiling NetworkKit FileExtension.swift
[13/22] Compiling NetworkKit HTTPMethod.swift
[14/22] Compiling NetworkKit Extension+String.swift
[15/22] Compiling NetworkKit Extension+URL.swift
[16/22] Compiling NetworkKit NetworkKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public final class NetworkService {
| `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
11 |
12 | private init() {}
13 | static let shared = NetworkService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // MARK:- public methods
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:88:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | if let error = error {
87 | DispatchQueue.main.async {
88 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
89 | }
90 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:119:16: warning: capture of 'endpoint' with non-sendable type 'any Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | #if DEBUG
119 | if endpoint.isPrintable {
| `- warning: capture of 'endpoint' with non-sendable type 'any Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | print("""
121 | =================================================================
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:11:17: note: protocol 'Endpoint' does not conform to the 'Sendable' protocol
9 |
10 | /// The endpoint interface, any server router should implement this interface to be able to connect
11 | public protocol Endpoint {
| `- note: protocol 'Endpoint' does not conform to the 'Sendable' protocol
12 |
13 | // MARK:- Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:88:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | if let error = error {
87 | DispatchQueue.main.async {
88 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
89 | }
90 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:97:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | guard let response = response as? HTTPURLResponse else {
96 | DispatchQueue.main.async {
97 | completion(.failure(ApiError(message: "HTTP URL Response Error")))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:105:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard Array(200..<300).contains(response.statusCode) else {
104 | DispatchQueue.main.async {
105 | completion(.failure(ApiError(statusCode: response.statusCode, error: ApiError(message: "Error: status code is \(response.statusCode)"))))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:113:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | guard let data = data else {
112 | DispatchQueue.main.async {
113 | completion(.failure(ApiError.nilData))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 | }
115 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:220:17: warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
218 | guard T.self != Empty.self else {
219 | DispatchQueue.main.async {
220 | completion(.success(Empty() as! T))
| |- warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
221 | }
222 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:230:17: warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | let object = try decoder.decode(T.self, from: data)
229 | DispatchQueue.main.async {
230 | completion(.success(object))
| |- warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
231 | }
232 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:230:37: warning: capture of 'object' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 | }
214 |
215 | private func decodeObject<T: Codable>(from data: Data, completion: @escaping DecodedResult<T>) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
216 |
217 | // check if requiring empty response
:
228 | let object = try decoder.decode(T.self, from: data)
229 | DispatchQueue.main.async {
230 | completion(.success(object))
| `- warning: capture of 'object' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | }
232 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:234:17: warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | } catch let error {
233 | DispatchQueue.main.async {
234 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
235 | }
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:230:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
228 | let object = try decoder.decode(T.self, from: data)
229 | DispatchQueue.main.async {
230 | completion(.success(object))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
231 | }
232 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:220:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
218 | guard T.self != Empty.self else {
219 | DispatchQueue.main.async {
220 | completion(.success(Empty() as! T))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:234:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
232 | } catch let error {
233 | DispatchQueue.main.async {
234 | completion(.failure(error))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
235 | }
236 | }
[17/22] Compiling NetworkKit NetworkService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public final class NetworkService {
| `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
11 |
12 | private init() {}
13 | static let shared = NetworkService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // MARK:- public methods
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:88:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | if let error = error {
87 | DispatchQueue.main.async {
88 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
89 | }
90 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:119:16: warning: capture of 'endpoint' with non-sendable type 'any Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |
118 | #if DEBUG
119 | if endpoint.isPrintable {
| `- warning: capture of 'endpoint' with non-sendable type 'any Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | print("""
121 | =================================================================
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:11:17: note: protocol 'Endpoint' does not conform to the 'Sendable' protocol
9 |
10 | /// The endpoint interface, any server router should implement this interface to be able to connect
11 | public protocol Endpoint {
| `- note: protocol 'Endpoint' does not conform to the 'Sendable' protocol
12 |
13 | // MARK:- Properties
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:88:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | if let error = error {
87 | DispatchQueue.main.async {
88 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
89 | }
90 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:97:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | guard let response = response as? HTTPURLResponse else {
96 | DispatchQueue.main.async {
97 | completion(.failure(ApiError(message: "HTTP URL Response Error")))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:105:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard Array(200..<300).contains(response.statusCode) else {
104 | DispatchQueue.main.async {
105 | completion(.failure(ApiError(statusCode: response.statusCode, error: ApiError(message: "Error: status code is \(response.statusCode)"))))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:113:21: warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | guard let data = data else {
112 | DispatchQueue.main.async {
113 | completion(.failure(ApiError.nilData))
| |- warning: capture of 'completion' with non-sendable type 'DataResult' (aka '(Result<Data, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 | }
115 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:220:17: warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
218 | guard T.self != Empty.self else {
219 | DispatchQueue.main.async {
220 | completion(.success(Empty() as! T))
| |- warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
221 | }
222 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:230:17: warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | let object = try decoder.decode(T.self, from: data)
229 | DispatchQueue.main.async {
230 | completion(.success(object))
| |- warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
231 | }
232 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:230:37: warning: capture of 'object' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 | }
214 |
215 | private func decodeObject<T: Codable>(from data: Data, completion: @escaping DecodedResult<T>) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
216 |
217 | // check if requiring empty response
:
228 | let object = try decoder.decode(T.self, from: data)
229 | DispatchQueue.main.async {
230 | completion(.success(object))
| `- warning: capture of 'object' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | }
232 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:234:17: warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 | } catch let error {
233 | DispatchQueue.main.async {
234 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type 'DecodedResult<T>' (aka '(Result<T, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
235 | }
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:230:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
228 | let object = try decoder.decode(T.self, from: data)
229 | DispatchQueue.main.async {
230 | completion(.success(object))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
231 | }
232 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:220:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
218 | guard T.self != Empty.self else {
219 | DispatchQueue.main.async {
220 | completion(.success(Empty() as! T))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:234:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
232 | } catch let error {
233 | DispatchQueue.main.async {
234 | completion(.failure(error))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
235 | }
236 | }
[18/22] Compiling NetworkKit Extensions.swift
[19/22] Compiling NetworkKit FileError.swift
[20/22] Compiling NetworkKit Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public final class NetworkService {
| `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
11 |
12 | private init() {}
13 | static let shared = NetworkService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // MARK:- public methods
[21/22] Compiling NetworkKit Extension+Array.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public final class NetworkService {
| `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
11 |
12 | private init() {}
13 | static let shared = NetworkService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // MARK:- public methods
[22/22] Compiling NetworkKit Typealias.swift
Build complete! (16.57s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NetworkKit",
"name" : "NetworkKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "NetworkKit",
"targets" : [
"NetworkKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NetworkKitTests",
"module_type" : "SwiftTarget",
"name" : "NetworkKitTests",
"path" : "Tests/NetworkKitTests",
"sources" : [
"NetworkKitTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NetworkKit"
],
"type" : "test"
},
{
"c99name" : "NetworkKit",
"module_type" : "SwiftTarget",
"name" : "NetworkKit",
"path" : "Sources/NetworkKit",
"product_memberships" : [
"NetworkKit"
],
"sources" : [
"ApiError.swift",
"Empty.swift",
"Endpoint.swift",
"Extension+Array.swift",
"Extension+Collection.swift",
"Extension+Dictionary.swift",
"Extension+Encodable.swift",
"Extension+Error.swift",
"Extension+String.swift",
"Extension+URL.swift",
"Extensions.swift",
"FileError.swift",
"FileExtension.swift",
"HTTPMethod.swift",
"NetworkKit.swift",
"NetworkService.swift",
"Path.swift",
"Router.swift",
"Typealias.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.