Build Information
Successful build of MoyaNC, reference 3.2.0 (e6c90a
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 03:53:46 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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/Moya/Moya.git
Fetching https://github.com/ReactiveX/RxSwift.git
Fetching https://github.com/Moya/ReactiveSwift.git
Fetching https://github.com/Alamofire/Alamofire.git
[1/45863] Fetching reactiveswift
[1377/71130] Fetching reactiveswift, moya
[2754/101267] Fetching reactiveswift, moya, alamofire
[8447/153943] Fetching reactiveswift, moya, alamofire, rxswift
Fetched https://github.com/Alamofire/Alamofire.git from cache (8.12s)
Fetched https://github.com/Moya/ReactiveSwift.git from cache (8.12s)
Fetched https://github.com/Moya/Moya.git from cache (8.12s)
Computing version for https://github.com/Moya/Moya.git
Computed https://github.com/Moya/Moya.git at 14.0.0 (8.76s)
[51033/52676] Fetching rxswift
Fetched https://github.com/ReactiveX/RxSwift.git from cache (12.67s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 5.1.1 (4.51s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (0.63s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.2.2 (0.57s)
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/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/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.2",
"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.3.1",
"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.21s)
Fetching https://github.com/Moya/Moya.git from cache
Fetched https://github.com/Moya/Moya.git from cache (0.66s)
Computing version for https://github.com/Moya/Moya.git
Computed https://github.com/Moya/Moya.git at 14.0.1 (1.26s)
Fetching https://github.com/AliSoftware/OHHTTPStubs.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/ReactiveX/RxSwift.git from cache
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Moya/ReactiveSwift.git from cache
Fetching https://github.com/shibapm/Rocket
[1/7900] Fetching ohhttpstubs
[317/9286] Fetching ohhttpstubs, rocket
[1139/24041] Fetching ohhttpstubs, rocket, quick
[2133/43608] Fetching ohhttpstubs, rocket, quick, nimble
Fetched https://github.com/Quick/Nimble.git from cache (1.92s)
Fetched https://github.com/AliSoftware/OHHTTPStubs.git from cache (1.92s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (1.92s)
[3747/16141] Fetching rocket, quick
Fetched https://github.com/Quick/Quick.git from cache (4.61s)
Fetched https://github.com/Moya/ReactiveSwift.git from cache (4.61s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (4.61s)
Fetched https://github.com/shibapm/Rocket from cache (4.61s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (4.67s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs.git
Computed https://github.com/AliSoftware/OHHTTPStubs.git at 9.1.0 (0.57s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (0.57s)
Computing version for https://github.com/shibapm/Rocket
Computed https://github.com/shibapm/Rocket at 1.3.0 (0.55s)
Fetching https://github.com/shibapm/Logger
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/kareman/SwiftShell
Fetching https://github.com/jpsim/Yams from cache
[1/116] Fetching logger
Fetched https://github.com/shibapm/Logger from cache (0.59s)
[1/580] Fetching packageconfig
[135/5443] Fetching packageconfig, swiftshell
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.70s)
[292/4863] Fetching swiftshell
Fetched https://github.com/kareman/SwiftShell from cache (1.17s)
Fetched https://github.com/jpsim/Yams from cache (1.18s)
Computing version for https://github.com/kareman/SwiftShell
Computed https://github.com/kareman/SwiftShell at 5.1.0 (1.79s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (2.85s)
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.56s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.57s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.3.1 (0.55s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (0.46s)
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/Moya/Moya.git
Working copy of https://github.com/Moya/Moya.git resolved at 14.0.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/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 5.1.3
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/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/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.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/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.3.1
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/shibapm/PackageConfig.git
Working copy of https://github.com/shibapm/PackageConfig.git resolved at 1.1.3
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/shibapm/Rocket
Working copy of https://github.com/shibapm/Rocket resolved at 1.3.0
warning: '.resolve-product-dependencies': dependency 'moyanetworkclient' is not used by any target
Found 1 product dependencies
- Moya
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/BarredEwe/MoyaNetworkClient.git
https://github.com/BarredEwe/MoyaNetworkClient.git
{
"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/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/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CacheMoyaNC/fastlane': File not found.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/39] Emitting module Alamofire
[8/42] Compiling Alamofire URLRequest+Alamofire.swift
[9/42] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[10/42] Compiling Alamofire Validation.swift
[11/42] Compiling Alamofire ServerTrustEvaluation.swift
[12/42] Compiling Alamofire Session.swift
[13/42] Compiling Alamofire SessionDelegate.swift
[14/42] Compiling Alamofire ParameterEncoding.swift
[15/42] Compiling Alamofire Protected.swift
[16/42] Compiling Alamofire RedirectHandler.swift
[17/42] Compiling Alamofire Request.swift
[18/42] Compiling Alamofire ResponseSerialization.swift
[19/42] Compiling Alamofire Result+Alamofire.swift
[20/42] Compiling Alamofire RetryPolicy.swift
[21/42] Compiling Alamofire NetworkReachabilityManager.swift
[22/42] Compiling Alamofire Notifications.swift
[23/42] Compiling Alamofire OperationQueue+Alamofire.swift
[24/42] Compiling Alamofire ParameterEncoder.swift
[25/42] Compiling Alamofire RequestInterceptor.swift
[26/42] Compiling Alamofire RequestTaskMap.swift
[27/42] Compiling Alamofire Response.swift
[28/42] Compiling Alamofire HTTPHeaders.swift
[29/42] Compiling Alamofire HTTPMethod.swift
[30/42] Compiling Alamofire MultipartFormData.swift
[31/42] Compiling Alamofire MultipartUpload.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 AFError.swift
[37/42] Compiling Alamofire Alamofire.swift
[38/42] Compiling Alamofire AlamofireExtended.swift
[39/42] Compiling Alamofire AuthenticationInterceptor.swift
[40/42] Compiling Alamofire StringEncoding+Alamofire.swift
[41/42] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[42/42] Compiling Alamofire URLEncodedFormEncoder.swift
[43/64] Compiling Moya MultiTarget.swift
[44/64] Compiling Moya MultipartFormData.swift
[45/66] Emitting module Moya
[46/66] Compiling Moya Plugin.swift
[47/66] Compiling Moya AccessTokenPlugin.swift
[48/66] Compiling Moya AnyEncodable.swift
[49/66] Compiling Moya Cancellable.swift
[50/66] Compiling Moya Endpoint.swift
[51/66] Compiling Moya CredentialsPlugin.swift
[52/66] Compiling Moya NetworkActivityPlugin.swift
[53/66] Compiling Moya Task.swift
[54/66] Compiling Moya URL+Moya.swift
[55/66] Compiling Moya NetworkLoggerPlugin.swift
[56/66] Compiling Moya RequestTypeWrapper.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 URLRequest+Encoding.swift
[63/66] Compiling Moya ValidationType.swift
[64/66] Compiling Moya Image.swift
[65/66] Compiling Moya Moya+Alamofire.swift
[66/66] Compiling Moya MoyaError.swift
[67/74] Compiling MoyaNC MoyaTargetType.swift
[68/74] Compiling MoyaNC Route.swift
[69/74] Compiling MoyaNC None.swift
[70/74] Compiling MoyaNC Synced.swift
[71/74] Compiling MoyaNC MoyaNCError.swift
[72/74] Emitting module MoyaNC
[73/74] Compiling MoyaNC MoyaNC.swift
[74/74] Compiling MoyaNC Request.swift
[75/80] Compiling FutureMoyaNC MoyaNC+Future.swift
[76/80] Compiling FutureMoyaNC MoyaNCError+Future.swift
[77/80] Compiling FutureMoyaNC FutureResult+ParallelsBuilders.swift
[78/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
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
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
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
| `- 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
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
| `- 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
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
59 | }
60 | }
[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
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
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
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
| `- 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
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
| `- 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
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
59 | }
60 | }
[80/80] Compiling FutureMoyaNC Future+Result.swift
[81/89] Compiling CacheMoyaNC SimpleCancellable.swift
[82/89] Compiling CacheMoyaNC MoyaCachePolicy.swift
[83/89] Compiling CacheMoyaNC CachingKey.swift
[84/89] Compiling CacheMoyaNC CacheTarget.swift
[85/89] Compiling CacheMoyaNC MoyaNCFuture+Cache.swift
[86/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | public var storage: [CachingKey: Codable] = [:]
[87/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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 CacheStorage.swift
[89/89] Compiling CacheMoyaNC MoyaNC+Cache.swift
Build complete! (14.39s)
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/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/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.