Build Information
Failed to build Supabase, reference v2.46.0 (dd29b6), with Swift 6.3 for Wasm on 30 Apr 2026 05:56:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/supabase/supabase-swift.git
Reference: v2.46.0
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/supabase/supabase-swift
* tag v2.46.0 -> FETCH_HEAD
HEAD is now at dd29b62 chore(main): release 2.46.0 (#984)
Cloned https://github.com/supabase/supabase-swift.git
Revision (git rev-parse @):
dd29b624b9ceea87612d0b00457e1400f7d22c2e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/supabase/supabase-swift.git at v2.46.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/supabase/supabase-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/pointfreeco/swift-clocks
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/WeTransfer/Mocker
[1/1889] Fetching mocker
[228/3206] Fetching mocker, swift-clocks
[509/4162] Fetching mocker, swift-clocks, swift-concurrency-extras
[1079/9626] Fetching mocker, swift-clocks, swift-concurrency-extras, swift-custom-dump
[3214/15349] Fetching mocker, swift-clocks, swift-concurrency-extras, swift-custom-dump, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.89s)
[10387/14393] Fetching mocker, swift-clocks, swift-custom-dump, xctest-dynamic-overlay
Fetching https://github.com/apple/swift-http-types.git
Fetched https://github.com/WeTransfer/Mocker from cache (0.93s)
[8899/12504] Fetching swift-clocks, swift-custom-dump, xctest-dynamic-overlay
Fetching https://github.com/apple/swift-crypto.git
[9530/28573] Fetching swift-clocks, swift-custom-dump, xctest-dynamic-overlay, swift-snapshot-testing
[10974/29616] Fetching swift-clocks, swift-custom-dump, xctest-dynamic-overlay, swift-snapshot-testing, swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.65s)
[11821/28573] Fetching swift-clocks, swift-custom-dump, xctest-dynamic-overlay, swift-snapshot-testing
[13309/46030] Fetching swift-clocks, swift-custom-dump, xctest-dynamic-overlay, swift-snapshot-testing, swift-crypto
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (2.19s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (2.21s)
[4628/34843] Fetching swift-clocks, swift-snapshot-testing, swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (4.70s)
Fetched https://github.com/pointfreeco/swift-clocks from cache (6.02s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (6.16s)
Computing version for https://github.com/WeTransfer/Mocker
Computed https://github.com/WeTransfer/Mocker at 3.0.2 (7.03s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.3.2 (0.82s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (0.68s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.5.0 (0.79s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.6 (0.80s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (0.75s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.2 (0.88s)
Fetching https://github.com/swiftlang/swift-syntax
[1/75037] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (10.26s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.1 (11.47s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (4.10s)
Fetching https://github.com/apple/swift-asn1.git
[1/1803] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.52s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (1.37s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.9.0
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.3.2
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.6
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.5.1
Creating working copy for https://github.com/WeTransfer/Mocker
Working copy of https://github.com/WeTransfer/Mocker resolved at 3.0.2
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.1/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.1/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.70s)
Building for debugging...
[0/407] Write sources
[32/407] Compiling _SwiftSyntaxCShims PlatformMutex.c
[33/407] Compiling CXKCPShims shims.c
[34/407] Compiling SimpleFIPS202.c
[35/407] Compiling KeccakHash.c
[36/407] Compiling KeccakSponge.c
[37/407] Compiling fiat_p256_adx_sqr.S
[38/407] Compiling fiat_p256_adx_mul.S
[39/407] Compiling md5-x86_64-linux.S
[40/407] Compiling fiat_curve25519_adx_square.S
[41/407] Compiling md5-x86_64-apple.S
[42/407] Compiling fiat_curve25519_adx_mul.S
[43/407] Write swift-version-24593BA9C3E375BF.txt
[44/407] Compiling md5-586-linux.S
[45/407] Compiling chacha20_poly1305_armv8-win.S
[46/407] Compiling md5-586-apple.S
[47/407] Compiling chacha20_poly1305_x86_64-linux.S
[48/407] Compiling chacha20_poly1305_x86_64-apple.S
[50/417] Emitting module SwiftSyntax603
[50/417] Compiling CCryptoBoringSSLShims shims.c
[51/419] Compiling err_data.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[53/450] Emitting module SnapshotTesting
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[54/454] Emitting module SwiftSyntax600
[55/454] Compiling SwiftSyntax600 Empty.swift
[56/454] Compiling SnapshotTesting UIImage.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[57/454] Compiling SnapshotTesting UIView.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[58/454] Compiling SnapshotTesting UIViewController.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[59/454] Compiling SnapshotTesting URLRequest.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[60/455] Compiling SwiftSyntax603 Empty.swift
[61/456] Emitting module SwiftSyntax601
[62/456] Compiling SwiftSyntax601 Empty.swift
[63/457] Emitting module SwiftSyntax510
[64/457] Compiling SwiftSyntax510 Empty.swift
[65/457] Emitting module SwiftSyntax509
[66/457] Compiling SwiftSyntax602 Empty.swift
[67/457] Emitting module SwiftSyntax602
[68/457] Compiling SwiftSyntax509 Empty.swift
[74/464] Compiling chacha20_poly1305_armv8-linux.S
[75/489] Compiling chacha20_poly1305_armv8-apple.S
[77/489] Emitting module IssueReportingPackageSupport
[78/489] Compiling IssueReportingPackageSupport _Test.swift
[78/490] Compiling chacha-x86_64-linux.S
[80/553] Compiling chacha-x86_64-apple.S
error: emit-module command failed with exit code 1 (use -v to see invocation)
[82/553] Emitting module Mocker
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:308:42: error: cannot find type 'URLRequest' in scope
306 |
307 | /// Used to compare the Mock data with the given `URLRequest`.
308 | static func == (mock: Mock, request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
309 | guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else { return false }
310 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | public typealias OnRequest = (_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The type of the data which designates the Content-Type header.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:70:25: error: cannot find type 'URLRequest' in scope
68 |
69 | /// The `URLRequest` to use if you did not set a specific URL.
70 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
71 |
72 | /// If `true`, checking the URL will ignore the query and match only for the scheme, host and path.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:82:23: error: cannot find type 'DispatchTimeInterval' in scope
80 |
81 | /// Add a delay to a certain mock, which makes the response returned later.
82 | public var delay: DispatchTimeInterval?
| `- error: cannot find type 'DispatchTimeInterval' in scope
83 |
84 | /// Allow response cache.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:85:45: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
83 |
84 | /// Allow response cache.
85 | public var cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
86 |
87 | /// The callback which will be executed everytime this `Mock` was completed. Can be used within unit tests for validating that a request has been executed. The callback must be set before calling `register`.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:105:31: error: cannot find type 'XCTestExpectation' in scope
103 |
104 | /// Can only be set internally as it's used by the `expectationForRequestingMock(_:)` method.
105 | var onRequestExpectation: XCTestExpectation?
| `- error: cannot find type 'XCTestExpectation' in scope
106 |
107 | /// Can only be set internally as it's used by the `expectationForCompletingMock(_:)` method.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:108:33: error: cannot find type 'XCTestExpectation' in scope
106 |
107 | /// Can only be set internally as it's used by the `expectationForCompletingMock(_:)` method.
108 | var onCompletedExpectation: XCTestExpectation?
| `- error: cannot find type 'XCTestExpectation' in scope
109 |
110 | private init(url: URL? = nil, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], requestError: Error? = nil, additionalHeaders: [String: String] = [:], fileExtensions: [String]? = nil) {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:110:91: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
108 | var onCompletedExpectation: XCTestExpectation?
109 |
110 | private init(url: URL? = nil, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], requestError: Error? = nil, additionalHeaders: [String: String] = [:], fileExtensions: [String]? = nil) {
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
111 | guard data.count > 0 else {
112 | preconditionFailure("At least one entry is required in the data dictionary")
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:186:83: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
184 | /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
185 | @available(*, deprecated, renamed: "init(url:ignoreQuery:cacheStoragePolicy:contentType:statusCode:data:additionalHeaders:requestError:)")
186 | public init(url: URL, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, dataType: DataType, statusCode: Int, data: [HTTPMethod: Data], additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
187 | self.init(
188 | url: url,
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:211:83: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
209 | /// - additionalHeaders: Additional headers to be added to the response.
210 | /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
211 | public init(url: URL, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
212 | self.init(
213 | url: url,
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:275:26: error: cannot find type 'URLRequest' in scope
273 | /// - additionalHeaders: Additional headers to be added to the response.
274 | /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
275 | public init(request: URLRequest, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: Data = Data(), additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
| `- error: cannot find type 'URLRequest' in scope
276 | guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else {
277 | preconditionFailure("Unexpected http method")
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:275:94: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
273 | /// - additionalHeaders: Additional headers to be added to the response.
274 | /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
275 | public init(request: URLRequest, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: Data = Data(), additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
276 | guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else {
277 | preconditionFailure("Unexpected http method")
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:302:28: error: cannot find type 'URLRequest' in scope
300 | /// - Parameter request: The request to match data for.
301 | /// - Returns: The `Data` which matches the request. Will be `nil` if no data is registered for the request `HTTPMethod`.
302 | func data(for request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
303 | guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else { return nil }
304 | return data[requestHTTPMethod]
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:19:47: error: cannot find type 'URLRequest' in scope
17 | public typealias OnRequest<HTTPBody> = (_ request: URLRequest, _ httpBody: HTTPBody?) -> Void
18 |
19 | private let internalCallback: (_ request: URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
20 | let legacyCallback: Mock.OnRequest?
21 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:75:25: error: cannot find 'DispatchQueue' in scope
73 |
74 | /// For Thread Safety access.
75 | private let queue = DispatchQueue(label: "mocker.mocks.access.queue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
76 |
77 | private init() {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:75:88: error: cannot infer contextual base in reference to member 'concurrent'
73 |
74 | /// For Thread Safety access.
75 | private let queue = DispatchQueue(label: "mocker.mocks.access.queue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
76 |
77 | private init() {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:108:48: error: cannot find type 'URLRequest' in scope
106 | /// - Parameter url: The URL to check for.
107 | /// - Returns: `true` if it should be mocked, `false` if the URL is registered as ignored.
108 | public static func shouldHandle(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
109 | switch mode {
110 | case .optout:
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:132:35: error: cannot find type 'URLRequest' in scope
130 | /// - Parameter request: The request to search for a mock.
131 | /// - Returns: A mock if found, `nil` if there's no mocked data registered for the given request.
132 | static func mock(for request: URLRequest) -> Mock? {
| `- error: cannot find type 'URLRequest' in scope
133 | shared.queue.sync {
134 | /// First check for specific URLs
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:35:35: error: cannot find type 'DispatchWorkItem' in scope
33 | }
34 |
35 | private var responseWorkItem: DispatchWorkItem?
| `- error: cannot find type 'DispatchWorkItem' in scope
36 |
37 | /// Returns Mocked data based on the mocks register in the `Mocker`. Will end up in an error when no Mock data is found for the request.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:38:26: error: method does not override any method from its superclass
36 |
37 | /// Returns Mocked data based on the mocks register in the `Mocker`. Will end up in an error when no Mock data is found for the request.
38 | override public func startLoading() {
| `- error: method does not override any method from its superclass
39 | guard
40 | let mock = Mocker.mock(for: request),
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:67:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | private func finishRequest(for mock: Mock, data: Data, response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | if let redirectLocation = data.redirectLocation {
69 | self.client?.urlProtocol(self, wasRedirectedTo: URLRequest(url: redirectLocation), redirectResponse: response)
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/Mocker/Sources/Mocker/MockingURLProtocol.swift:83:26: error: method does not override any method from its superclass
81 |
82 | /// Implementation does nothing, but is needed for a valid inheritance of URLProtocol.
83 | override public func stopLoading() {
| `- error: method does not override any method from its superclass
84 | responseWorkItem?.cancel()
85 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:88:77: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Simply sends back the passed request. Implementation is needed for a valid inheritance of URLProtocol.
88 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
89 | return request
90 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:88:62: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Simply sends back the passed request. Implementation is needed for a valid inheritance of URLProtocol.
88 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
89 | return request
90 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:93:54: error: cannot find type 'URLRequest' in scope
91 |
92 | /// Overrides needed to define a valid inheritance of URLProtocol.
93 | override public class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
94 | return Mocker.shouldHandle(request)
95 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:15:32: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | /// The protocol which can be used to send Mocked data back. Use the `Mocker` to register `Mock` data
15 | open class MockingURLProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | enum Error: Swift.Error, LocalizedError, CustomDebugStringConvertible {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:17:56: error: cannot find type 'URLRequest' in scope
15 | public struct OnRequestHandler {
16 |
17 | public typealias OnRequest<HTTPBody> = (_ request: URLRequest, _ httpBody: HTTPBody?) -> Void
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | private let internalCallback: (_ request: URLRequest) -> Void
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:26:78: error: '@escaping' only applies to function types
24 | /// - httpBodyType: The decodable type to use for parsing the request body.
25 | /// - callback: The callback which will be called just before the request executes.
26 | public init<HTTPBody: Decodable>(httpBodyType: HTTPBody.Type?, callback: @escaping OnRequest<HTTPBody>) {
| `- error: '@escaping' only applies to function types
27 | self.internalCallback = { request in
28 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:42:56: error: cannot find type 'URLRequest' in scope
40 | /// Creates a new request handler using the given callback to call on request without parsing the body arguments.
41 | /// - Parameter requestCallback: The callback which will be executed just before the request executes, containing the request.
42 | public init(requestCallback: @escaping (_ request: URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
43 | self.internalCallback = requestCallback
44 | legacyCallback = nil
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:58:64: error: cannot find type 'URLRequest' in scope
56 | /// Creates a new request handler using the given callback to call on request.
57 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Dictionary.
58 | public init(jsonDictionaryCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void)) {
| `- error: cannot find type 'URLRequest' in scope
59 | self.internalCallback = { request in
60 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:58:41: error: '@escaping' only applies to function types
56 | /// Creates a new request handler using the given callback to call on request.
57 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Dictionary.
58 | public init(jsonDictionaryCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void)) {
| `- error: '@escaping' only applies to function types
59 | self.internalCallback = { request in
60 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:74:59: error: cannot find type 'URLRequest' in scope
72 | /// Creates a new request handler using the given callback to call on request.
73 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Array.
74 | public init(jsonArrayCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [[String: Any]]?) -> Void)) {
| `- error: cannot find type 'URLRequest' in scope
75 | self.internalCallback = { request in
76 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:74:36: error: '@escaping' only applies to function types
72 | /// Creates a new request handler using the given callback to call on request.
73 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Array.
74 | public init(jsonArrayCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [[String: Any]]?) -> Void)) {
| `- error: '@escaping' only applies to function types
75 | self.internalCallback = { request in
76 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:102:35: error: cannot find type 'URLRequest' in scope
100 | }
101 |
102 | func handleRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
103 | internalCallback(request)
104 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:107:19: error: cannot find type 'URLRequest' in scope
105 | }
106 |
107 | private extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
108 | /// We need to use the http body stream data as the URLRequest once launched converts the `httpBody` to this stream of data.
109 | func httpBodyStreamData() -> Data? {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:13:62: error: cannot find type 'XCTestExpectation' in scope
11 |
12 | public extension XCTestCase {
13 | func expectationForRequestingMock(_ mock: inout Mock) -> XCTestExpectation {
| `- error: cannot find type 'XCTestExpectation' in scope
14 | let mockExpectation = expectation(description: "\(mock) should be requested")
15 | mock.onRequestExpectation = mockExpectation
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:19:62: error: cannot find type 'XCTestExpectation' in scope
17 | }
18 |
19 | func expectationForCompletingMock(_ mock: inout Mock) -> XCTestExpectation {
| `- error: cannot find type 'XCTestExpectation' in scope
20 | let mockExpectation = expectation(description: "\(mock) should be finishing")
21 | mock.onCompletedExpectation = mockExpectation
[82/553] Compiling chacha-x86-linux.S
[83/553] Compiling chacha-x86-apple.S
[84/573] Compiling chacha-armv8-win.S
[85/573] Compiling chacha-armv8-linux.S
[86/573] Compiling chacha-armv8-apple.S
[87/573] Compiling chacha-armv4-linux.S
[88/573] Compiling aes128gcmsiv-x86_64-linux.S
[89/573] Compiling aes128gcmsiv-x86_64-apple.S
[90/573] Compiling x86_64-mont5-linux.S
[91/573] Compiling x86_64-mont5-apple.S
[92/573] Compiling x86_64-mont-linux.S
[93/573] Compiling x86_64-mont-apple.S
[94/573] Compiling x86-mont-linux.S
[95/573] Compiling x86-mont-apple.S
[96/573] Compiling vpaes-x86_64-linux.S
[97/573] Compiling vpaes-x86_64-apple.S
[98/573] Compiling vpaes-x86-linux.S
[99/573] Compiling vpaes-x86-apple.S
[100/573] Compiling vpaes-armv8-win.S
[101/573] Compiling vpaes-armv8-linux.S
[103/573] Compiling HTTPTypes HTTPRequest.swift
[103/574] Compiling vpaes-armv8-apple.S
[104/574] Compiling vpaes-armv7-linux.S
[106/574] Emitting module HTTPTypes
[107/574] Compiling IssueReporting ErrorReporting.swift
[108/574] Compiling IssueReporting AppHostWarning.swift
[108/574] Compiling sha512-x86_64-linux.S
[109/574] Compiling sha512-x86_64-apple.S
[111/574] Compiling HTTPTypes ISOLatin1String.swift
[112/574] Compiling HTTPTypes HTTPResponse.swift
[112/574] Compiling sha512-armv8-win.S
[113/574] Compiling sha512-armv8-linux.S
[114/574] Compiling sha512-armv8-apple.S
[115/574] Compiling sha512-armv4-linux.S
[116/574] Compiling sha512-586-linux.S
[118/574] Compiling HTTPTypes NIOLock.swift
[119/574] Compiling HTTPTypes HTTPParsedFields.swift
[120/574] Compiling HTTPTypes HTTPRequest+URL.swift
[120/574] Compiling sha512-586-apple.S
[121/574] Compiling sha256-x86_64-linux.S
[123/574] Compiling Mocker XCTest+Mocker.swift
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:13:62: error: cannot find type 'XCTestExpectation' in scope
11 |
12 | public extension XCTestCase {
13 | func expectationForRequestingMock(_ mock: inout Mock) -> XCTestExpectation {
| `- error: cannot find type 'XCTestExpectation' in scope
14 | let mockExpectation = expectation(description: "\(mock) should be requested")
15 | mock.onRequestExpectation = mockExpectation
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:19:62: error: cannot find type 'XCTestExpectation' in scope
17 | }
18 |
19 | func expectationForCompletingMock(_ mock: inout Mock) -> XCTestExpectation {
| `- error: cannot find type 'XCTestExpectation' in scope
20 | let mockExpectation = expectation(description: "\(mock) should be finishing")
21 | mock.onCompletedExpectation = mockExpectation
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:14:31: error: cannot find 'expectation' in scope
12 | public extension XCTestCase {
13 | func expectationForRequestingMock(_ mock: inout Mock) -> XCTestExpectation {
14 | let mockExpectation = expectation(description: "\(mock) should be requested")
| `- error: cannot find 'expectation' in scope
15 | mock.onRequestExpectation = mockExpectation
16 | return mockExpectation
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:105:31: error: cannot find type 'XCTestExpectation' in scope
103 |
104 | /// Can only be set internally as it's used by the `expectationForRequestingMock(_:)` method.
105 | var onRequestExpectation: XCTestExpectation?
| `- error: cannot find type 'XCTestExpectation' in scope
106 |
107 | /// Can only be set internally as it's used by the `expectationForCompletingMock(_:)` method.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:20:31: error: cannot find 'expectation' in scope
18 |
19 | func expectationForCompletingMock(_ mock: inout Mock) -> XCTestExpectation {
20 | let mockExpectation = expectation(description: "\(mock) should be finishing")
| `- error: cannot find 'expectation' in scope
21 | mock.onCompletedExpectation = mockExpectation
22 | return mockExpectation
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:108:33: error: cannot find type 'XCTestExpectation' in scope
106 |
107 | /// Can only be set internally as it's used by the `expectationForCompletingMock(_:)` method.
108 | var onCompletedExpectation: XCTestExpectation?
| `- error: cannot find type 'XCTestExpectation' in scope
109 |
110 | private init(url: URL? = nil, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], requestError: Error? = nil, additionalHeaders: [String: String] = [:], fileExtensions: [String]? = nil) {
[124/574] Compiling Mocker OnRequestHandler.swift
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:17:56: error: cannot find type 'URLRequest' in scope
15 | public struct OnRequestHandler {
16 |
17 | public typealias OnRequest<HTTPBody> = (_ request: URLRequest, _ httpBody: HTTPBody?) -> Void
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | private let internalCallback: (_ request: URLRequest) -> Void
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:19:47: error: cannot find type 'URLRequest' in scope
17 | public typealias OnRequest<HTTPBody> = (_ request: URLRequest, _ httpBody: HTTPBody?) -> Void
18 |
19 | private let internalCallback: (_ request: URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
20 | let legacyCallback: Mock.OnRequest?
21 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | public typealias OnRequest = (_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The type of the data which designates the Content-Type header.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:26:78: error: '@escaping' only applies to function types
24 | /// - httpBodyType: The decodable type to use for parsing the request body.
25 | /// - callback: The callback which will be called just before the request executes.
26 | public init<HTTPBody: Decodable>(httpBodyType: HTTPBody.Type?, callback: @escaping OnRequest<HTTPBody>) {
| `- error: '@escaping' only applies to function types
27 | self.internalCallback = { request in
28 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:42:56: error: cannot find type 'URLRequest' in scope
40 | /// Creates a new request handler using the given callback to call on request without parsing the body arguments.
41 | /// - Parameter requestCallback: The callback which will be executed just before the request executes, containing the request.
42 | public init(requestCallback: @escaping (_ request: URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
43 | self.internalCallback = requestCallback
44 | legacyCallback = nil
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:58:64: error: cannot find type 'URLRequest' in scope
56 | /// Creates a new request handler using the given callback to call on request.
57 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Dictionary.
58 | public init(jsonDictionaryCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void)) {
| `- error: cannot find type 'URLRequest' in scope
59 | self.internalCallback = { request in
60 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:58:41: error: '@escaping' only applies to function types
56 | /// Creates a new request handler using the given callback to call on request.
57 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Dictionary.
58 | public init(jsonDictionaryCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void)) {
| `- error: '@escaping' only applies to function types
59 | self.internalCallback = { request in
60 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:74:59: error: cannot find type 'URLRequest' in scope
72 | /// Creates a new request handler using the given callback to call on request.
73 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Array.
74 | public init(jsonArrayCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [[String: Any]]?) -> Void)) {
| `- error: cannot find type 'URLRequest' in scope
75 | self.internalCallback = { request in
76 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:74:36: error: '@escaping' only applies to function types
72 | /// Creates a new request handler using the given callback to call on request.
73 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Array.
74 | public init(jsonArrayCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [[String: Any]]?) -> Void)) {
| `- error: '@escaping' only applies to function types
75 | self.internalCallback = { request in
76 | guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:102:35: error: cannot find type 'URLRequest' in scope
100 | }
101 |
102 | func handleRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
103 | internalCallback(request)
104 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:107:19: error: cannot find type 'URLRequest' in scope
105 | }
106 |
107 | private extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
108 | /// We need to use the http body stream data as the URLRequest once launched converts the `httpBody` to this stream of data.
109 | func httpBodyStreamData() -> Data? {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:27:35: error: cannot infer type of closure parameter 'request' without a type annotation
25 | /// - callback: The callback which will be called just before the request executes.
26 | public init<HTTPBody: Decodable>(httpBodyType: HTTPBody.Type?, callback: @escaping OnRequest<HTTPBody>) {
27 | self.internalCallback = { request in
| `- error: cannot infer type of closure parameter 'request' without a type annotation
28 | guard
29 | let httpBody = request.httpBodyStreamData() ?? request.httpBody,
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:50:35: error: cannot infer type of closure parameter '_' without a type annotation
48 | /// - Parameter callback: The callback which will be executed just before the request executes.
49 | public init(callback: @escaping () -> Void) {
50 | self.internalCallback = { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
51 | callback()
52 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:59:35: error: cannot infer type of closure parameter 'request' without a type annotation
57 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Dictionary.
58 | public init(jsonDictionaryCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void)) {
59 | self.internalCallback = { request in
| `- error: cannot infer type of closure parameter 'request' without a type annotation
60 | guard
61 | let httpBody = request.httpBodyStreamData() ?? request.httpBody,
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:75:35: error: cannot infer type of closure parameter 'request' without a type annotation
73 | /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Array.
74 | public init(jsonArrayCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [[String: Any]]?) -> Void)) {
75 | self.internalCallback = { request in
| `- error: cannot infer type of closure parameter 'request' without a type annotation
76 | guard
77 | let httpBody = request.httpBodyStreamData() ?? request.httpBody,
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:89:35: error: cannot infer type of closure parameter 'request' without a type annotation
87 |
88 | init(legacyCallback: Mock.OnRequest?) {
89 | self.internalCallback = { request in
| `- error: cannot infer type of closure parameter 'request' without a type annotation
90 | guard
91 | let httpBody = request.httpBodyStreamData() ?? request.httpBody,
[125/574] Compiling SwiftSyntax SourceEdit.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[126/574] Compiling SwiftSyntax ChildNameForKeyPath.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[127/574] Compiling SwiftSyntax Keyword.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[128/574] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[128/574] Compiling sha256-x86_64-apple.S
[130/574] Compiling Mocker MockingURLProtocol.swift
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:35:35: error: cannot find type 'DispatchWorkItem' in scope
33 | }
34 |
35 | private var responseWorkItem: DispatchWorkItem?
| `- error: cannot find type 'DispatchWorkItem' in scope
36 |
37 | /// Returns Mocked data based on the mocks register in the `Mocker`. Will end up in an error when no Mock data is found for the request.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:38:26: error: method does not override any method from its superclass
36 |
37 | /// Returns Mocked data based on the mocks register in the `Mocker`. Will end up in an error when no Mock data is found for the request.
38 | override public func startLoading() {
| `- error: method does not override any method from its superclass
39 | guard
40 | let mock = Mocker.mock(for: request),
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:67:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | private func finishRequest(for mock: Mock, data: Data, response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | if let redirectLocation = data.redirectLocation {
69 | self.client?.urlProtocol(self, wasRedirectedTo: URLRequest(url: redirectLocation), redirectResponse: response)
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/Mocker/Sources/Mocker/MockingURLProtocol.swift:83:26: error: method does not override any method from its superclass
81 |
82 | /// Implementation does nothing, but is needed for a valid inheritance of URLProtocol.
83 | override public func stopLoading() {
| `- error: method does not override any method from its superclass
84 | responseWorkItem?.cancel()
85 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:88:77: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Simply sends back the passed request. Implementation is needed for a valid inheritance of URLProtocol.
88 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
89 | return request
90 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:88:62: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Simply sends back the passed request. Implementation is needed for a valid inheritance of URLProtocol.
88 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
89 | return request
90 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:93:54: error: cannot find type 'URLRequest' in scope
91 |
92 | /// Overrides needed to define a valid inheritance of URLProtocol.
93 | override public class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
94 | return Mocker.shouldHandle(request)
95 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:15:32: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | /// The protocol which can be used to send Mocked data back. Use the `Mocker` to register `Mock` data
15 | open class MockingURLProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | enum Error: Swift.Error, LocalizedError, CustomDebugStringConvertible {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:40:41: error: cannot find 'request' in scope
38 | override public func startLoading() {
39 | guard
40 | let mock = Mocker.mock(for: request),
| `- error: cannot find 'request' in scope
41 | let response = HTTPURLResponse(url: mock.request.url!, statusCode: mock.statusCode, httpVersion: Mocker.httpVersion.rawValue, headerFields: mock.headers),
42 | let data = mock.data(for: request)
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:132:35: error: cannot find type 'URLRequest' in scope
130 | /// - Parameter request: The request to search for a mock.
131 | /// - Returns: A mock if found, `nil` if there's no mocked data registered for the given request.
132 | static func mock(for request: URLRequest) -> Mock? {
| `- error: cannot find type 'URLRequest' in scope
133 | shared.queue.sync {
134 | /// First check for specific URLs
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:41:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | guard
40 | let mock = Mocker.mock(for: request),
41 | let response = HTTPURLResponse(url: mock.request.url!, statusCode: mock.statusCode, httpVersion: Mocker.httpVersion.rawValue, headerFields: mock.headers),
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | let data = mock.data(for: request)
43 | else {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:42:39: error: cannot find 'request' in scope
40 | let mock = Mocker.mock(for: request),
41 | let response = HTTPURLResponse(url: mock.request.url!, statusCode: mock.statusCode, httpVersion: Mocker.httpVersion.rawValue, headerFields: mock.headers),
42 | let data = mock.data(for: request)
| `- error: cannot find 'request' in scope
43 | else {
44 | print("\n\n 🚨 No mocked data found for url \(String(describing: request.url?.absoluteString)) method \(String(describing: request.httpMethod)). Did you forget to use `register()`? 🚨 \n\n")
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:44:80: error: cannot find 'request' in scope
42 | let data = mock.data(for: request)
43 | else {
44 | print("\n\n 🚨 No mocked data found for url \(String(describing: request.url?.absoluteString)) method \(String(describing: request.httpMethod)). Did you forget to use `register()`? 🚨 \n\n")
| `- error: cannot find 'request' in scope
45 | client?.urlProtocol(self, didFailWithError: Error.missingMockedData(url: String(describing: request.url?.absoluteString)))
46 | return
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:44:138: error: cannot find 'request' in scope
42 | let data = mock.data(for: request)
43 | else {
44 | print("\n\n 🚨 No mocked data found for url \(String(describing: request.url?.absoluteString)) method \(String(describing: request.httpMethod)). Did you forget to use `register()`? 🚨 \n\n")
| `- error: cannot find 'request' in scope
45 | client?.urlProtocol(self, didFailWithError: Error.missingMockedData(url: String(describing: request.url?.absoluteString)))
46 | return
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:45:13: error: cannot find 'client' in scope
43 | else {
44 | print("\n\n 🚨 No mocked data found for url \(String(describing: request.url?.absoluteString)) method \(String(describing: request.httpMethod)). Did you forget to use `register()`? 🚨 \n\n")
45 | client?.urlProtocol(self, didFailWithError: Error.missingMockedData(url: String(describing: request.url?.absoluteString)))
| `- error: cannot find 'client' in scope
46 | return
47 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:45:105: error: cannot find 'request' in scope
43 | else {
44 | print("\n\n 🚨 No mocked data found for url \(String(describing: request.url?.absoluteString)) method \(String(describing: request.httpMethod)). Did you forget to use `register()`? 🚨 \n\n")
45 | client?.urlProtocol(self, didFailWithError: Error.missingMockedData(url: String(describing: request.url?.absoluteString)))
| `- error: cannot find 'request' in scope
46 | return
47 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:50:44: error: cannot find 'request' in scope
48 |
49 | if let onRequestHandler = mock.onRequestHandler {
50 | onRequestHandler.handleRequest(request)
| `- error: cannot find 'request' in scope
51 | }
52 | mock.onRequestExpectation?.fulfill()
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:59:33: error: cannot find 'DispatchWorkItem' in scope
57 | }
58 |
59 | self.responseWorkItem = DispatchWorkItem(block: { [weak self] in
| `- error: cannot find 'DispatchWorkItem' in scope
60 | guard let self = self else { return }
61 | self.finishRequest(for: mock, data: data, response: response)
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:64:9: error: cannot find 'DispatchQueue' in scope
62 | })
63 |
64 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated).asyncAfter(deadline: .now() + delay, execute: responseWorkItem!)
| `- error: cannot find 'DispatchQueue' in scope
65 | }
66 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:64:35: error: cannot find 'DispatchQoS' in scope
62 | })
63 |
64 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated).asyncAfter(deadline: .now() + delay, execute: responseWorkItem!)
| `- error: cannot find 'DispatchQoS' in scope
65 | }
66 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:69:61: error: cannot find 'URLRequest' in scope
67 | private func finishRequest(for mock: Mock, data: Data, response: HTTPURLResponse) {
68 | if let redirectLocation = data.redirectLocation {
69 | self.client?.urlProtocol(self, wasRedirectedTo: URLRequest(url: redirectLocation), redirectResponse: response)
| `- error: cannot find 'URLRequest' in scope
70 | } else if let requestError = mock.requestError {
71 | self.client?.urlProtocol(self, didFailWithError: requestError)
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:69:18: error: value of type 'MockingURLProtocol' has no member 'client'
67 | private func finishRequest(for mock: Mock, data: Data, response: HTTPURLResponse) {
68 | if let redirectLocation = data.redirectLocation {
69 | self.client?.urlProtocol(self, wasRedirectedTo: URLRequest(url: redirectLocation), redirectResponse: response)
| `- error: value of type 'MockingURLProtocol' has no member 'client'
70 | } else if let requestError = mock.requestError {
71 | self.client?.urlProtocol(self, didFailWithError: requestError)
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:71:18: error: value of type 'MockingURLProtocol' has no member 'client'
69 | self.client?.urlProtocol(self, wasRedirectedTo: URLRequest(url: redirectLocation), redirectResponse: response)
70 | } else if let requestError = mock.requestError {
71 | self.client?.urlProtocol(self, didFailWithError: requestError)
| `- error: value of type 'MockingURLProtocol' has no member 'client'
72 | } else {
73 | self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: mock.cacheStoragePolicy)
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:85:45: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
83 |
84 | /// Allow response cache.
85 | public var cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
86 |
87 | /// The callback which will be executed everytime this `Mock` was completed. Can be used within unit tests for validating that a request has been executed. The callback must be set before calling `register`.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:73:18: error: value of type 'MockingURLProtocol' has no member 'client'
71 | self.client?.urlProtocol(self, didFailWithError: requestError)
72 | } else {
73 | self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: mock.cacheStoragePolicy)
| `- error: value of type 'MockingURLProtocol' has no member 'client'
74 | self.client?.urlProtocol(self, didLoad: data)
75 | self.client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:74:18: error: value of type 'MockingURLProtocol' has no member 'client'
72 | } else {
73 | self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: mock.cacheStoragePolicy)
74 | self.client?.urlProtocol(self, didLoad: data)
| `- error: value of type 'MockingURLProtocol' has no member 'client'
75 | self.client?.urlProtocolDidFinishLoading(self)
76 | }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:75:18: error: value of type 'MockingURLProtocol' has no member 'client'
73 | self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: mock.cacheStoragePolicy)
74 | self.client?.urlProtocol(self, didLoad: data)
75 | self.client?.urlProtocolDidFinishLoading(self)
| `- error: value of type 'MockingURLProtocol' has no member 'client'
76 | }
77 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:108:33: error: cannot find type 'XCTestExpectation' in scope
106 |
107 | /// Can only be set internally as it's used by the `expectationForCompletingMock(_:)` method.
108 | var onCompletedExpectation: XCTestExpectation?
| `- error: cannot find type 'XCTestExpectation' in scope
109 |
110 | private init(url: URL? = nil, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], requestError: Error? = nil, additionalHeaders: [String: String] = [:], fileExtensions: [String]? = nil) {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:108:48: error: cannot find type 'URLRequest' in scope
106 | /// - Parameter url: The URL to check for.
107 | /// - Returns: `true` if it should be mocked, `false` if the URL is registered as ignored.
108 | public static func shouldHandle(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
109 | switch mode {
110 | case .optout:
[131/574] Compiling IssueReporting UncheckedSendable.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[132/574] Compiling IssueReporting Warn.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[133/574] Compiling IssueReporting IssueSeverity.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[134/574] Compiling IssueReporting ReportIssue.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[135/574] Compiling IssueReporting Rethrows.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[136/574] Compiling IssueReporting XCTest.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[137/574] Compiling IssueReporting IsTesting.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[138/574] Compiling IssueReporting IssueReporter.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[139/574] Compiling IssueReporting SwiftTesting.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[140/574] Compiling IssueReporting FatalErrorReporter.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[141/574] Compiling SwiftSyntax MemoryLayout.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[142/574] Compiling SwiftSyntax MissingNodeInitializers.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[143/574] Compiling SwiftSyntax RawSyntax.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[144/574] Compiling SwiftSyntax RawSyntaxArena.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[145/574] Compiling SwiftSyntax RawSyntaxLayoutView.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[146/574] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[147/574] Compiling SwiftSyntax RawSyntaxTokenView.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[148/574] Compiling IssueReporting TestContext.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[149/574] Compiling IssueReporting Unimplemented.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[150/574] Compiling IssueReporting BreakpointReporter.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[151/574] Compiling IssueReporting DefaultReporter.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[151/574] Compiling sha256-armv8-win.S
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[155/574] Compiling IssueReporting Deprecations.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[156/574] Compiling IssueReporting FailureObserver.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[157/574] Compiling IssueReporting LockIsolated.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:577:10: error: no such module 'CoreServices'
575 |
576 | #if !os(Android) && !os(Linux) && !os(Windows)
577 | import CoreServices
| `- error: no such module 'CoreServices'
578 |
579 | func uniformTypeIdentifier(fromExtension pathExtension: String) -> String? {
[157/574] Compiling sha256-armv8-linux.S
[157/574] Compiling KeccakP-1600-opt64.c
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:308:42: error: cannot find type 'URLRequest' in scope
306 |
307 | /// Used to compare the Mock data with the given `URLRequest`.
308 | static func == (mock: Mock, request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
309 | guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else { return false }
310 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:75:25: error: cannot find 'DispatchQueue' in scope
73 |
74 | /// For Thread Safety access.
75 | private let queue = DispatchQueue(label: "mocker.mocks.access.queue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
76 |
77 | private init() {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:75:88: error: cannot infer contextual base in reference to member 'concurrent'
73 |
74 | /// For Thread Safety access.
75 | private let queue = DispatchQueue(label: "mocker.mocks.access.queue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
76 |
77 | private init() {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:108:48: error: cannot find type 'URLRequest' in scope
106 | /// - Parameter url: The URL to check for.
107 | /// - Returns: `true` if it should be mocked, `false` if the URL is registered as ignored.
108 | public static func shouldHandle(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
109 | switch mode {
110 | case .optout:
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:132:35: error: cannot find type 'URLRequest' in scope
130 | /// - Parameter request: The request to search for a mock.
131 | /// - Returns: A mock if found, `nil` if there's no mocked data registered for the given request.
132 | static func mock(for request: URLRequest) -> Mock? {
| `- error: cannot find type 'URLRequest' in scope
133 | shared.queue.sync {
134 | /// First check for specific URLs
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:79:25: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
77 | private init() {
78 | // Whenever someone is requesting the Mocker, we want the URL protocol to be activated.
79 | _ = URLProtocol.registerClass(MockingURLProtocol.self)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
80 | }
81 |
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:86:36: error: cannot infer contextual base in reference to member 'barrier'
84 | /// - Parameter mock: The Mock to be registered for future requests.
85 | public static func register(_ mock: Mock) {
86 | shared.queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
87 | /// Delete the Mock if it was already registered.
88 | shared.mocks.removeAll(where: { $0 == mock })
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:98:36: error: cannot infer contextual base in reference to member 'barrier'
96 | /// - Parameter ignoreQuery: If `true`, checking the URL will ignore the query and match only for the scheme, host and path. Defaults to `false`.
97 | public static func ignore(_ url: URL, ignoreQuery: Bool = false) {
98 | shared.queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
99 | let rule = IgnoredRule(urlToIgnore: url, ignoreQuery: ignoreQuery)
100 | shared.ignoredRules.append(rule)
BUILD FAILURE 6.3 wasm