Build Information
Successful build of MoyaNC with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 7
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BarredEwe/MoyaNetworkClient.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BarredEwe/MoyaNetworkClient
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e6c90a9 Merge pull request #7 from BarredEwe/cacheManualKey
Cloned https://github.com/BarredEwe/MoyaNetworkClient.git
Revision (git rev-parse @):
e6c90a91f809c2b66a51f68055173b090e99f4da
SUCCESS checkout https://github.com/BarredEwe/MoyaNetworkClient.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/BarredEwe/MoyaNetworkClient.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-6F35C1178C84523A.txt
[7/39] Emitting module Alamofire
[8/42] Compiling Alamofire HTTPHeaders.swift
[9/42] Compiling Alamofire HTTPMethod.swift
[10/42] Compiling Alamofire MultipartFormData.swift
[11/42] Compiling Alamofire MultipartUpload.swift
[12/42] Compiling Alamofire ResponseSerialization.swift
[13/42] Compiling Alamofire Result+Alamofire.swift
[14/42] Compiling Alamofire RetryPolicy.swift
[15/42] Compiling Alamofire StringEncoding+Alamofire.swift
[16/42] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[17/42] Compiling Alamofire URLEncodedFormEncoder.swift
[18/42] Compiling Alamofire URLRequest+Alamofire.swift
[19/42] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[20/42] Compiling Alamofire Validation.swift
[21/42] Compiling Alamofire AFError.swift
[22/42] Compiling Alamofire Alamofire.swift
[23/42] Compiling Alamofire AlamofireExtended.swift
[24/42] Compiling Alamofire AuthenticationInterceptor.swift
[25/42] Compiling Alamofire ParameterEncoding.swift
[26/42] Compiling Alamofire Protected.swift
[27/42] Compiling Alamofire RedirectHandler.swift
[28/42] Compiling Alamofire Request.swift
[29/42] Compiling Alamofire ServerTrustEvaluation.swift
[30/42] Compiling Alamofire Session.swift
[31/42] Compiling Alamofire SessionDelegate.swift
[32/42] Compiling Alamofire CachedResponseHandler.swift
[33/42] Compiling Alamofire Combine.swift
[34/42] Compiling Alamofire DispatchQueue+Alamofire.swift
[35/42] Compiling Alamofire EventMonitor.swift
[36/42] Compiling Alamofire RequestInterceptor.swift
[37/42] Compiling Alamofire RequestTaskMap.swift
[38/42] Compiling Alamofire Response.swift
[39/42] Compiling Alamofire NetworkReachabilityManager.swift
[40/42] Compiling Alamofire Notifications.swift
[41/42] Compiling Alamofire OperationQueue+Alamofire.swift
[42/42] Compiling Alamofire ParameterEncoder.swift
[43/64] Compiling Moya Response.swift
[44/64] Compiling Moya TargetType.swift
[45/66] Compiling Moya MoyaProvider+Defaults.swift
[46/66] Compiling Moya MoyaProvider+Internal.swift
[47/66] Compiling Moya MoyaProvider.swift
[48/66] Compiling Moya MultiTarget.swift
[49/66] Compiling Moya MultipartFormData.swift
[50/66] Compiling Moya NetworkLoggerPlugin.swift
[51/66] Compiling Moya RequestTypeWrapper.swift
[52/66] Compiling Moya URLRequest+Encoding.swift
[53/66] Compiling Moya ValidationType.swift
[54/66] Compiling Moya Task.swift
[55/66] Compiling Moya URL+Moya.swift
[56/66] Compiling Moya CredentialsPlugin.swift
[57/66] Compiling Moya NetworkActivityPlugin.swift
[58/66] Compiling Moya Plugin.swift
[59/66] Compiling Moya AccessTokenPlugin.swift
[60/66] Emitting module Moya
[61/66] Compiling Moya Image.swift
[62/66] Compiling Moya Moya+Alamofire.swift
[63/66] Compiling Moya MoyaError.swift
[64/66] Compiling Moya AnyEncodable.swift
[65/66] Compiling Moya Cancellable.swift
[66/66] Compiling Moya Endpoint.swift
[67/74] Compiling MoyaNC MoyaTargetType.swift
[68/74] Compiling MoyaNC Route.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:35:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
:
33 | public static let delete = HTTPMethod(rawValue: "DELETE")
34 | /// `GET` method.
35 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' 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
36 | /// `HEAD` method.
37 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:43:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
:
41 | public static let patch = HTTPMethod(rawValue: "PATCH")
42 | /// `POST` method.
43 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' 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
44 | /// `PUT` method.
45 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:45:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
:
43 | public static let post = HTTPMethod(rawValue: "POST")
44 | /// `PUT` method.
45 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' 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
46 | /// `TRACE` method.
47 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:33:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
32 | /// `DELETE` method.
33 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' 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
34 | /// `GET` method.
35 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:39:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
:
37 | public static let head = HTTPMethod(rawValue: "HEAD")
38 | /// `OPTIONS` method.
39 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' 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
40 | /// `PATCH` method.
41 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:37:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
:
35 | public static let get = HTTPMethod(rawValue: "GET")
36 | /// `HEAD` method.
37 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' 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
38 | /// `OPTIONS` method.
39 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:41:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
:
39 | public static let options = HTTPMethod(rawValue: "OPTIONS")
40 | /// `PATCH` method.
41 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' 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
42 | /// `POST` method.
43 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:47:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
:
45 | public static let put = HTTPMethod(rawValue: "PUT")
46 | /// `TRACE` method.
47 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' 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
48 |
49 | public let rawValue: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift:31:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | ///
28 | /// See https://tools.ietf.org/html/rfc7231#section-4.3
29 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 | /// `CONNECT` method.
31 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' 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
32 | /// `DELETE` method.
33 | public static let delete = HTTPMethod(rawValue: "DELETE")
[69/74] Compiling MoyaNC None.swift
[70/74] Compiling MoyaNC Synced.swift
[71/74] Compiling MoyaNC MoyaNCError.swift
[72/74] Compiling MoyaNC Request.swift
[73/74] Compiling MoyaNC MoyaNC.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/NetworkLoggerPlugin.swift:183:27: warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'NetworkLoggerPlugin.Configuration.LogOptions' may have shared mutable state; this is an error in the Swift 6 language mode
155 |
156 | public extension NetworkLoggerPlugin.Configuration {
157 | struct LogOptions: OptionSet {
| `- note: consider making struct 'LogOptions' conform to the 'Sendable' protocol
158 | public let rawValue: Int
159 | public init(rawValue: Int) { self.rawValue = rawValue }
:
181 | public static let `default`: LogOptions = [requestMethod, requestHeaders]
182 | /// All components will be logged.
183 | public static let verbose: LogOptions = [requestMethod, requestHeaders, requestBody,
| |- warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'NetworkLoggerPlugin.Configuration.LogOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'verbose' 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
184 | successResponseBody, errorResponseBody]
185 | }
[74/74] Emitting module MoyaNC
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/NetworkLoggerPlugin.swift:183:27: warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'NetworkLoggerPlugin.Configuration.LogOptions' may have shared mutable state; this is an error in the Swift 6 language mode
155 |
156 | public extension NetworkLoggerPlugin.Configuration {
157 | struct LogOptions: OptionSet {
| `- note: consider making struct 'LogOptions' conform to the 'Sendable' protocol
158 | public let rawValue: Int
159 | public init(rawValue: Int) { self.rawValue = rawValue }
:
181 | public static let `default`: LogOptions = [requestMethod, requestHeaders]
182 | /// All components will be logged.
183 | public static let verbose: LogOptions = [requestMethod, requestHeaders, requestBody,
| |- warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'NetworkLoggerPlugin.Configuration.LogOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'verbose' 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
184 | successResponseBody, errorResponseBody]
185 | }
[75/80] Compiling FutureMoyaNC MoyaNC+Future.swift
[76/80] Compiling FutureMoyaNC MoyaNCError+Future.swift
[77/80] Compiling FutureMoyaNC FutureResult+ParallelsBuilders.swift
[78/80] Compiling FutureMoyaNC Future+Result.swift
[79/80] Compiling FutureMoyaNC Future.swift
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:56:17: warning: capture of 'future' with non-sendable type 'Future<Response>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct Future<Response> {
| `- note: consider making generic struct 'Future' conform to the 'Sendable' protocol
4 | public typealias Callback = (Response) -> Void
5 | public let run: (@escaping Callback) -> Void
:
54 | return Future { cb in
55 | queue.asyncAfter(deadline: .now() + delay) {
56 | future.run { value in
| `- warning: capture of 'future' with non-sendable type 'Future<Response>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | completionQueue.async {
58 | cb(value)
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:25: warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| |- warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:25: warning: capture of 'cb' with non-sendable type '(Response) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| |- warning: capture of 'cb' with non-sendable type '(Response) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:25: warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| |- warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:28: warning: capture of 'value' with non-sendable type 'Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct Future<Response> {
| `- note: consider making generic parameter 'Response' conform to the 'Sendable' protocol
4 | public typealias Callback = (Response) -> Void
5 | public let run: (@escaping Callback) -> Void
:
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| `- warning: capture of 'value' with non-sendable type 'Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | }
60 | }
[80/80] Emitting module FutureMoyaNC
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:56:17: warning: capture of 'future' with non-sendable type 'Future<Response>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct Future<Response> {
| `- note: consider making generic struct 'Future' conform to the 'Sendable' protocol
4 | public typealias Callback = (Response) -> Void
5 | public let run: (@escaping Callback) -> Void
:
54 | return Future { cb in
55 | queue.asyncAfter(deadline: .now() + delay) {
56 | future.run { value in
| `- warning: capture of 'future' with non-sendable type 'Future<Response>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | completionQueue.async {
58 | cb(value)
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:25: warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| |- warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:25: warning: capture of 'cb' with non-sendable type '(Response) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| |- warning: capture of 'cb' with non-sendable type '(Response) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:25: warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| |- warning: capture of 'cb' with non-sendable type '(Response) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Future.swift:58:28: warning: capture of 'value' with non-sendable type 'Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct Future<Response> {
| `- note: consider making generic parameter 'Response' conform to the 'Sendable' protocol
4 | public typealias Callback = (Response) -> Void
5 | public let run: (@escaping Callback) -> Void
:
56 | future.run { value in
57 | completionQueue.async {
58 | cb(value)
| `- warning: capture of 'value' with non-sendable type 'Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | }
60 | }
[81/89] Compiling CacheMoyaNC MoyaNCFuture+Cache.swift
[82/89] Compiling CacheMoyaNC SimpleCancellable.swift
[83/89] Compiling CacheMoyaNC MoyaCachePolicy.swift
[84/89] Compiling CacheMoyaNC CachingKey.swift
[85/89] Compiling CacheMoyaNC MemoryCacheStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/CacheStorage/MemoryCacheStorage.swift:6:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MemoryCacheStorage' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Default In-memory cache implementation.
4 | public final class MemoryCacheStorage: CacheStorage {
| `- note: class 'MemoryCacheStorage' does not conform to the 'Sendable' protocol
5 |
6 | public static let shared = MemoryCacheStorage()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MemoryCacheStorage' 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
7 |
8 | public var storage: [CachingKey: Codable] = [:]
[86/89] Compiling CacheMoyaNC CacheTarget.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/CacheStorage/MemoryCacheStorage.swift:6:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MemoryCacheStorage' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Default In-memory cache implementation.
4 | public final class MemoryCacheStorage: CacheStorage {
| `- note: class 'MemoryCacheStorage' does not conform to the 'Sendable' protocol
5 |
6 | public static let shared = MemoryCacheStorage()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MemoryCacheStorage' 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
7 |
8 | public var storage: [CachingKey: Codable] = [:]
[87/89] Compiling CacheMoyaNC CacheStorage.swift
[88/89] Compiling CacheMoyaNC MoyaNC+Cache.swift
[89/89] Emitting module CacheMoyaNC
/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/CacheStorage/MemoryCacheStorage.swift:6:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MemoryCacheStorage' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Default In-memory cache implementation.
4 | public final class MemoryCacheStorage: CacheStorage {
| `- note: class 'MemoryCacheStorage' does not conform to the 'Sendable' protocol
5 |
6 | public static let shared = MemoryCacheStorage()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MemoryCacheStorage' 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
7 |
8 | public var storage: [CachingKey: Codable] = [:]
Build complete! (57.21s)
Fetching https://github.com/ReactiveX/RxSwift.git
Fetching https://github.com/Moya/ReactiveSwift.git
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/Moya/Moya.git
[1/45863] Fetching reactiveswift
[919/71064] Fetching reactiveswift, moya
[1378/99844] Fetching reactiveswift, moya, alamofire
[12207/151260] Fetching reactiveswift, moya, alamofire, rxswift
Fetched https://github.com/Moya/Moya.git from cache (6.14s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (6.14s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (6.14s)
Fetched https://github.com/Moya/ReactiveSwift.git from cache (6.14s)
Computing version for https://github.com/Moya/Moya.git
Computed https://github.com/Moya/Moya.git at 14.0.0 (0.69s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 5.1.1 (0.72s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (0.75s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.2.2 (0.68s)
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 5.1.1
Creating working copy for https://github.com/Moya/Moya.git
Working copy of https://github.com/Moya/Moya.git resolved at 14.0.0
Creating working copy for https://github.com/Moya/ReactiveSwift.git
Working copy of https://github.com/Moya/ReactiveSwift.git resolved at 6.1.0
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.2.2
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/MoyaNC/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/MoyaNC/fastlane': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/fastlane': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/fastlane': File not found.
Build complete.
{
"dependencies" : [
{
"identity" : "moya",
"requirement" : {
"range" : [
{
"lower_bound" : "14.0.0",
"upper_bound" : "15.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Moya/Moya.git"
}
],
"manifest_display_name" : "MoyaNC",
"name" : "MoyaNC",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
}
],
"products" : [
{
"name" : "MoyaNC",
"targets" : [
"MoyaNC"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CacheMoyaNC",
"targets" : [
"CacheMoyaNC"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "FutureMoyaNC",
"targets" : [
"FutureMoyaNC"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MoyaNC",
"module_type" : "SwiftTarget",
"name" : "MoyaNC",
"path" : "Sources/MoyaNC",
"product_dependencies" : [
"Moya"
],
"product_memberships" : [
"MoyaNC",
"CacheMoyaNC",
"FutureMoyaNC"
],
"sources" : [
"Helpers/Synced.swift",
"Models/MoyaNCError.swift",
"Models/None.swift",
"Models/Request.swift",
"Models/Route.swift",
"MoyaNC.swift",
"Protocols/MoyaTargetType.swift"
],
"type" : "library"
},
{
"c99name" : "FutureMoyaNC",
"module_type" : "SwiftTarget",
"name" : "FutureMoyaNC",
"path" : "Sources/FutureMoyaNC",
"product_memberships" : [
"CacheMoyaNC",
"FutureMoyaNC"
],
"sources" : [
"Future+Result.swift",
"Future.swift",
"FutureResult+ParallelsBuilders.swift",
"MoyaNC+Future.swift",
"MoyaNCError+Future.swift"
],
"target_dependencies" : [
"MoyaNC"
],
"type" : "library"
},
{
"c99name" : "CacheMoyaNC",
"module_type" : "SwiftTarget",
"name" : "CacheMoyaNC",
"path" : "Sources/CacheMoyaNC",
"product_memberships" : [
"CacheMoyaNC"
],
"sources" : [
"CacheStorage/CacheStorage.swift",
"CacheStorage/MemoryCacheStorage.swift",
"CacheTarget.swift",
"CachingKey.swift",
"Extensions/MoyaNC+Cache.swift",
"Extensions/MoyaNCFuture+Cache.swift",
"MoyaCachePolicy.swift",
"SimpleCancellable.swift"
],
"target_dependencies" : [
"MoyaNC",
"FutureMoyaNC"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/MoyaNC/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/MoyaNC/fastlane': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/fastlane': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/FutureMoyaNC/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/fastlane': File not found.
Done.