Build Information
Failed to build BartyCrouch, reference main (aabff7), with Swift 6.3 for Wasm on 21 Apr 2026 12:11:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlineDev/BartyCrouch.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/FlineDev/BartyCrouch
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at aabff74 Update README.md
Cloned https://github.com/FlineDev/BartyCrouch.git
Revision (git rev-parse @):
aabff74ecce1d4f893b2fccd5028d866e2100ebd
SUCCESS checkout https://github.com/FlineDev/BartyCrouch.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/FlineDev/BartyCrouch.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/Flinesoft/Microya.git
[1/824] Fetching microya
Fetched https://github.com/Flinesoft/Microya.git from cache (0.30s)
Fetching https://github.com/jdfergason/swift-toml.git
[1/582] Fetching swift-toml
Fetched https://github.com/jdfergason/swift-toml.git from cache (0.24s)
Fetching https://github.com/Flinesoft/MungoHealer.git
Fetching https://github.com/onevcat/Rainbow.git
Fetching https://github.com/jakeheis/SwiftCLI.git
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/pointfreeco/swift-custom-dump.git
Fetching https://github.com/Flinesoft/HandySwift.git
[1/1442] Fetching rainbow
[1443/6906] Fetching rainbow, swift-custom-dump
[1607/7354] Fetching rainbow, swift-custom-dump, mungohealer
[1652/12428] Fetching rainbow, swift-custom-dump, mungohealer, swiftcli
[2614/15911] Fetching rainbow, swift-custom-dump, mungohealer, swiftcli, handyswift
[15912/90892] Fetching rainbow, swift-custom-dump, mungohealer, swiftcli, handyswift, swift-syntax
Fetched https://github.com/pointfreeco/swift-custom-dump.git from cache (0.55s)
Fetched https://github.com/onevcat/Rainbow.git from cache (0.55s)
[10505/83986] Fetching mungohealer, swiftcli, handyswift, swift-syntax
Fetched https://github.com/jakeheis/SwiftCLI.git from cache (0.56s)
[6181/78912] Fetching mungohealer, handyswift, swift-syntax
Fetched https://github.com/Flinesoft/MungoHealer.git from cache (6.45s)
Fetched https://github.com/Flinesoft/HandySwift.git from cache (6.46s)
Fetched https://github.com/apple/swift-syntax.git from cache (6.57s)
Computing version for https://github.com/jakeheis/SwiftCLI.git
Computed https://github.com/jakeheis/SwiftCLI.git at 6.0.3 (7.26s)
Computing version for https://github.com/Flinesoft/MungoHealer.git
Computed https://github.com/Flinesoft/MungoHealer.git at 0.3.4 (0.54s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 508.0.1 (0.89s)
Computing version for https://github.com/onevcat/Rainbow.git
Computed https://github.com/onevcat/Rainbow.git at 3.2.0 (3.29s)
Computing version for https://github.com/Flinesoft/HandySwift.git
Computed https://github.com/Flinesoft/HandySwift.git at 3.4.0 (0.79s)
Computing version for https://github.com/pointfreeco/swift-custom-dump.git
Computed https://github.com/pointfreeco/swift-custom-dump.git at 0.11.2 (0.80s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5723] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.29s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (2.27s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/jdfergason/swift-toml.git
Working copy of https://github.com/jdfergason/swift-toml.git resolved at master (f26573b)
Creating working copy for https://github.com/jakeheis/SwiftCLI.git
Working copy of https://github.com/jakeheis/SwiftCLI.git resolved at 6.0.3
Creating working copy for https://github.com/Flinesoft/Microya.git
Working copy of https://github.com/Flinesoft/Microya.git resolved at support/without-combine (bdb03dd)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 508.0.1
Creating working copy for https://github.com/onevcat/Rainbow.git
Working copy of https://github.com/onevcat/Rainbow.git resolved at 3.2.0
Creating working copy for https://github.com/Flinesoft/HandySwift.git
Working copy of https://github.com/Flinesoft/HandySwift.git resolved at 3.4.0
Creating working copy for https://github.com/Flinesoft/MungoHealer.git
Working copy of https://github.com/Flinesoft/MungoHealer.git resolved at 0.3.4
Creating working copy for https://github.com/pointfreeco/swift-custom-dump.git
Working copy of https://github.com/pointfreeco/swift-custom-dump.git resolved at 0.11.2
warning: 'spi-builder-workspace': Invalid Resource 'Secrets/secrets.json': File not found.
Building for debugging...
[0/40] Write sources
[7/40] Copying Localizable.strings
[9/40] Copying Info.plist
[10/40] Write sources
[18/40] Write swift-version-24593BA9C3E375BF.txt
[20/173] Emitting module BartyCrouchUtility
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/173] Emitting module Microya
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 | case unexpectedResponseType(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | /// The lower level Result structure received directly from the native `URLSession` data task calls.
12 | public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | private func decodeBodyToResultType<ResultType: Decodable>(
146 | data: Data?,
147 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | endpoint: EndpointType
149 | ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
35 |
36 | extension Endpoint {
37 | func buildRequest(baseUrl: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
38 | var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 | case delete
19 |
20 | func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
21 | switch self {
22 | case .get:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:52:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | .init(
54 | url: url(baseUrl: baseUrl),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 | /// Called to modify a request before sending.
17 | open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
20 | open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
21 |
22 | /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/HttpAuthPlugin.swift:32:55: error: cannot find type 'URLRequest' in scope
30 | }
31 |
32 | override public func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) {
| `- error: cannot find type 'URLRequest' in scope
33 | if let token = tokenClosure() {
34 | request.addValue("\(scheme.rawValue) \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/ProgressIndicatorPlugin.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
| `- error: cannot find type 'URLRequest' in scope
25 | ongoingRequests += 1
26 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:11:28: error: cannot find type 'URLRequest' in scope
9 |
10 | public init(
11 | logClosure: @escaping (URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
12 | ) {
13 | self.logClosure = logClosure
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:8:28: error: cannot find type 'URLRequest' in scope
6 | /// Allows to log requests the given way provided by a closure before the requests are sent.
7 | public class RequestLoggerPlugin<EndpointType: Endpoint>: Plugin<EndpointType> {
8 | private let logClosure: (URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | public init(
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:16:54: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
| `- error: cannot find type 'URLRequest' in scope
17 | logClosure(request)
18 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/174] Emitting module SwiftCLI
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
[23/176] Compiling SwiftCLI ValueBox.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
[24/176] Compiling SwiftCLI VersionCommand.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
[25/176] Compiling HandySwift Regex.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
[26/176] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
[27/176] Compiling SwiftCLI HelpMessageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
[28/176] Emitting module Rainbow
[29/176] Compiling HandySwift ArrayExt.swift
[30/176] Compiling HandySwift CollectionExt.swift
[31/176] Compiling Rainbow Style.swift
[32/177] Compiling Rainbow StringGenerator.swift
[35/177] Compiling HandySwift ComparableExt.swift
[36/177] Compiling HandySwift DataExt.swift
[37/177] Compiling HandySwift DictionaryExt.swift
[38/177] Compiling HandySwift DispatchTimeIntervalExt.swift
[39/182] Compiling HandySwift Withable.swift
[40/182] Compiling HandySwift FrequencyTable.swift
[41/182] Compiling HandySwift NSRangeExt.swift
[42/182] Compiling HandySwift StringExt.swift
[43/182] Compiling HandySwift StringProtocolExt.swift
[44/182] Compiling Rainbow String+Rainbow.swift
[45/182] Compiling Rainbow XcodeColorsSupport.swift
[46/182] Compiling Microya ResponseLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 | /// Called to modify a request before sending.
17 | open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
20 | open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
21 |
22 | /// Called after a response has been received & decoded, but before calling the completion handler.
[51/182] Compiling Microya ProgressIndicatorPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/ProgressIndicatorPlugin.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
| `- error: cannot find type 'URLRequest' in scope
25 | ongoingRequests += 1
26 |
[52/182] Compiling Microya HttpAuthPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/HttpAuthPlugin.swift:32:55: error: cannot find type 'URLRequest' in scope
30 | }
31 |
32 | override public func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) {
| `- error: cannot find type 'URLRequest' in scope
33 | if let token = tokenClosure() {
34 | request.addValue("\(scheme.rawValue) \(token)", forHTTPHeaderField: "Authorization")
[53/182] Compiling HandySwift DoubleExt.swift
[54/182] Compiling HandySwift IntExt.swift
[55/182] Compiling SwiftCLI Input.swift
[56/184] Compiling SwiftCLI Option.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:53: error: cannot find type 'DispatchQoS' in scope
9 | /// - qosClass: The global QOS class to be used or `nil` to use the main thread. Defaults to `nil`.
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:41: error: cannot find 'DispatchQueue' in scope
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:80: error: cannot find 'DispatchQueue' in scope
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:13:38: error: cannot find 'DispatchTime' in scope
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
14 | }
15 |
[57/184] Compiling SwiftCLI OptionGroup.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:53: error: cannot find type 'DispatchQoS' in scope
9 | /// - qosClass: The global QOS class to be used or `nil` to use the main thread. Defaults to `nil`.
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:41: error: cannot find 'DispatchQueue' in scope
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:80: error: cannot find 'DispatchQueue' in scope
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:13:38: error: cannot find 'DispatchTime' in scope
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
14 | }
15 |
[58/184] Compiling SwiftCLI OptionRegistry.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:53: error: cannot find type 'DispatchQoS' in scope
9 | /// - qosClass: The global QOS class to be used or `nil` to use the main thread. Defaults to `nil`.
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:41: error: cannot find 'DispatchQueue' in scope
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:80: error: cannot find 'DispatchQueue' in scope
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:13:38: error: cannot find 'DispatchTime' in scope
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 | /// Called to modify a request before sending.
17 | open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
20 | open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
21 |
22 | /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 | /// Called to modify a request before sending.
17 | open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
20 | open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
21 |
22 | /// Called after a response has been received & decoded, but before calling the completion handler.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[61/184] Emitting module HandySwift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:5:11: error: cannot find type 'DispatchTimeInterval' in scope
3 | import Foundation
4 |
5 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
6 | /// - Returns: The time in seconds using the`TimeInterval` type.
7 | public var timeInterval: TimeInterval {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:53: error: cannot find type 'DispatchQoS' in scope
9 | /// - qosClass: The global QOS class to be used or `nil` to use the main thread. Defaults to `nil`.
10 | /// - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
12 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
[76/186] Compiling Toml Tokens.swift
[79/186] Emitting module Toml
[82/186] Emitting module MungoHealer
[85/186] Compiling BartyCrouchUtility Constants.swift
[86/186] Compiling BartyCrouchUtility Secret.swift
[87/186] Compiling Microya RequestLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:11:28: error: cannot find type 'URLRequest' in scope
9 |
10 | public init(
11 | logClosure: @escaping (URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
12 | ) {
13 | self.logClosure = logClosure
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:8:28: error: cannot find type 'URLRequest' in scope
6 | /// Allows to log requests the given way provided by a closure before the requests are sent.
7 | public class RequestLoggerPlugin<EndpointType: Endpoint>: Plugin<EndpointType> {
8 | private let logClosure: (URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | public init(
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:16:54: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
| `- error: cannot find type 'URLRequest' in scope
17 | logClosure(request)
18 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:5:11: error: cannot find type 'DispatchTimeInterval' in scope
3 | import Foundation
4 |
5 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
6 | /// - Returns: The time in seconds using the`TimeInterval` type.
7 | public var timeInterval: TimeInterval {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:5:11: error: cannot find type 'DispatchTimeInterval' in scope
3 | import Foundation
4 |
5 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
6 | /// - Returns: The time in seconds using the`TimeInterval` type.
7 | public var timeInterval: TimeInterval {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:5:11: error: cannot find type 'DispatchTimeInterval' in scope
3 | import Foundation
4 |
5 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
6 | /// - Returns: The time in seconds using the`TimeInterval` type.
7 | public var timeInterval: TimeInterval {
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 | case unexpectedResponseType(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | /// The lower level Result structure received directly from the native `URLSession` data task calls.
12 | public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | private func decodeBodyToResultType<ResultType: Decodable>(
146 | data: Data?,
147 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | endpoint: EndpointType
149 | ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:59:18: error: cannot find type 'URLRequest' in scope
57 | completion: @escaping (TypedResult<ResultType>) -> Void
58 | ) {
59 | var request: URLRequest = endpoint.buildRequest(baseUrl: baseUrl)
| `- error: cannot find type 'URLRequest' in scope
60 |
61 | for plugin in plugins {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
35 |
36 | extension Endpoint {
37 | func buildRequest(baseUrl: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
38 | var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 | /// Called to modify a request before sending.
17 | open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
20 | open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
21 |
22 | /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:69:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | }
68 |
69 | func handleDataTaskCompletion(data: Data?, response: URLResponse?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlSessionResult: URLSessionResult = (data: data, response: response, error: error)
71 | let typedResult: TypedResult<ResultType> = self.decodeBody(from: urlSessionResult, endpoint: endpoint)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:96:18: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
94 | else {
95 | // this is the main logic, making the actual call
96 | URLSession.shared.dataTask(with: request, completionHandler: handleDataTaskCompletion).resume()
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
97 | }
98 | }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:108:25: error: cannot find 'DispatchGroup' in scope
106 | decodeBodyTo bodyType: ResultType.Type
107 | ) -> TypedResult<ResultType> {
108 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
109 | dispatchGroup.enter()
110 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:154:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 | }
153 |
154 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | throw ApiError<EndpointType.ClientErrorType>.unexpectedResponseType(response: response)
156 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:158:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | }
157 |
158 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | case 200..<300:
160 | if ResultType.self == EmptyBodyResponse.self {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:165:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 | guard let data = data else {
165 | throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 | }
167 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:183:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 | throw ApiError<EndpointType.ClientErrorType>
182 | .clientError(
183 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
184 | clientError: nil
185 | )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:189:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
187 |
188 | guard let data = data else {
189 | throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
190 | }
191 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:195:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 | throw ApiError<EndpointType.ClientErrorType>
194 | .clientError(
195 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 | clientError: clientError
197 | )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:200:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |
199 | case 500..<600:
200 | throw ApiError<EndpointType.ClientErrorType>.serverError(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 | default:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:203:98: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 | default:
203 | throw ApiError<EndpointType.ClientErrorType>.unexpectedStatusCode(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 | case unexpectedResponseType(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | /// The lower level Result structure received directly from the native `URLSession` data task calls.
12 | public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | private func decodeBodyToResultType<ResultType: Decodable>(
146 | data: Data?,
147 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | endpoint: EndpointType
149 | ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:59:18: error: cannot find type 'URLRequest' in scope
57 | completion: @escaping (TypedResult<ResultType>) -> Void
58 | ) {
59 | var request: URLRequest = endpoint.buildRequest(baseUrl: baseUrl)
| `- error: cannot find type 'URLRequest' in scope
60 |
61 | for plugin in plugins {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
35 |
36 | extension Endpoint {
37 | func buildRequest(baseUrl: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
38 | var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 | /// Called to modify a request before sending.
17 | open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 | /// Called immediately before a request is sent.
20 | open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */ }
| `- error: cannot find type 'URLRequest' in scope
21 |
22 | /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:69:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | }
68 |
69 | func handleDataTaskCompletion(data: Data?, response: URLResponse?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let urlSessionResult: URLSessionResult = (data: data, response: response, error: error)
71 | let typedResult: TypedResult<ResultType> = self.decodeBody(from: urlSessionResult, endpoint: endpoint)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:96:18: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
94 | else {
95 | // this is the main logic, making the actual call
96 | URLSession.shared.dataTask(with: request, completionHandler: handleDataTaskCompletion).resume()
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
97 | }
98 | }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:108:25: error: cannot find 'DispatchGroup' in scope
106 | decodeBodyTo bodyType: ResultType.Type
107 | ) -> TypedResult<ResultType> {
108 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
109 | dispatchGroup.enter()
110 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:154:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 | }
153 |
154 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | throw ApiError<EndpointType.ClientErrorType>.unexpectedResponseType(response: response)
156 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:158:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | }
157 |
158 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | case 200..<300:
160 | if ResultType.self == EmptyBodyResponse.self {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:165:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 | guard let data = data else {
165 | throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 | }
167 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:183:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 | throw ApiError<EndpointType.ClientErrorType>
182 | .clientError(
183 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
184 | clientError: nil
185 | )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:189:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
187 |
188 | guard let data = data else {
189 | throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
190 | }
191 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:195:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 | throw ApiError<EndpointType.ClientErrorType>
194 | .clientError(
195 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 | clientError: clientError
197 | )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:200:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |
199 | case 500..<600:
200 | throw ApiError<EndpointType.ClientErrorType>.serverError(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 | default:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:203:98: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 | default:
203 | throw ApiError<EndpointType.ClientErrorType>.unexpectedStatusCode(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
10 | import Glibc
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | #endif
14 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
35 |
36 | extension Endpoint {
37 | func buildRequest(baseUrl: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
38 | var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:38:19: error: cannot find 'URLRequest' in scope
36 | extension Endpoint {
37 | func buildRequest(baseUrl: URL) -> URLRequest {
38 | var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
| `- error: cannot find 'URLRequest' in scope
39 |
40 | method.apply(to: &request)
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 | case delete
19 |
20 | func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
21 | switch self {
22 | case .get:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
35 |
36 | extension Endpoint {
37 | func buildRequest(baseUrl: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
38 | var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:38:19: error: cannot find 'URLRequest' in scope
36 | extension Endpoint {
37 | func buildRequest(baseUrl: URL) -> URLRequest {
38 | var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
| `- error: cannot find 'URLRequest' in scope
39 |
40 | method.apply(to: &request)
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 | case delete
19 |
20 | func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
21 | switch self {
22 | case .get:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:52:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | .init(
54 | url: url(baseUrl: baseUrl),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:53:6: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 |
52 | func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
53 | .init(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
54 | url: url(baseUrl: baseUrl),
55 | statusCode: statusCode,
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:52:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | .init(
54 | url: url(baseUrl: baseUrl),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:53:6: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 |
52 | func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
53 | .init(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
54 | url: url(baseUrl: baseUrl),
55 | statusCode: statusCode,
[115/186] Compiling BartyCrouchUtility Transformer.swift
error: cancelled
[123/186] Compiling Rainbow Rainbow.swift
error: cancelled
BUILD FAILURE 6.3 wasm