Build Information
Failed to build RxAutomaton with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[180/271] Compiling RxCocoa UIStepper+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[181/271] Compiling RxCocoa UISwitch+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[182/271] Compiling RxCocoa UITabBar+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[183/271] Compiling RxCocoa UITabBarController+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[184/271] Compiling RxCocoa UITabBarItem+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[185/271] Compiling RxCocoa UITableView+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[186/271] Compiling RxCocoa UITextField+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[187/271] Compiling RxCocoa UITextView+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[188/271] Compiling RxCocoa UIView+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[189/271] Compiling RxCocoa UIViewController+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[190/271] Compiling RxCocoa UIWebView+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[191/271] Compiling RxCocoa URLSession+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:10:15: error: struct 'URLRequest' does not exist in module 'Foundation'
8 |
9 | import struct Foundation.URL
10 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
11 | import struct Foundation.Data
12 | import struct Foundation.Date
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:14:14: error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
12 | import struct Foundation.Date
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
| `- error: type alias 'HTTPURLResponse' (aka 'AnyObject') cannot be imported as 'class'
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:15:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
13 | import struct Foundation.TimeInterval
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
16 | import class Foundation.URLResponse
17 | import class Foundation.JSONSerialization
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:16:14: error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
14 | import class Foundation.HTTPURLResponse
15 | import class Foundation.URLSession
16 | import class Foundation.URLResponse
| `- error: type alias 'URLResponse' (aka 'AnyObject') cannot be imported as 'class'
17 | import class Foundation.JSONSerialization
18 | import class Foundation.NSError
Foundation.URLResponse:2:18: note: 'URLResponse' declared 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' declared here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | case unknown
34 | /// Response is not NSHTTPURLResponse
35 | case nonHTTPResponse(response: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:37:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | case nonHTTPResponse(response: URLResponse)
36 | /// Response is not successful. (not in `200 ..< 300` range)
37 | case httpRequestFailed(response: HTTPURLResponse, data: Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// Deserialization error.
39 | case deserializationError(error: Swift.Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:63:60: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | fileprivate func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | let method = request.httpMethod ?? "GET"
65 | var returnValue = "curl -X \(method) "
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:89:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | }
88 |
89 | private func convertResponseToString(_ response: URLResponse?, _ error: NSError?, _ interval: TimeInterval) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
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/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:35: error: cannot find type 'URLRequest' in scope
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: cannot find type 'URLRequest' in scope
125 | return Observable.create { observer in
126 |
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:124:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | - returns: Observable sequence of URL responses.
123 | */
124 | public func response(request: URLRequest) -> Observable<(response: HTTPURLResponse, data: Data)> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | return Observable.create { observer in
126 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:184:31: error: cannot find type 'URLRequest' in scope
182 | - returns: Observable sequence of response data.
183 | */
184 | public func data(request: URLRequest) -> Observable<Data> {
| `- error: cannot find type 'URLRequest' in scope
185 | return self.response(request: request).map { pair -> Data in
186 | if 200 ..< 300 ~= pair.0.statusCode {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:212:31: error: cannot find type 'URLRequest' in scope
210 | - returns: Observable sequence of response JSON.
211 | */
212 | public func json(request: URLRequest, options: JSONSerialization.ReadingOptions = []) -> Observable<Any> {
| `- error: cannot find type 'URLRequest' in scope
213 | return self.data(request: request).map { data -> Any in
214 | do {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:111:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | }
110 |
111 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /**
113 | Observable sequence of responses for URL request.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:52:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
50 | return "Response is not NSHTTPURLResponse `\(response)`."
51 | case let .httpRequestFailed(response, _):
52 | return "HTTP request failed with `\(response.statusCode)`."
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | case let .deserializationError(error):
54 | return "Error during deserialization of the response: \(error)"
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:74:53: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
72 | }
73 |
74 | for (key, value) in request.allHTTPHeaderFields ?? [:] {
| `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
75 | let escapedKey = escapeTerminalString(key as String)
76 | let escapedValue = escapeTerminalString(value as String)
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:92:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | let ms = Int(interval * 1000)
91 |
92 | if let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:93:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
95 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | if let response = response as? HTTPURLResponse {
93 | if 200 ..< 300 ~= response.statusCode {
94 | return "Success (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:97:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | }
96 | else {
97 | return "Failure (\(ms)ms): Status \(response.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | }
99 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:35: error: cannot find 'URLRequest' in scope
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: cannot find 'URLRequest' in scope
241 | }
242 | }
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/URLSession+Rx.swift:240:25: error: incorrect argument label in call (have 'request:', expected 'url:')
238 | */
239 | public func json(url: Foundation.URL) -> Observable<Any> {
240 | return self.json(request: URLRequest(url: url))
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
241 | }
242 | }
[192/271] Compiling RxCocoa NSTextField+Rx.swift
[193/271] Compiling RxCocoa NSTextStorage+Rx.swift
[194/271] Compiling RxCocoa NSTextView+Rx.swift
[195/271] Compiling RxCocoa NSView+Rx.swift
[196/271] Compiling RxCocoa NotificationCenter+Rx.swift
[197/271] Compiling RxCocoa Observable+Bind.swift
[198/271] Compiling RxCocoa ObservableConvertibleType+Driver.swift
[199/271] Compiling RxCocoa ObservableConvertibleType+SharedSequence.swift
[200/271] Compiling RxCocoa ObservableConvertibleType+Signal.swift
[201/271] Compiling RxCocoa PublishRelay+Signal.swift
[202/271] Compiling RxCocoa RxCocoa.swift
[203/271] Compiling RxCocoa RxCocoaObjCRuntimeError+Extensions.swift
[204/271] Compiling RxCocoa RxCollectionViewDataSourcePrefetchingProxy.swift
[205/271] Compiling RxCocoa BehaviorRelay+Driver.swift
[206/271] Compiling RxCocoa Binder.swift
[207/271] Compiling RxCocoa ControlEvent+Driver.swift
[208/271] Compiling RxCocoa ControlEvent+Signal.swift
[209/271] Compiling RxCocoa ControlEvent.swift
[210/271] Compiling RxCocoa ControlProperty+Driver.swift
[211/271] Compiling RxCocoa ControlProperty.swift
[212/271] Compiling RxCocoa ControlTarget.swift
[213/271] Compiling RxCocoa DelegateProxy.swift
[214/271] Compiling RxCocoa DelegateProxyType.swift
[215/271] Compiling RxCocoa Deprecated.swift
[216/271] Compiling RxCocoa DispatchQueue+Extensions.swift
[217/271] Compiling RxCocoa Driver+Subscription.swift
[218/271] Compiling RxCocoa Driver.swift
[219/271] Compiling RxCocoa SharedSequence+Operators.swift
[220/271] Compiling RxCocoa SharedSequence.swift
[221/271] Compiling RxCocoa Signal+Subscription.swift
[222/271] Compiling RxCocoa Signal.swift
[223/271] Compiling RxCocoa TextInput.swift
[224/271] Compiling RxCocoa UIActivityIndicatorView+Rx.swift
[225/271] Compiling RxCocoa UIAlertAction+Rx.swift
[226/271] Compiling RxCocoa UIApplication+Rx.swift
[227/271] Compiling RxCocoa UIBarButtonItem+Rx.swift
[228/271] Compiling RxCocoa UIButton+Rx.swift
[229/271] Compiling RxCocoa UICollectionView+Rx.swift
[230/271] Compiling RxCocoa UIControl+Rx.swift
[231/271] Compiling RxCocoa UIDatePicker+Rx.swift
[232/271] Compiling RxCocoa ItemEvents.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[233/271] Compiling RxCocoa KVORepresentable+CoreGraphics.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[234/271] Compiling RxCocoa KVORepresentable+Swift.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[235/271] Compiling RxCocoa KVORepresentable.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[236/271] Compiling RxCocoa KeyPathBinder.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[237/271] Compiling RxCocoa Logging.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[238/271] Compiling RxCocoa NSButton+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[239/271] Compiling RxCocoa NSControl+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[240/271] Compiling RxCocoa NSImageView+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[241/271] Compiling RxCocoa NSLayoutConstraint+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[242/271] Compiling RxCocoa NSObject+Rx+KVORepresentable.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[243/271] Compiling RxCocoa NSObject+Rx+RawRepresentable.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[244/271] Compiling RxCocoa NSObject+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[245/271] Compiling RxCocoa NSSlider+Rx.swift
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:9:15: error: struct 'URLRequest' does not exist in module 'Foundation'
7 | //
8 |
9 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
10 |
11 | /// Simple logging settings for RxCocoa library.
/host/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/Logging.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | /// Simple logging settings for RxCocoa library.
12 | public struct Logging {
13 | public typealias LogURLRequest = (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Log URL requests to standard output in curl format.
[246/271] Compiling RxCocoa RxCollectionViewDataSourceProxy.swift
[247/271] Compiling RxCocoa RxCollectionViewDataSourceType.swift
[248/271] Compiling RxCocoa RxCollectionViewDelegateProxy.swift
[249/271] Compiling RxCocoa RxCollectionViewReactiveArrayDataSource.swift
[250/271] Compiling RxCocoa RxNavigationControllerDelegateProxy.swift
[251/271] Compiling RxCocoa RxPickerViewAdapter.swift
[252/271] Compiling RxCocoa RxPickerViewDataSourceProxy.swift
[253/271] Compiling RxCocoa RxPickerViewDataSourceType.swift
[254/271] Compiling RxCocoa RxPickerViewDelegateProxy.swift
[255/271] Compiling RxCocoa RxScrollViewDelegateProxy.swift
[256/271] Compiling RxCocoa RxSearchBarDelegateProxy.swift
[257/271] Compiling RxCocoa RxSearchControllerDelegateProxy.swift
[258/271] Compiling RxCocoa RxTabBarControllerDelegateProxy.swift
[259/271] Compiling RxCocoa RxTabBarDelegateProxy.swift
[260/271] Compiling RxCocoa RxTableViewDataSourcePrefetchingProxy.swift
[261/271] Compiling RxCocoa RxTableViewDataSourceProxy.swift
[262/271] Compiling RxCocoa RxTableViewDataSourceType.swift
[263/271] Compiling RxCocoa RxTableViewDelegateProxy.swift
[264/271] Compiling RxCocoa RxTableViewReactiveArrayDataSource.swift
[265/271] Compiling RxCocoa RxTarget.swift
[266/271] Compiling RxCocoa RxTextStorageDelegateProxy.swift
[267/271] Compiling RxCocoa RxTextViewDelegateProxy.swift
[268/271] Compiling RxCocoa RxWebViewDelegateProxy.swift
[269/271] Compiling RxCocoa SchedulerType+SharedSequence.swift
[270/271] Compiling RxCocoa SectionedViewDataSourceType.swift
[271/271] Compiling RxCocoa SharedSequence+Operators+arity.swift
BUILD FAILURE 6.0 linux