Build Information
Successful build of Decree, reference 4.4.0 (dc5638
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 03:20:36 UTC.
Swift 6 data race errors: 13
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/drewag/Decree.git
Reference: 4.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/drewag/Decree
* tag 4.4.0 -> FETCH_HEAD
HEAD is now at dc5638d [UP] Update to latest XMLCoder
Cloned https://github.com/drewag/Decree.git
Revision (git rev-parse @):
dc5638d1a30595a0d65e59fd950f34a982b0cec0
SUCCESS checkout https://github.com/drewag/Decree.git at 4.4.0
Fetching https://github.com/MaxDesiatov/XMLCoder.git from cache
Fetched https://github.com/MaxDesiatov/XMLCoder.git from cache (0.47s)
Computing version for https://github.com/MaxDesiatov/XMLCoder.git
Computed https://github.com/MaxDesiatov/XMLCoder.git at 0.17.1 (1.14s)
Creating working copy for https://github.com/MaxDesiatov/XMLCoder.git
Working copy of https://github.com/MaxDesiatov/XMLCoder.git resolved at 0.17.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": "decree",
"name": "Decree",
"url": "https://github.com/drewag/Decree.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Decree",
"dependencies": [
{
"identity": "xmlcoder",
"name": "XMLCoder",
"url": "https://github.com/MaxDesiatov/XMLCoder.git",
"version": "0.17.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/XMLCoder",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/drewag/Decree.git
[1/1272] Fetching decree
Fetched https://github.com/drewag/Decree.git from cache (0.81s)
Fetching https://github.com/MaxDesiatov/XMLCoder.git from cache
Fetched https://github.com/MaxDesiatov/XMLCoder.git from cache (0.44s)
Computing version for https://github.com/MaxDesiatov/XMLCoder.git
Computed https://github.com/MaxDesiatov/XMLCoder.git at 0.17.1 (0.50s)
Creating working copy for https://github.com/drewag/Decree.git
Working copy of https://github.com/drewag/Decree.git resolved at 4.4.0 (dc5638d)
Creating working copy for https://github.com/MaxDesiatov/XMLCoder.git
Working copy of https://github.com/MaxDesiatov/XMLCoder.git resolved at 0.17.1
warning: '.resolve-product-dependencies': dependency 'decree' is not used by any target
Found 1 product dependencies
- XMLCoder
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/drewag/Decree.git
https://github.com/drewag/Decree.git
{
"dependencies" : [
{
"identity" : "xmlcoder",
"requirement" : {
"range" : [
{
"lower_bound" : "0.8.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/MaxDesiatov/XMLCoder.git"
}
],
"manifest_display_name" : "Decree",
"name" : "Decree",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "Decree",
"targets" : [
"Decree"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "DecreeTests",
"module_type" : "SwiftTarget",
"name" : "DecreeTests",
"path" : "Tests/DecreeTests",
"sources" : [
"AllRequestHandlingTests.swift",
"AuthenticationTests.swift",
"DecreeErrorTests.swift",
"DownloadTests.swift",
"EmptyResultTests.swift",
"EndpointPropertiesTests.swift",
"FileTests.swift",
"FormDataEncoderTests.swift",
"HTTPStatusTests.swift",
"Helpers/AuthenticatedService.swift",
"Helpers/Data+Helpers.swift",
"Helpers/Decodable+Helpers.swift",
"Helpers/Result+Helpers.swift",
"Helpers/TestMinimalService.swift",
"Helpers/TestNoStandardsService.swift",
"Helpers/TestService.swift",
"Helpers/TestURLSession.swift",
"KeyValueEncoderTests.swift",
"LoggerTests.swift",
"MakeRequestTestCase.swift",
"MockingTests.swift",
"ProgressTests.swift",
"RequestFlowTests.swift",
"ResponseParsingTests.swift",
"StatusCodeValidationTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Decree"
],
"type" : "test"
},
{
"c99name" : "Decree",
"module_type" : "SwiftTarget",
"name" : "Decree",
"path" : "Sources/Decree",
"product_dependencies" : [
"XMLCoder"
],
"product_memberships" : [
"Decree"
],
"sources" : [
"Basic Types/Authorization.swift",
"Basic Types/AuthorizationRequirement.swift",
"Basic Types/DecreeError.swift",
"Basic Types/DecreeErrorDescribable.swift",
"Basic Types/EmptyResult.swift",
"Basic Types/ErrorHandling.swift",
"Basic Types/ErrorResponse.swift",
"Basic Types/File.swift",
"Basic Types/InputFormat.swift",
"Basic Types/Method.swift",
"Basic Types/NoBasicResponse.swift",
"Basic Types/OutputFormat.swift",
"Basic Types/Session.swift",
"Endpoint+MakeRequest.swift",
"Endpoint.swift",
"KeyValueEncoder.swift",
"Logger.swift",
"Mocking/Expectations.swift",
"Mocking/WebService+AllRequestHandling.swift",
"Mocking/WebService+Mocking.swift",
"Mocking/WebServiceMock.swift",
"Private/DecreeRequest.swift",
"Private/DispatchQueue+Async.swift",
"Private/Endpoint+PrivateMakeRequest.swift",
"Private/Expectations+Private.swift",
"Private/FormDataEncoder.swift",
"Private/FormURLEncoder.swift",
"Private/HTTPStatus.swift",
"Private/NSXMLParser_ErrorCode.swift",
"Private/ProgressObserver.swift",
"Private/RequestInput.swift",
"Private/String+Helpers.swift",
"Private/String+TitleCase.swift",
"Private/URLRequest+Logging.swift",
"Private/URLResponse+Logging.swift",
"Private/WebService+MakeRequest.swift",
"Private/WebServiceMock+HandleRequest.swift",
"WebService.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/49] Emitting module XMLCoder
[5/54] Compiling XMLCoder ElementAndAttribute.swift
[6/54] Compiling XMLCoder ISO8601DateFormatter.swift
[7/54] Compiling XMLCoder KeyedStorage.swift
[8/54] Compiling XMLCoder Metatypes.swift
[9/54] Compiling XMLCoder String+Extensions.swift
[10/54] Compiling XMLCoder XMLChoiceCodingKey.swift
[11/54] Compiling XMLCoder XMLCoderElement.swift
[12/54] Compiling XMLCoder XMLDocumentType.swift
[13/54] Compiling XMLCoder XMLHeader.swift
[14/54] Compiling XMLCoder XMLKey.swift
[15/54] Compiling XMLCoder XMLEncoderImplementation.swift
[16/54] Compiling XMLCoder XMLEncodingStorage.swift
[17/54] Compiling XMLCoder XMLKeyedEncodingContainer.swift
[18/54] Compiling XMLCoder XMLReferencingEncoder.swift
[19/54] Compiling XMLCoder XMLUnkeyedEncodingContainer.swift
[20/54] Compiling XMLCoder DateBox.swift
[21/54] Compiling XMLCoder DecimalBox.swift
[22/54] Compiling XMLCoder DoubleBox.swift
[23/54] Compiling XMLCoder FloatBox.swift
[24/54] Compiling XMLCoder IntBox.swift
[25/54] Compiling XMLCoder DynamicNodeEncoding.swift
[26/54] Compiling XMLCoder EncodingErrorExtension.swift
[27/54] Compiling XMLCoder SingleValueEncodingContainer.swift
[28/54] Compiling XMLCoder XMLChoiceEncodingContainer.swift
[29/54] Compiling XMLCoder XMLEncoder.swift
[30/54] Compiling XMLCoder XMLDecoder.swift
[31/54] Compiling XMLCoder XMLDecoderImplementation.swift
[32/54] Compiling XMLCoder XMLDecodingStorage.swift
[33/54] Compiling XMLCoder XMLKeyedDecodingContainer.swift
[34/54] Compiling XMLCoder XMLUnkeyedDecodingContainer.swift
[35/54] Compiling XMLCoder Attribute.swift
[36/54] Compiling XMLCoder BoolBox.swift
[37/54] Compiling XMLCoder Box.swift
[38/54] Compiling XMLCoder ChoiceBox.swift
[39/54] Compiling XMLCoder DataBox.swift
[40/54] Compiling XMLCoder UIntBox.swift
[41/54] Compiling XMLCoder URLBox.swift
[42/54] Compiling XMLCoder UnkeyedBox.swift
[43/54] Compiling XMLCoder ValueBox.swift
[44/54] Compiling XMLCoder Element.swift
[45/54] Compiling XMLCoder KeyedBox.swift
[46/54] Compiling XMLCoder NullBox.swift
[47/54] Compiling XMLCoder SharedBox.swift
[48/54] Compiling XMLCoder SingleKeyedBox.swift
[49/54] Compiling XMLCoder StringBox.swift
[50/54] Compiling XMLCoder XMLStackParser.swift
[51/54] Compiling XMLCoder DecodingErrorExtension.swift
[52/54] Compiling XMLCoder DynamicNodeDecoding.swift
[53/54] Compiling XMLCoder SingleValueDecodingContainer.swift
[54/54] Compiling XMLCoder XMLChoiceDecodingContainer.swift
[55/90] Emitting module Decree
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/DecreeError.swift:95:16: warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
32 | ///
33 | /// Check `description` and `details` on error for detailed information about each code
34 | public enum Code {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
35 | // MARK: Requests
36 |
:
93 |
94 | /// Classificaiton for the type of error
95 | public let code: Code
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
96 |
97 | /// What operation was being attempted when this error was thrown
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- note: expected sendability to match requirement here
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- note: expected sendability to match requirement here
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Logger.swift:18:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// endpoints
17 | public struct Logger {
18 | public static var shared = Logger()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
19 |
20 | public enum Level {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
145 | ///
146 | /// - Returns: the created request
147 | func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
148 | let url = try self.createUrl(to: endpoint, input: input)
149 | return try self.createRequest(to: url, for: endpoint, input: input)
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
159 | ///
160 | /// - Returns: the created request
161 | func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
162 | var request = URLRequest(url: url)
163 | request.httpMethod = E.method.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
213 | ///
214 | /// - Returns: the URL to send the input to
215 | func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 | var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 | if !endpoint.path.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:27: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
236 | }
237 |
238 | func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
239 | switch self.service.authorization {
240 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
254 | }
255 |
256 | func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 | guard let response = response as? HTTPURLResponse else {
258 | return
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
334 | }
335 |
336 | func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 | let loadedData: Data?
338 | if let output = output {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:367:14: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
365 |
366 | private extension DecreeRequest {
367 | func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
368 | Logger.shared.logInfo("""
369 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
376 | }
377 |
378 | func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 | var log = """
380 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:11:5: warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import XMLCoder
10 |
11 | var AllRequestsHandlers = [(service: Any, handler: RequestHandler)]()
| |- warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'AllRequestsHandlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'AllRequestsHandlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | extension WebService {
[56/93] Compiling Decree EmptyResult.swift
[57/93] Compiling Decree ErrorHandling.swift
[58/93] Compiling Decree ErrorResponse.swift
[59/93] Compiling Decree File.swift
[60/93] Compiling Decree Authorization.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/DecreeError.swift:95:16: warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
32 | ///
33 | /// Check `description` and `details` on error for detailed information about each code
34 | public enum Code {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
35 | // MARK: Requests
36 |
:
93 |
94 | /// Classificaiton for the type of error
95 | public let code: Code
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
96 |
97 | /// What operation was being attempted when this error was thrown
[61/93] Compiling Decree AuthorizationRequirement.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/DecreeError.swift:95:16: warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
32 | ///
33 | /// Check `description` and `details` on error for detailed information about each code
34 | public enum Code {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
35 | // MARK: Requests
36 |
:
93 |
94 | /// Classificaiton for the type of error
95 | public let code: Code
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
96 |
97 | /// What operation was being attempted when this error was thrown
[62/93] Compiling Decree DecreeError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/DecreeError.swift:95:16: warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
32 | ///
33 | /// Check `description` and `details` on error for detailed information about each code
34 | public enum Code {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
35 | // MARK: Requests
36 |
:
93 |
94 | /// Classificaiton for the type of error
95 | public let code: Code
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
96 |
97 | /// What operation was being attempted when this error was thrown
[63/93] Compiling Decree DecreeErrorDescribable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/DecreeError.swift:95:16: warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
32 | ///
33 | /// Check `description` and `details` on error for detailed information about each code
34 | public enum Code {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
35 | // MARK: Requests
36 |
:
93 |
94 | /// Classificaiton for the type of error
95 | public let code: Code
| `- warning: stored property 'code' of 'Sendable'-conforming struct 'DecreeError' has non-sendable type 'DecreeError.Code'; this is an error in the Swift 6 language mode
96 |
97 | /// What operation was being attempted when this error was thrown
[64/93] Compiling Decree InputFormat.swift
[65/93] Compiling Decree Method.swift
[66/93] Compiling Decree NoBasicResponse.swift
[67/93] Compiling Decree OutputFormat.swift
[68/93] Compiling Decree Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Logger.swift:18:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// endpoints
17 | public struct Logger {
18 | public static var shared = Logger()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
19 |
20 | public enum Level {
[69/93] Compiling Decree Expectations.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Logger.swift:18:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// endpoints
17 | public struct Logger {
18 | public static var shared = Logger()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
19 |
20 | public enum Level {
[70/93] Compiling Decree WebService+AllRequestHandling.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Logger.swift:18:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// endpoints
17 | public struct Logger {
18 | public static var shared = Logger()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
19 |
20 | public enum Level {
[71/93] Compiling Decree WebService+Mocking.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Logger.swift:18:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// endpoints
17 | public struct Logger {
18 | public static var shared = Logger()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
19 |
20 | public enum Level {
[72/93] Compiling Decree Expectations+Private.swift
[73/93] Compiling Decree FormDataEncoder.swift
[74/93] Compiling Decree FormURLEncoder.swift
[75/93] Compiling Decree HTTPStatus.swift
[76/93] Compiling Decree WebService+MakeRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:11:5: warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import XMLCoder
10 |
11 | var AllRequestsHandlers = [(service: Any, handler: RequestHandler)]()
| |- warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'AllRequestsHandlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'AllRequestsHandlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | extension WebService {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:36: warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in a '@Sendable' closure
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in a '@Sendable' closure
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:40:12: note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
38 | /// mock expectations. The vast majority of the time you will
39 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
40 | open class EmptyExpectation<E: EmptyEndpoint>: AnyExpectation {
| `- note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' 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'
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:36: warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:40:12: note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
38 | /// mock expectations. The vast majority of the time you will
39 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
40 | open class EmptyExpectation<E: EmptyEndpoint>: AnyExpectation {
| `- note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:36: warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in a '@Sendable' closure
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in a '@Sendable' closure
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:62:12: note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
60 | /// mock expectations. The vast majority of the time you will
61 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
62 | open class InExpectation<E: InEndpoint>: AnyExpectation {
| `- note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' 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'
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:36: warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:62:12: note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
60 | /// mock expectations. The vast majority of the time you will
61 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
62 | open class InExpectation<E: InEndpoint>: AnyExpectation {
| `- note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:36: warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in a '@Sendable' closure
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in a '@Sendable' closure
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:84:12: note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
82 | /// mock expectations. The vast majority of the time you will
83 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
84 | open class OutExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' 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'
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:36: warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:84:12: note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
82 | /// mock expectations. The vast majority of the time you will
83 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
84 | open class OutExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:36: warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in a '@Sendable' closure
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in a '@Sendable' closure
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:106:12: note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
104 | /// mock expectations. The vast majority of the time you will
105 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
106 | open class OutDownloadExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' 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'
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:36: warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:106:12: note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
104 | /// mock expectations. The vast majority of the time you will
105 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
106 | open class OutDownloadExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:36: warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in a '@Sendable' closure
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in a '@Sendable' closure
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:128:12: note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
126 | /// mock expectations. The vast majority of the time you will
127 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
128 | open class InOutExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' 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'
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:36: warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:128:12: note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
126 | /// mock expectations. The vast majority of the time you will
127 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
128 | open class InOutExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:36: warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in a '@Sendable' closure
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in a '@Sendable' closure
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:150:12: note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
148 | /// mock expectations. The vast majority of the time you will
149 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
150 | open class InOutDownloadExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' 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'
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:36: warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:150:12: note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
148 | /// mock expectations. The vast majority of the time you will
149 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
150 | open class InOutDownloadExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
[77/93] Compiling Decree WebServiceMock+HandleRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:11:5: warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import XMLCoder
10 |
11 | var AllRequestsHandlers = [(service: Any, handler: RequestHandler)]()
| |- warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'AllRequestsHandlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'AllRequestsHandlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | extension WebService {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:36: warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in a '@Sendable' closure
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in a '@Sendable' closure
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:40:12: note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
38 | /// mock expectations. The vast majority of the time you will
39 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
40 | open class EmptyExpectation<E: EmptyEndpoint>: AnyExpectation {
| `- note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' 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'
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:36: warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:40:12: note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
38 | /// mock expectations. The vast majority of the time you will
39 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
40 | open class EmptyExpectation<E: EmptyEndpoint>: AnyExpectation {
| `- note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:36: warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in a '@Sendable' closure
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in a '@Sendable' closure
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:62:12: note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
60 | /// mock expectations. The vast majority of the time you will
61 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
62 | open class InExpectation<E: InEndpoint>: AnyExpectation {
| `- note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' 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'
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:36: warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:62:12: note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
60 | /// mock expectations. The vast majority of the time you will
61 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
62 | open class InExpectation<E: InEndpoint>: AnyExpectation {
| `- note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:36: warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in a '@Sendable' closure
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in a '@Sendable' closure
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:84:12: note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
82 | /// mock expectations. The vast majority of the time you will
83 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
84 | open class OutExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' 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'
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:36: warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:84:12: note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
82 | /// mock expectations. The vast majority of the time you will
83 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
84 | open class OutExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:36: warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in a '@Sendable' closure
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in a '@Sendable' closure
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:106:12: note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
104 | /// mock expectations. The vast majority of the time you will
105 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
106 | open class OutDownloadExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' 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'
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:36: warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:106:12: note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
104 | /// mock expectations. The vast majority of the time you will
105 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
106 | open class OutDownloadExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:36: warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in a '@Sendable' closure
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in a '@Sendable' closure
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:128:12: note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
126 | /// mock expectations. The vast majority of the time you will
127 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
128 | open class InOutExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' 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'
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:36: warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:128:12: note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
126 | /// mock expectations. The vast majority of the time you will
127 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
128 | open class InOutExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:36: warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in a '@Sendable' closure
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in a '@Sendable' closure
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:150:12: note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
148 | /// mock expectations. The vast majority of the time you will
149 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
150 | open class InOutDownloadExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' 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'
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:36: warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:150:12: note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
148 | /// mock expectations. The vast majority of the time you will
149 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
150 | open class InOutDownloadExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
[78/93] Compiling Decree WebService.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:11:5: warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import XMLCoder
10 |
11 | var AllRequestsHandlers = [(service: Any, handler: RequestHandler)]()
| |- warning: var 'AllRequestsHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'AllRequestsHandlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'AllRequestsHandlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | extension WebService {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:36: warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in a '@Sendable' closure
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in a '@Sendable' closure
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:40:12: note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
38 | /// mock expectations. The vast majority of the time you will
39 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
40 | open class EmptyExpectation<E: EmptyEndpoint>: AnyExpectation {
| `- note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' 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'
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:20:36: warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
18 | DispatchQueue(label: "background").async {
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'EmptyExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
21 | expectation.fulfill()
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:40:12: note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
38 | /// mock expectations. The vast majority of the time you will
39 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
40 | open class EmptyExpectation<E: EmptyEndpoint>: AnyExpectation {
| `- note: generic class 'EmptyExpectation' does not conform to the 'Sendable' protocol
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:36: warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in a '@Sendable' closure
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in a '@Sendable' closure
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:62:12: note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
60 | /// mock expectations. The vast majority of the time you will
61 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
62 | open class InExpectation<E: InEndpoint>: AnyExpectation {
| `- note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:25: warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(EmptyResult) -> ()' 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'
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:42:36: warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
40 | DispatchQueue(label: "background").async {
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
43 | expectation.fulfill()
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:62:12: note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
60 | /// mock expectations. The vast majority of the time you will
61 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
62 | open class InExpectation<E: InEndpoint>: AnyExpectation {
| `- note: generic class 'InExpectation' does not conform to the 'Sendable' protocol
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:36: warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in a '@Sendable' closure
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in a '@Sendable' closure
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:84:12: note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
82 | /// mock expectations. The vast majority of the time you will
83 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
84 | open class OutExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' 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'
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:64:36: warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
62 | DispatchQueue(label: "background").async {
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
65 | expectation.fulfill()
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:84:12: note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
82 | /// mock expectations. The vast majority of the time you will
83 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
84 | open class OutExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutExpectation' does not conform to the 'Sendable' protocol
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:36: warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in a '@Sendable' closure
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in a '@Sendable' closure
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:106:12: note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
104 | /// mock expectations. The vast majority of the time you will
105 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
106 | open class OutDownloadExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' 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'
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:86:36: warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
84 | DispatchQueue(label: "background").async {
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'OutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
87 | expectation.fulfill()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:106:12: note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
104 | /// mock expectations. The vast majority of the time you will
105 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
106 | open class OutDownloadExpectation<E: OutEndpoint>: AnyExpectation {
| `- note: generic class 'OutDownloadExpectation' does not conform to the 'Sendable' protocol
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:36: warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in a '@Sendable' closure
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in a '@Sendable' closure
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:128:12: note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
126 | /// mock expectations. The vast majority of the time you will
127 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
128 | open class InOutExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:25: warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<E.Output, DecreeError>) -> ()' 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'
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:108:36: warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
106 | DispatchQueue(label: "background").async {
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
109 | expectation.fulfill()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:128:12: note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
126 | /// mock expectations. The vast majority of the time you will
127 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
128 | open class InOutExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutExpectation' does not conform to the 'Sendable' protocol
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:36: warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in a '@Sendable' closure
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in a '@Sendable' closure
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:150:12: note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
148 | /// mock expectations. The vast majority of the time you will
149 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
150 | open class InOutDownloadExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:25: warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| |- warning: capture of 'onComplete' with non-sendable type '(Result<URL, DecreeError>) -> ()' 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'
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:130:36: warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
128 | DispatchQueue(label: "background").async {
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
| `- warning: capture of 'expectation' with non-sendable type 'InOutDownloadExpectation<E>' in an isolated closure; this is an error in the Swift 6 language mode
131 | expectation.fulfill()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:150:12: note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
148 | /// mock expectations. The vast majority of the time you will
149 | /// use the built in expectations through [WebServiceMock](x-source-tag://WebServiceMock).
150 | open class InOutDownloadExpectation<E: InOutEndpoint>: AnyExpectation {
| `- note: generic class 'InOutDownloadExpectation' does not conform to the 'Sendable' protocol
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
[79/93] Compiling Decree String+TitleCase.swift
[80/93] Compiling Decree URLRequest+Logging.swift
[81/93] Compiling Decree URLResponse+Logging.swift
[82/93] Compiling Decree NSXMLParser_ErrorCode.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:15:9: warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
14 | public var description: String {
15 | switch self {
| |- warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
16 | case .internalError:
17 | return "The parser object encountered an internal error."
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:29:13: warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
10 | #if canImport(ObjectiveC)
11 | @available(iOS 11.0, OSX 10.13, tvOS 11.0, *)
12 | class ProgressObserver: NSObject {
| `- note: class 'ProgressObserver' does not conform to the 'Sendable' protocol
13 | @objc dynamic var subject: URLSessionTask
14 | var observation: NSKeyValueObservation?
:
27 | return
28 | }
29 | self.callbackQueue.async {
| `- warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
30 | onChange(value as Double)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | }
32 | })
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' 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'
31 | }
32 | })
[83/93] Compiling Decree ProgressObserver.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:15:9: warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
14 | public var description: String {
15 | switch self {
| |- warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
16 | case .internalError:
17 | return "The parser object encountered an internal error."
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:29:13: warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
10 | #if canImport(ObjectiveC)
11 | @available(iOS 11.0, OSX 10.13, tvOS 11.0, *)
12 | class ProgressObserver: NSObject {
| `- note: class 'ProgressObserver' does not conform to the 'Sendable' protocol
13 | @objc dynamic var subject: URLSessionTask
14 | var observation: NSKeyValueObservation?
:
27 | return
28 | }
29 | self.callbackQueue.async {
| `- warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
30 | onChange(value as Double)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | }
32 | })
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' 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'
31 | }
32 | })
[84/93] Compiling Decree RequestInput.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:15:9: warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
14 | public var description: String {
15 | switch self {
| |- warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
16 | case .internalError:
17 | return "The parser object encountered an internal error."
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:29:13: warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
10 | #if canImport(ObjectiveC)
11 | @available(iOS 11.0, OSX 10.13, tvOS 11.0, *)
12 | class ProgressObserver: NSObject {
| `- note: class 'ProgressObserver' does not conform to the 'Sendable' protocol
13 | @objc dynamic var subject: URLSessionTask
14 | var observation: NSKeyValueObservation?
:
27 | return
28 | }
29 | self.callbackQueue.async {
| `- warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
30 | onChange(value as Double)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | }
32 | })
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' 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'
31 | }
32 | })
[85/93] Compiling Decree String+Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:15:9: warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
14 | public var description: String {
15 | switch self {
| |- warning: switch covers known cases, but 'XMLParser.ErrorCode' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
16 | case .internalError:
17 | return "The parser object encountered an internal error."
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:29:13: warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
10 | #if canImport(ObjectiveC)
11 | @available(iOS 11.0, OSX 10.13, tvOS 11.0, *)
12 | class ProgressObserver: NSObject {
| `- note: class 'ProgressObserver' does not conform to the 'Sendable' protocol
13 | @objc dynamic var subject: URLSessionTask
14 | var observation: NSKeyValueObservation?
:
27 | return
28 | }
29 | self.callbackQueue.async {
| `- warning: capture of 'self' with non-sendable type 'ProgressObserver' in a '@Sendable' closure
30 | onChange(value as Double)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 | }
32 | })
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/ProgressObserver.swift:30:17: warning: capture of 'onChange' with non-sendable type '(Double) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
28 | }
29 | self.callbackQueue.async {
30 | onChange(value as Double)
| |- warning: capture of 'onChange' with non-sendable type '(Double) -> ()' 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'
31 | }
32 | })
[86/93] Compiling Decree WebServiceMock.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
145 | ///
146 | /// - Returns: the created request
147 | func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
148 | let url = try self.createUrl(to: endpoint, input: input)
149 | return try self.createRequest(to: url, for: endpoint, input: input)
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
159 | ///
160 | /// - Returns: the created request
161 | func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
162 | var request = URLRequest(url: url)
163 | request.httpMethod = E.method.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
213 | ///
214 | /// - Returns: the URL to send the input to
215 | func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 | var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 | if !endpoint.path.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:27: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
236 | }
237 |
238 | func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
239 | switch self.service.authorization {
240 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
254 | }
255 |
256 | func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 | guard let response = response as? HTTPURLResponse else {
258 | return
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
334 | }
335 |
336 | func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 | let loadedData: Data?
338 | if let output = output {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:367:14: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
365 |
366 | private extension DecreeRequest {
367 | func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
368 | Logger.shared.logInfo("""
369 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
376 | }
377 |
378 | func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 | var log = """
380 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:13:34: warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
9 |
10 | extension Optional where Wrapped == DispatchQueue {
11 | func async(execute: @escaping () -> ()) {
| `- note: parameter 'execute' is implicitly non-sendable
12 | if let queue = self {
13 | queue.async(execute: execute)
| `- warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
14 | }
15 | else {
[87/93] Compiling Decree DecreeRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
145 | ///
146 | /// - Returns: the created request
147 | func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
148 | let url = try self.createUrl(to: endpoint, input: input)
149 | return try self.createRequest(to: url, for: endpoint, input: input)
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
159 | ///
160 | /// - Returns: the created request
161 | func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
162 | var request = URLRequest(url: url)
163 | request.httpMethod = E.method.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
213 | ///
214 | /// - Returns: the URL to send the input to
215 | func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 | var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 | if !endpoint.path.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:27: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
236 | }
237 |
238 | func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
239 | switch self.service.authorization {
240 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
254 | }
255 |
256 | func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 | guard let response = response as? HTTPURLResponse else {
258 | return
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
334 | }
335 |
336 | func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 | let loadedData: Data?
338 | if let output = output {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:367:14: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
365 |
366 | private extension DecreeRequest {
367 | func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
368 | Logger.shared.logInfo("""
369 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
376 | }
377 |
378 | func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 | var log = """
380 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:13:34: warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
9 |
10 | extension Optional where Wrapped == DispatchQueue {
11 | func async(execute: @escaping () -> ()) {
| `- note: parameter 'execute' is implicitly non-sendable
12 | if let queue = self {
13 | queue.async(execute: execute)
| `- warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
14 | }
15 | else {
[88/93] Compiling Decree DispatchQueue+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
145 | ///
146 | /// - Returns: the created request
147 | func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
148 | let url = try self.createUrl(to: endpoint, input: input)
149 | return try self.createRequest(to: url, for: endpoint, input: input)
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
159 | ///
160 | /// - Returns: the created request
161 | func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
162 | var request = URLRequest(url: url)
163 | request.httpMethod = E.method.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
213 | ///
214 | /// - Returns: the URL to send the input to
215 | func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 | var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 | if !endpoint.path.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:27: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
236 | }
237 |
238 | func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
239 | switch self.service.authorization {
240 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
254 | }
255 |
256 | func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 | guard let response = response as? HTTPURLResponse else {
258 | return
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
334 | }
335 |
336 | func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 | let loadedData: Data?
338 | if let output = output {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:367:14: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
365 |
366 | private extension DecreeRequest {
367 | func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
368 | Logger.shared.logInfo("""
369 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
376 | }
377 |
378 | func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 | var log = """
380 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:13:34: warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
9 |
10 | extension Optional where Wrapped == DispatchQueue {
11 | func async(execute: @escaping () -> ()) {
| `- note: parameter 'execute' is implicitly non-sendable
12 | if let queue = self {
13 | queue.async(execute: execute)
| `- warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
14 | }
15 | else {
[89/93] Compiling Decree Endpoint+PrivateMakeRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
145 | ///
146 | /// - Returns: the created request
147 | func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
148 | let url = try self.createUrl(to: endpoint, input: input)
149 | return try self.createRequest(to: url, for: endpoint, input: input)
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:24: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
159 | ///
160 | /// - Returns: the created request
161 | func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
162 | var request = URLRequest(url: url)
163 | request.httpMethod = E.method.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
213 | ///
214 | /// - Returns: the URL to send the input to
215 | func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 | var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 | if !endpoint.path.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:27: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
236 | }
237 |
238 | func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
239 | switch self.service.authorization {
240 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
254 | }
255 |
256 | func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 | guard let response = response as? HTTPURLResponse else {
258 | return
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
334 | }
335 |
336 | func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 | let loadedData: Data?
338 | if let output = output {
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:367:14: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
365 |
366 | private extension DecreeRequest {
367 | func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
368 | Logger.shared.logInfo("""
369 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' previously declared here
14 | enum Output {
15 | case data(Data)
:
376 | }
377 |
378 | func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
| `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 | var log = """
380 | --------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:13:34: warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
9 |
10 | extension Optional where Wrapped == DispatchQueue {
11 | func async(execute: @escaping () -> ()) {
| `- note: parameter 'execute' is implicitly non-sendable
12 | if let queue = self {
13 | queue.async(execute: execute)
| `- warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
14 | }
15 | else {
[90/93] Compiling Decree Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- note: expected sendability to match requirement here
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- note: expected sendability to match requirement here
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
[91/93] Compiling Decree Endpoint+MakeRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- note: expected sendability to match requirement here
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- note: expected sendability to match requirement here
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
[92/93] Compiling Decree Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- note: expected sendability to match requirement here
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- note: expected sendability to match requirement here
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
[93/93] Compiling Decree KeyValueEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- note: expected sendability to match requirement here
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:26:1: warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- note: expected sendability to match requirement here
24 | }
25 |
26 | extension URLSession: Session {}
| `- warning: sendability of function types in instance method 'downloadTask(with:completionHandler:)' does not match requirement in protocol 'Session'; this is an error in the Swift 6 language mode
27 |
Build complete! (7.49s)
Build complete.
{
"dependencies" : [
{
"identity" : "xmlcoder",
"requirement" : {
"range" : [
{
"lower_bound" : "0.8.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/MaxDesiatov/XMLCoder.git"
}
],
"manifest_display_name" : "Decree",
"name" : "Decree",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "Decree",
"targets" : [
"Decree"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "DecreeTests",
"module_type" : "SwiftTarget",
"name" : "DecreeTests",
"path" : "Tests/DecreeTests",
"sources" : [
"AllRequestHandlingTests.swift",
"AuthenticationTests.swift",
"DecreeErrorTests.swift",
"DownloadTests.swift",
"EmptyResultTests.swift",
"EndpointPropertiesTests.swift",
"FileTests.swift",
"FormDataEncoderTests.swift",
"HTTPStatusTests.swift",
"Helpers/AuthenticatedService.swift",
"Helpers/Data+Helpers.swift",
"Helpers/Decodable+Helpers.swift",
"Helpers/Result+Helpers.swift",
"Helpers/TestMinimalService.swift",
"Helpers/TestNoStandardsService.swift",
"Helpers/TestService.swift",
"Helpers/TestURLSession.swift",
"KeyValueEncoderTests.swift",
"LoggerTests.swift",
"MakeRequestTestCase.swift",
"MockingTests.swift",
"ProgressTests.swift",
"RequestFlowTests.swift",
"ResponseParsingTests.swift",
"StatusCodeValidationTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Decree"
],
"type" : "test"
},
{
"c99name" : "Decree",
"module_type" : "SwiftTarget",
"name" : "Decree",
"path" : "Sources/Decree",
"product_dependencies" : [
"XMLCoder"
],
"product_memberships" : [
"Decree"
],
"sources" : [
"Basic Types/Authorization.swift",
"Basic Types/AuthorizationRequirement.swift",
"Basic Types/DecreeError.swift",
"Basic Types/DecreeErrorDescribable.swift",
"Basic Types/EmptyResult.swift",
"Basic Types/ErrorHandling.swift",
"Basic Types/ErrorResponse.swift",
"Basic Types/File.swift",
"Basic Types/InputFormat.swift",
"Basic Types/Method.swift",
"Basic Types/NoBasicResponse.swift",
"Basic Types/OutputFormat.swift",
"Basic Types/Session.swift",
"Endpoint+MakeRequest.swift",
"Endpoint.swift",
"KeyValueEncoder.swift",
"Logger.swift",
"Mocking/Expectations.swift",
"Mocking/WebService+AllRequestHandling.swift",
"Mocking/WebService+Mocking.swift",
"Mocking/WebServiceMock.swift",
"Private/DecreeRequest.swift",
"Private/DispatchQueue+Async.swift",
"Private/Endpoint+PrivateMakeRequest.swift",
"Private/Expectations+Private.swift",
"Private/FormDataEncoder.swift",
"Private/FormURLEncoder.swift",
"Private/HTTPStatus.swift",
"Private/NSXMLParser_ErrorCode.swift",
"Private/ProgressObserver.swift",
"Private/RequestInput.swift",
"Private/String+Helpers.swift",
"Private/String+TitleCase.swift",
"Private/URLRequest+Logging.swift",
"Private/URLResponse+Logging.swift",
"Private/WebService+MakeRequest.swift",
"Private/WebServiceMock+HandleRequest.swift",
"WebService.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.