Build Information
Failed to build Partial, reference v1.1.0 (12c065
), with Swift 6.1 for Wasm on 27 May 2025 21:09:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
Fetching https://github.com/nerdishbynature/octokit.swift
Fetching https://github.com/mxcl/Version
[1/288] Fetching version
[289/404] Fetching version, logger
[405/5399] Fetching version, logger, octokit.swift
Fetched https://github.com/mxcl/Version from cache (0.41s)
Fetched https://github.com/shibapm/Logger from cache (0.43s)
Fetched https://github.com/nerdishbynature/octokit.swift from cache (0.43s)
Computing version for https://github.com/nerdishbynature/octokit.swift
Computed https://github.com/nerdishbynature/octokit.swift at 0.14.0 (0.86s)
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1554] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.71s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 3.3.0 (1.32s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.1.0 (0.50s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (1.89s)
Computing version for https://github.com/Realm/SwiftLint
Computed https://github.com/Realm/SwiftLint at 0.59.1 (0.88s)
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/JohnSundell/CollectionConcurrencyKit.git
Fetching https://github.com/jpsim/Yams.git
[1/84] Fetching collectionconcurrencykit
[19/1013] Fetching collectionconcurrencykit, swiftytexttable
[998/17125] Fetching collectionconcurrencykit, swiftytexttable, sourcekitten
[1643/30066] Fetching collectionconcurrencykit, swiftytexttable, sourcekitten, cryptoswift
[5550/40723] Fetching collectionconcurrencykit, swiftytexttable, sourcekitten, cryptoswift, yams
[26088/111167] Fetching collectionconcurrencykit, swiftytexttable, sourcekitten, cryptoswift, yams, swift-syntax
Fetched https://github.com/JohnSundell/CollectionConcurrencyKit.git from cache (2.07s)
[76566/111083] Fetching swiftytexttable, sourcekitten, cryptoswift, yams, swift-syntax
Fetching https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/jpsim/Yams.git from cache (2.12s)
[70840/100426] Fetching swiftytexttable, sourcekitten, cryptoswift, swift-syntax
[99723/115777] Fetching swiftytexttable, sourcekitten, cryptoswift, swift-syntax, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.44s)
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (6.17s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (6.19s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (6.20s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.24s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (6.89s)
Computing version for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Computed https://github.com/JohnSundell/CollectionConcurrencyKit.git at 0.2.0 (0.52s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (6.05s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.37.0 (7.11s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[1/2820] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.0 (1.13s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (0.87s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (2.46s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (6.30s)
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/mxcl/Version
Working copy of https://github.com/mxcl/Version resolved at 2.1.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.4
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/JosephDuffy/SwiftChecksDangerPlugin.git
Working copy of https://github.com/JosephDuffy/SwiftChecksDangerPlugin.git resolved at 0.3.0
Creating working copy for https://github.com/danger/swift.git
Working copy of https://github.com/danger/swift.git resolved at 3.21.1
Creating working copy for https://github.com/Realm/SwiftLint
Working copy of https://github.com/Realm/SwiftLint resolved at 0.59.1
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at 3.3.0
Creating working copy for https://github.com/nerdishbynature/octokit.swift
Working copy of https://github.com/nerdishbynature/octokit.swift resolved at 0.14.0
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 7.0.2
Creating working copy for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Working copy of https://github.com/JohnSundell/CollectionConcurrencyKit.git resolved at 0.2.0
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable.git
Working copy of https://github.com/scottrhoyt/SwiftyTextTable.git resolved at 0.9.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.0
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.37.0
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
[1/1] Compiling plugin SwiftLintCommandPlugin
[2/2] Compiling plugin SwiftLintBuildToolPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/152] Write sources
[39/152] Compiling SourceKit SourceKit.c
[39/152] Compiling _SwiftSyntaxCShims dummy.c
[40/152] Copying PrivacyInfo.xcprivacy
[40/152] Write sources
[45/152] Compiling Clang_C Clang_C.c
[46/152] Compiling writer.c
[47/152] Compiling api.c
[47/152] Write sources
[49/152] Compiling parser.c
[50/152] Write sources
[50/152] Compiling api.c
[51/152] Write sources
[71/152] Compiling SourceKit SourceKit.c
[71/152] Compiling _SwiftSyntaxCShims dummy.c
[73/152] Compiling Clang_C Clang_C.c
[74/152] Compiling emitter.c
[76/152] Compiling reader.c
[77/152] Compiling writer.c
[78/152] Compiling reader.c
[79/152] Write swift-version-24593BA9C3E375BF.txt
[80/152] Compiling parser.c
[81/152] Compiling scanner.c
[84/186] Compiling SwiftSyntax600 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[85/186] Compiling SwiftSyntax510 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[86/186] Emitting module SwiftSyntax510
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[87/186] Emitting module SwiftSyntax600
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[90/188] Compiling SwiftSyntax510 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[91/188] Emitting module SwiftSyntax510
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[92/189] Emitting module SwiftSyntax509
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[93/189] Compiling SwiftSyntax509 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[94/190] Compiling SwiftSyntax600 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[95/190] Emitting module SwiftSyntax600
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[98/209] Compiling Yams Tag.swift
[99/209] Compiling Yams YamlAnchorProviding.swift
[101/215] Emitting module SwiftSyntax509
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[102/215] Compiling SwiftSyntax509 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[104/220] Emitting module Yams
[105/332] Compiling SwiftyTextTable TextTable.swift
[106/332] Emitting module SwiftyTextTable
[108/397] Compiling SwiftyTextTable TextTable.swift
[109/397] Emitting module SwiftyTextTable
[110/398] Compiling SwiftSyntax RawSyntaxTokenView.swift
[111/398] Compiling SwiftSyntax SourceEdit.swift
[112/398] Compiling SwiftSyntax SourcePresence.swift
[113/398] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[114/398] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:40:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
38 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
39 | if let response = response as? HTTPURLResponse {
40 | if !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
41 | var userInfo = [String: Any]()
42 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:78:90: error: 'nil' requires a contextual type
76 |
77 | let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
78 | let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
| `- error: 'nil' requires a contextual type
79 | if let response = responseTuple.1 as? HTTPURLResponse {
80 | if !response.wasSuccessful {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:121:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
119 |
120 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
121 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
122 | var userInfo = [String: Any]()
123 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:167:90: error: 'nil' requires a contextual type
165 |
166 | let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
167 | let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
| `- error: 'nil' requires a contextual type
168 | if let response = responseTuple.1 as? HTTPURLResponse, response.wasSuccessful == false {
169 | var userInfo = [String: Any]()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[115/398] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 | @available(*, deprecated, message: "Plase use `load` method instead")
154 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 | }
159 |
160 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 | }
206 |
207 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 | guard let request = request() else {
209 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 | guard let request = request() else {
237 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 | }
254 |
255 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 | let decoder = JSONDecoder()
257 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 | }
262 |
263 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 | guard let request = request() else {
265 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 | var wasSuccessful: Bool {
296 | let successRange = 200 ..< 300
[117/398] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:26:40: error: cannot find type 'URLRequest' in scope
24 |
25 | extension URLSession: RequestKitURLSession {
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
| `- error: cannot find type 'URLRequest' in scope
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
28 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:30:42: error: cannot find type 'URLRequest' in scope
28 | }
29 |
30 | public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
| `- error: cannot find type 'URLRequest' in scope
31 | return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
32 | }
[118/398] Compiling SwiftSyntax Identifier.swift
[119/398] Compiling SwiftSyntax MemoryLayout.swift
[120/398] Compiling SwiftSyntax MissingNodeInitializers.swift
[121/398] Compiling SwiftSyntax Assert.swift
[122/398] Compiling SwiftSyntax BumpPtrAllocator.swift
[123/398] Compiling SwiftSyntax CommonAncestor.swift
[124/398] Compiling SwiftSyntax RawSyntax.swift
[125/398] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[126/398] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[127/398] Compiling SwiftSyntax SourceLength.swift
[128/398] Compiling SwiftSyntax SourceLocation.swift
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the parsing actually happens.
33 | class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:64:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | }
63 |
64 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
65 | didStartElement elementName: String,
66 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:76:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
74 | }
75 |
76 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
77 | let current = parentStack.top()
78 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:82:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
80 | }
81 |
82 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
83 | didEndElement elementName: String,
84 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:89:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
87 | }
88 |
89 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
90 | if let cdataText = String(data: CDATABlock, encoding: String.Encoding.utf8) {
91 | let current = parentStack.top()
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:97:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
95 | }
96 |
97 | func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
98 | #if os(Linux) && !swift(>=4.1.50)
99 | if let err = parseError as? NSError {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:52:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | parentStack.push(root)
51 |
52 | let parser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
54 | parser.delegate = self
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the parsing actually happens.
33 | class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:64:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | }
63 |
64 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
65 | didStartElement elementName: String,
66 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:76:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
74 | }
75 |
76 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
77 | let current = parentStack.top()
78 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:82:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
80 | }
81 |
82 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
83 | didEndElement elementName: String,
84 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:89:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
87 | }
88 |
89 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
90 | if let cdataText = String(data: CDATABlock, encoding: String.Encoding.utf8) {
91 | let current = parentStack.top()
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:97:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
95 | }
96 |
97 | func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
98 | #if os(Linux) && !swift(>=4.1.50)
99 | if let err = parseError as? NSError {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:52:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | parentStack.push(root)
51 |
52 | let parser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
54 | parser.delegate = self
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the parsing actually happens.
33 | class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:64:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | }
63 |
64 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
65 | didStartElement elementName: String,
66 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:76:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
74 | }
75 |
76 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
77 | let current = parentStack.top()
78 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:82:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
80 | }
81 |
82 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
83 | didEndElement elementName: String,
84 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:89:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
87 | }
88 |
89 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
90 | if let cdataText = String(data: CDATABlock, encoding: String.Encoding.utf8) {
91 | let current = parentStack.top()
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:97:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
95 | }
96 |
97 | func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
98 | #if os(Linux) && !swift(>=4.1.50)
99 | if let err = parseError as? NSError {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:52:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | parentStack.push(root)
51 |
52 | let parser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
54 | parser.delegate = self
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the lazy parsing actually happens.
33 | class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:66:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
64 | }
65 |
66 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
67 | didStartElement elementName: String,
68 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:83:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
81 | }
82 |
83 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
84 | if !onMatch() {
85 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:93:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
91 | }
92 |
93 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
94 | if !onMatch() {
95 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:105:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
103 | }
104 |
105 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
106 | didEndElement elementName: String,
107 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:60:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 |
59 | self.ops = ops
60 | let parser = XMLParser(data: data!)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
62 | parser.delegate = self
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the lazy parsing actually happens.
33 | class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:66:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
64 | }
65 |
66 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
67 | didStartElement elementName: String,
68 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:83:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
81 | }
82 |
83 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
84 | if !onMatch() {
85 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:93:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
91 | }
92 |
93 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
94 | if !onMatch() {
95 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:105:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
103 | }
104 |
105 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
106 | didEndElement elementName: String,
107 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:60:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 |
59 | self.ops = ops
60 | let parser = XMLParser(data: data!)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
62 | parser.delegate = self
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the lazy parsing actually happens.
33 | class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:66:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
64 | }
65 |
66 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
67 | didStartElement elementName: String,
68 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:83:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
81 | }
82 |
83 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
84 | if !onMatch() {
85 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:93:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
91 | }
92 |
93 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
94 | if !onMatch() {
95 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:105:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
103 | }
104 |
105 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
106 | didEndElement elementName: String,
107 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:60:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 |
59 | self.ops = ops
60 | let parser = XMLParser(data: data!)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
62 | parser.delegate = self
[140/403] Compiling RequestKit Router.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 | @available(*, deprecated, message: "Plase use `load` method instead")
154 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 | }
159 |
160 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 | }
206 |
207 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 | guard let request = request() else {
209 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 | guard let request = request() else {
237 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 | }
254 |
255 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 | let decoder = JSONDecoder()
257 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 | }
262 |
263 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 | guard let request = request() else {
265 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 | var wasSuccessful: Bool {
296 | let successRange = 200 ..< 300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:139:37: error: cannot find 'URLRequest' in scope
137 | switch encoding {
138 | case .url, .json:
139 | var mutableURLRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
140 | mutableURLRequest.httpMethod = method.rawValue
141 | return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:37: error: cannot find 'URLRequest' in scope
143 | let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
144 | urlComponents.queryItems = nil // clear the query items as they go into the body
145 | var mutableURLRequest = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
146 | mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
147 | mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:179:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
177 | let task = session.dataTask(with: request) { data, response, err in
178 | if let response = response as? HTTPURLResponse {
179 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
180 | var userInfo = [String: Any]()
181 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:214:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
212 | let task = session.dataTask(with: request) { data, response, err in
213 | if let response = response as? HTTPURLResponse {
214 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
215 | var userInfo = [String: Any]()
216 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:240:76: error: 'nil' requires a contextual type
238 | }
239 |
240 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
241 |
242 | if let response = responseTuple.1 as? HTTPURLResponse {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:268:76: error: 'nil' requires a contextual type
266 | }
267 |
268 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
269 | if let response = responseTuple.1 as? HTTPURLResponse {
270 | if response.wasSuccessful == false {
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[141/403] Compiling SwiftSyntax Convenience.swift
[142/403] Compiling SwiftSyntax CustomTraits.swift
[143/403] Compiling SwiftSyntax EditorPlaceholder.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
[0/1] Planning build
[1/1] Compiling plugin SwiftLintCommandPlugin
[2/2] Compiling plugin SwiftLintBuildToolPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/73] Write swift-version-24593BA9C3E375BF.txt
[5/87] Emitting module SwiftSyntax510
[6/87] Compiling SwiftSyntax510 Empty.swift
[8/88] Compiling SwiftSyntax600 Empty.swift
[9/88] Emitting module SwiftSyntax600
[11/89] Compiling SwiftSyntax600 Empty.swift
[12/90] Emitting module SwiftSyntax510
[14/111] Compiling SwiftSyntax509 Empty.swift
[15/111] Emitting module SwiftSyntax509
[20/186] Emitting module SwiftyTextTable
[21/186] Compiling SwiftyTextTable TextTable.swift
[22/187] Compiling SwiftSyntax509 Empty.swift
[23/187] Emitting module SwiftSyntax509
[24/188] Emitting module SwiftyTextTable
[25/188] Compiling SwiftyTextTable TextTable.swift
[27/189] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:26:40: error: cannot find type 'URLRequest' in scope
24 |
25 | extension URLSession: RequestKitURLSession {
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
| `- error: cannot find type 'URLRequest' in scope
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
28 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:30:42: error: cannot find type 'URLRequest' in scope
28 | }
29 |
30 | public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
| `- error: cannot find type 'URLRequest' in scope
31 | return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
32 | }
[28/189] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:40:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
38 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
39 | if let response = response as? HTTPURLResponse {
40 | if !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
41 | var userInfo = [String: Any]()
42 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:78:90: error: 'nil' requires a contextual type
76 |
77 | let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
78 | let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
| `- error: 'nil' requires a contextual type
79 | if let response = responseTuple.1 as? HTTPURLResponse {
80 | if !response.wasSuccessful {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:121:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
119 |
120 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
121 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
122 | var userInfo = [String: Any]()
123 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:167:90: error: 'nil' requires a contextual type
165 |
166 | let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
167 | let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
| `- error: 'nil' requires a contextual type
168 | if let response = responseTuple.1 as? HTTPURLResponse, response.wasSuccessful == false {
169 | var userInfo = [String: Any]()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/189] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
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/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 | @available(*, deprecated, message: "Plase use `load` method instead")
154 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 | }
159 |
160 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 | }
206 |
207 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 | guard let request = request() else {
209 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 | guard let request = request() else {
237 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 | }
254 |
255 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 | let decoder = JSONDecoder()
257 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 | }
262 |
263 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 | guard let request = request() else {
265 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 | var wasSuccessful: Bool {
296 | let successRange = 200 ..< 300
[32/189] Compiling SWXMLHash XMLDeserializationError.swift
[33/189] Compiling SWXMLHash FullXMLParser.swift
[34/189] Compiling SWXMLHash IndexOp.swift
[35/189] Compiling SWXMLHash LazyXMLParser.swift
[36/191] Compiling SWXMLHash ParsingError.swift
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the parsing actually happens.
33 | class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:64:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | }
63 |
64 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
65 | didStartElement elementName: String,
66 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:76:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
74 | }
75 |
76 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
77 | let current = parentStack.top()
78 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:82:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
80 | }
81 |
82 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
83 | didEndElement elementName: String,
84 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:89:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
87 | }
88 |
89 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
90 | if let cdataText = String(data: CDATABlock, encoding: String.Encoding.utf8) {
91 | let current = parentStack.top()
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:97:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
95 | }
96 |
97 | func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
98 | #if os(Linux) && !swift(>=4.1.50)
99 | if let err = parseError as? NSError {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:52:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | parentStack.push(root)
51 |
52 | let parser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
54 | parser.delegate = self
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the parsing actually happens.
33 | class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:64:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | }
63 |
64 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
65 | didStartElement elementName: String,
66 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:76:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
74 | }
75 |
76 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
77 | let current = parentStack.top()
78 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:82:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
80 | }
81 |
82 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
83 | didEndElement elementName: String,
84 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:89:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
87 | }
88 |
89 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
90 | if let cdataText = String(data: CDATABlock, encoding: String.Encoding.utf8) {
91 | let current = parentStack.top()
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:97:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
95 | }
96 |
97 | func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
98 | #if os(Linux) && !swift(>=4.1.50)
99 | if let err = parseError as? NSError {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:52:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | parentStack.push(root)
51 |
52 | let parser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
54 | parser.delegate = self
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the parsing actually happens.
33 | class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:64:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | }
63 |
64 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
65 | didStartElement elementName: String,
66 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:76:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
74 | }
75 |
76 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
77 | let current = parentStack.top()
78 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:82:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
80 | }
81 |
82 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
83 | didEndElement elementName: String,
84 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:89:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
87 | }
88 |
89 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
90 | if let cdataText = String(data: CDATABlock, encoding: String.Encoding.utf8) {
91 | let current = parentStack.top()
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:97:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
95 | }
96 |
97 | func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
98 | #if os(Linux) && !swift(>=4.1.50)
99 | if let err = parseError as? NSError {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:52:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | parentStack.push(root)
51 |
52 | let parser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
54 | parser.delegate = self
[39/194] Compiling SWXMLHash XMLElementDeserializable.swift
[40/194] Compiling SWXMLHash XMLIndexer+XMLDeserialization.swift
[41/194] Compiling SWXMLHash XMLObjectDeserialization.swift
[42/194] Compiling SWXMLHash XMLValueDeserialization.swift
[43/194] Compiling SWXMLHash Bool+XMLDeserialization.swift
[44/194] Compiling SWXMLHash Double+XMLDeserialization.swift
[45/194] Compiling SWXMLHash Float+XMLDeserialization.swift
[46/194] Compiling RequestKit Router.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 | @available(*, deprecated, message: "Plase use `load` method instead")
154 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 | }
159 |
160 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 | }
206 |
207 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 | guard let request = request() else {
209 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 | guard let request = request() else {
237 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 | }
254 |
255 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 | let decoder = JSONDecoder()
257 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 | }
262 |
263 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 | guard let request = request() else {
265 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 | var wasSuccessful: Bool {
296 | let successRange = 200 ..< 300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:139:37: error: cannot find 'URLRequest' in scope
137 | switch encoding {
138 | case .url, .json:
139 | var mutableURLRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
140 | mutableURLRequest.httpMethod = method.rawValue
141 | return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:37: error: cannot find 'URLRequest' in scope
143 | let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
144 | urlComponents.queryItems = nil // clear the query items as they go into the body
145 | var mutableURLRequest = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
146 | mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
147 | mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:179:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
177 | let task = session.dataTask(with: request) { data, response, err in
178 | if let response = response as? HTTPURLResponse {
179 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
180 | var userInfo = [String: Any]()
181 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:214:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
212 | let task = session.dataTask(with: request) { data, response, err in
213 | if let response = response as? HTTPURLResponse {
214 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
215 | var userInfo = [String: Any]()
216 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:240:76: error: 'nil' requires a contextual type
238 | }
239 |
240 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
241 |
242 | if let response = responseTuple.1 as? HTTPURLResponse {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:268:76: error: 'nil' requires a contextual type
266 | }
267 |
268 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
269 | if let response = responseTuple.1 as? HTTPURLResponse {
270 | if response.wasSuccessful == false {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/194] Compiling SWXMLHash Int+XMLDeserialization.swift
[48/194] Compiling SWXMLHash String+XMLDeserialization.swift
[49/194] Compiling SWXMLHash IndexingError.swift
[50/194] Compiling SWXMLHash XMLAttributeDeserializable.swift
[51/194] Emitting module SWXMLHash
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the parsing actually happens.
33 | class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:64:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | }
63 |
64 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
65 | didStartElement elementName: String,
66 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:76:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
74 | }
75 |
76 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
77 | let current = parentStack.top()
78 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:82:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
80 | }
81 |
82 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
83 | didEndElement elementName: String,
84 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:89:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
87 | }
88 |
89 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
90 | if let cdataText = String(data: CDATABlock, encoding: String.Encoding.utf8) {
91 | let current = parentStack.top()
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/FullXMLParser.swift:97:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
95 | }
96 |
97 | func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
98 | #if os(Linux) && !swift(>=4.1.50)
99 | if let err = parseError as? NSError {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the lazy parsing actually happens.
33 | class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:66:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
64 | }
65 |
66 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
67 | didStartElement elementName: String,
68 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:83:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
81 | }
82 |
83 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
84 | if !onMatch() {
85 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:93:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
91 | }
92 |
93 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
94 | if !onMatch() {
95 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:105:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
103 | }
104 |
105 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
106 | didEndElement elementName: String,
107 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
[54/194] Compiling Yams YamlError.swift
[55/194] Compiling SWXMLHash String+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the lazy parsing actually happens.
33 | class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:66:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
64 | }
65 |
66 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
67 | didStartElement elementName: String,
68 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:83:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
81 | }
82 |
83 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
84 | if !onMatch() {
85 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:93:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
91 | }
92 |
93 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
94 | if !onMatch() {
95 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:105:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
103 | }
104 |
105 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
106 | didEndElement elementName: String,
107 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:60:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 |
59 | self.ops = ops
60 | let parser = XMLParser(data: data!)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
62 | parser.delegate = self
[56/194] Compiling SWXMLHash TextElement.swift
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the lazy parsing actually happens.
33 | class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:66:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
64 | }
65 |
66 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
67 | didStartElement elementName: String,
68 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:83:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
81 | }
82 |
83 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
84 | if !onMatch() {
85 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:93:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
91 | }
92 |
93 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
94 | if !onMatch() {
95 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:105:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
103 | }
104 |
105 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
106 | didEndElement elementName: String,
107 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:60:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 |
59 | self.ops = ops
60 | let parser = XMLParser(data: data!)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
62 | parser.delegate = self
[57/194] Compiling SWXMLHash XMLAttribute.swift
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:33:49: error: cannot find type 'XMLParserDelegate' in scope
31 |
32 | /// The implementation of XMLParserDelegate and where the lazy parsing actually happens.
33 | class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
34 | required init(_ options: XMLHashOptions) {
35 | root = XMLElement(name: rootElementName, options: options)
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:66:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
64 | }
65 |
66 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
67 | didStartElement elementName: String,
68 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:83:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
81 | }
82 |
83 | func parser(_ parser: XMLParser, foundCharacters string: String) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
84 | if !onMatch() {
85 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:93:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
91 | }
92 |
93 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
94 | if !onMatch() {
95 | return
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:105:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
103 | }
104 |
105 | func parser(_ parser: XMLParser,
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
106 | didEndElement elementName: String,
107 | namespaceURI: String?,
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
| `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SWXMLHash/Source/LazyXMLParser.swift:60:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 |
59 | self.ops = ops
60 | let parser = XMLParser(data: data!)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | parser.shouldProcessNamespaces = options.shouldProcessNamespaces
62 | parser.delegate = self
BUILD FAILURE 6.1 wasm