Build Information
Successful build of MoyaNC, reference 3.2.0 (e6c90a
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 08:43:25 UTC.
Swift 6 data race errors: 6
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/BarredEwe/MoyaNetworkClient.git
Reference: 3.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BarredEwe/MoyaNetworkClient
* tag 3.2.0 -> FETCH_HEAD
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 3.2.0
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/Moya/Moya.git
Fetching https://github.com/ReactiveX/RxSwift.git
Fetching https://github.com/Moya/ReactiveSwift.git
[1/45863] Fetching reactiveswift
[919/71105] Fetching reactiveswift, moya
[6469/100894] Fetching reactiveswift, moya, alamofire
[19634/153252] Fetching reactiveswift, moya, alamofire, rxswift
Fetched https://github.com/Moya/Moya.git from cache (6.25s)
Computing version for https://github.com/Moya/Moya.git
[109541/128010] Fetching reactiveswift, alamofire, rxswift
Computed https://github.com/Moya/Moya.git at 14.0.0 (0.66s)
Fetched https://github.com/Moya/ReactiveSwift.git from cache (16.24s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (16.24s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (16.24s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 5.1.1 (0.67s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (0.65s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.2.2 (0.63s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.2.2
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/Moya/Moya.git
Working copy of https://github.com/Moya/Moya.git resolved at 14.0.0
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 5.1.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "moyanetworkclient",
"name": "MoyaNC",
"url": "https://github.com/BarredEwe/MoyaNetworkClient.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MoyaNetworkClient",
"dependencies": [
{
"identity": "moya",
"name": "Moya",
"url": "https://github.com/Moya/Moya.git",
"version": "14.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Moya",
"dependencies": [
{
"identity": "alamofire",
"name": "Alamofire",
"url": "https://github.com/Alamofire/Alamofire.git",
"version": "5.10.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire",
"dependencies": [
]
},
{
"identity": "reactiveswift",
"name": "ReactiveSwift",
"url": "https://github.com/Moya/ReactiveSwift.git",
"version": "6.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ReactiveSwift",
"dependencies": [
]
},
{
"identity": "rxswift",
"name": "RxSwift",
"url": "https://github.com/ReactiveX/RxSwift.git",
"version": "5.1.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RxSwift",
"dependencies": [
]
},
{
"identity": "quick",
"name": "Quick",
"url": "https://github.com/Quick/Quick.git",
"version": "2.2.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Quick",
"dependencies": [
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
}
]
},
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
},
{
"identity": "ohhttpstubs",
"name": "OHHTTPStubs",
"url": "https://github.com/AliSoftware/OHHTTPStubs.git",
"version": "9.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OHHTTPStubs",
"dependencies": [
]
},
{
"identity": "rocket",
"name": "Rocket",
"url": "https://github.com/shibapm/Rocket",
"version": "1.3.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Rocket",
"dependencies": [
{
"identity": "yams",
"name": "Yams",
"url": "https://github.com/jpsim/Yams",
"version": "5.1.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Yams",
"dependencies": [
]
},
{
"identity": "logger",
"name": "Logger",
"url": "https://github.com/shibapm/Logger",
"version": "0.2.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Logger",
"dependencies": [
]
},
{
"identity": "swiftshell",
"name": "SwiftShell",
"url": "https://github.com/kareman/SwiftShell",
"version": "5.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftShell",
"dependencies": [
]
},
{
"identity": "packageconfig",
"name": "PackageConfig",
"url": "https://github.com/shibapm/PackageConfig.git",
"version": "1.1.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PackageConfig",
"dependencies": [
]
}
]
}
]
}
]
}
]
}
Fetching https://github.com/BarredEwe/MoyaNetworkClient.git
[1/1165] Fetching moyanetworkclient
Fetched https://github.com/BarredEwe/MoyaNetworkClient.git from cache (1.26s)
Fetching https://github.com/Moya/Moya.git from cache
Fetched https://github.com/Moya/Moya.git from cache (0.74s)
Computing version for https://github.com/Moya/Moya.git
Computed https://github.com/Moya/Moya.git at 14.0.1 (0.63s)
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/shibapm/Rocket
Fetching https://github.com/AliSoftware/OHHTTPStubs.git
Fetching https://github.com/ReactiveX/RxSwift.git from cache
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetching https://github.com/Moya/ReactiveSwift.git from cache
[1/1386] Fetching rocket
[445/9274] Fetching rocket, ohhttpstubs
[2413/23997] Fetching rocket, ohhttpstubs, quick
Fetched https://github.com/ReactiveX/RxSwift.git from cache (1.33s)
Fetched https://github.com/AliSoftware/OHHTTPStubs.git from cache (1.33s)
[5803/16109] Fetching rocket, quick
Fetched https://github.com/Quick/Quick.git from cache (1.59s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (1.59s)
Fetched https://github.com/Moya/ReactiveSwift.git from cache (1.59s)
[1/19218] Fetching nimble
Fetched https://github.com/Quick/Nimble.git from cache (2.61s)
Fetched https://github.com/shibapm/Rocket from cache (2.61s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (0.03s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs.git
Computed https://github.com/AliSoftware/OHHTTPStubs.git at 9.1.0 (0.64s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (0.64s)
Computing version for https://github.com/shibapm/Rocket
Computed https://github.com/shibapm/Rocket at 1.3.0 (1.01s)
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/kareman/SwiftShell
Fetching https://github.com/shibapm/Logger
Fetching https://github.com/shibapm/PackageConfig.git
[1/116] Fetching logger
[98/4979] Fetching logger, swiftshell
[99/5559] Fetching logger, swiftshell, packageconfig
[1330/15461] Fetching logger, swiftshell, packageconfig, yams
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.81s)
[798/14881] Fetching logger, swiftshell, yams
Fetched https://github.com/kareman/SwiftShell from cache (2.19s)
Fetched https://github.com/shibapm/Logger from cache (2.18s)
Fetched https://github.com/jpsim/Yams from cache (2.19s)
Computing version for https://github.com/kareman/SwiftShell
Computed https://github.com/kareman/SwiftShell at 5.1.0 (0.64s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (2.52s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 5.1.3 (0.03s)
Computing version for https://github.com/shibapm/PackageConfig.git
Computed https://github.com/shibapm/PackageConfig.git at 1.1.3 (0.67s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.1.3 (0.67s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.65s)
Computing version for https://github.com/Alamofire/Alamofire.git
warning: 'alamofire': /Package.swift:28:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
26 | import PackageDescription
27 |
28 | let package = Package(name: "Alamofire",
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
29 | platforms: [.macOS(.v10_13),
30 | .iOS(.v12),
Computed https://github.com/Alamofire/Alamofire.git at 5.10.1 (0.51s)
Creating working copy for https://github.com/BarredEwe/MoyaNetworkClient.git
Working copy of https://github.com/BarredEwe/MoyaNetworkClient.git resolved at 3.2.0 (e6c90a9)
Creating working copy for https://github.com/shibapm/Rocket
Working copy of https://github.com/shibapm/Rocket resolved at 1.3.0
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 5.1.3
Creating working copy for https://github.com/Moya/Moya.git
Working copy of https://github.com/Moya/Moya.git resolved at 14.0.1
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/kareman/SwiftShell
Working copy of https://github.com/kareman/SwiftShell resolved at 5.1.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.1
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/AliSoftware/OHHTTPStubs.git
Working copy of https://github.com/AliSoftware/OHHTTPStubs.git resolved at 9.1.0
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.1.3
Creating working copy for https://github.com/shibapm/PackageConfig.git
Working copy of https://github.com/shibapm/PackageConfig.git resolved at 1.1.3
warning: 'alamofire': /Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire/Package.swift:28:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
26 | import PackageDescription
27 |
28 | let package = Package(name: "Alamofire",
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
29 | platforms: [.macOS(.v10_13),
30 | .iOS(.v12),
warning: '.resolve-product-dependencies': dependency 'moyanetworkclient' is not used by any target
Found 1 product dependencies
- Moya
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/BarredEwe/MoyaNetworkClient.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/6] Write sources
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/39] Compiling Alamofire StringEncoding+Alamofire.swift
[8/39] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[9/39] Compiling Alamofire URLEncodedFormEncoder.swift
[10/39] Compiling Alamofire RequestInterceptor.swift
[11/39] Compiling Alamofire RequestTaskMap.swift
[12/39] Compiling Alamofire Response.swift
[13/42] Emitting module Alamofire
[14/42] Compiling Alamofire AFError.swift
[15/42] Compiling Alamofire Alamofire.swift
[16/42] Compiling Alamofire AlamofireExtended.swift
[17/42] Compiling Alamofire AuthenticationInterceptor.swift
[18/42] Compiling Alamofire ResponseSerialization.swift
[19/42] Compiling Alamofire Result+Alamofire.swift
[20/42] Compiling Alamofire RetryPolicy.swift
[21/42] Compiling Alamofire HTTPHeaders.swift
[22/42] Compiling Alamofire HTTPMethod.swift
[23/42] Compiling Alamofire MultipartFormData.swift
[24/42] Compiling Alamofire MultipartUpload.swift
[25/42] Compiling Alamofire NetworkReachabilityManager.swift
[26/42] Compiling Alamofire Notifications.swift
[27/42] Compiling Alamofire OperationQueue+Alamofire.swift
[28/42] Compiling Alamofire ParameterEncoder.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 ParameterEncoding.swift
[37/42] Compiling Alamofire Protected.swift
[38/42] Compiling Alamofire RedirectHandler.swift
[39/42] Compiling Alamofire Request.swift
[40/42] Compiling Alamofire URLRequest+Alamofire.swift
[41/42] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[42/42] Compiling Alamofire Validation.swift
[43/64] Compiling Moya CredentialsPlugin.swift
[44/64] Compiling Moya NetworkActivityPlugin.swift
[45/66] Compiling Moya AnyEncodable.swift
[46/66] Compiling Moya Cancellable.swift
[47/66] Compiling Moya Endpoint.swift
[48/66] Compiling Moya Plugin.swift
[49/66] Compiling Moya AccessTokenPlugin.swift
[50/66] Emitting module Moya
[51/66] Compiling Moya NetworkLoggerPlugin.swift
[52/66] Compiling Moya RequestTypeWrapper.swift
[53/66] Compiling Moya MultiTarget.swift
[54/66] Compiling Moya MultipartFormData.swift
[55/66] Compiling Moya URLRequest+Encoding.swift
[56/66] Compiling Moya ValidationType.swift
[57/66] Compiling Moya Response.swift
[58/66] Compiling Moya TargetType.swift
[59/66] Compiling Moya MoyaProvider+Defaults.swift
[60/66] Compiling Moya MoyaProvider+Internal.swift
[61/66] Compiling Moya MoyaProvider.swift
[62/66] Compiling Moya Image.swift
[63/66] Compiling Moya Moya+Alamofire.swift
[64/66] Compiling Moya MoyaError.swift
[65/66] Compiling Moya Task.swift
[66/66] Compiling Moya URL+Moya.swift
[67/74] Compiling MoyaNC None.swift
[68/74] Compiling MoyaNC Request.swift
[69/74] Compiling MoyaNC Route.swift
[70/74] Emitting module MoyaNC
[71/74] Compiling MoyaNC MoyaNCError.swift
[72/74] Compiling MoyaNC Synced.swift
[73/74] Compiling MoyaNC MoyaTargetType.swift
[74/74] Compiling MoyaNC MoyaNC.swift
[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.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 | }
[79/80] Compiling FutureMoyaNC Future+Result.swift
[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] 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] = [:]
[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 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] = [:]
[88/89] Compiling CacheMoyaNC MoyaNC+Cache.swift
[89/89] Compiling CacheMoyaNC CacheStorage.swift
Build complete! (24.07s)
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/fastlane': File not found.
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/FutureMoyaNC/Example': 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/CacheMoyaNC/fastlane': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/Example': File not found.
Done.