Build Information
Failed to build ghaw with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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
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 | }
[195/290] 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 | }
[196/290] 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 | }
[197/290] 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 | }
[198/290] 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 | }
[199/290] 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 | }
[200/290] 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 | }
[201/290] 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 | }
[202/290] 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 | }
[203/290] 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 | }
[204/290] 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 | }
[205/290] 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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[206/290] Emitting module RxCocoa
/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.
/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
[207/290] Compiling RxCocoa NSTextField+Rx.swift
[208/290] Compiling RxCocoa NSTextStorage+Rx.swift
[209/290] Compiling RxCocoa NSTextView+Rx.swift
[210/290] Compiling RxCocoa NSView+Rx.swift
[211/290] Compiling RxCocoa NotificationCenter+Rx.swift
[212/290] Compiling RxCocoa Observable+Bind.swift
[213/290] Compiling RxCocoa ObservableConvertibleType+Driver.swift
[214/290] Compiling RxCocoa ObservableConvertibleType+SharedSequence.swift
[215/290] Compiling RxCocoa ObservableConvertibleType+Signal.swift
[216/290] Compiling RxCocoa PublishRelay+Signal.swift
[217/290] Compiling RxCocoa RxCocoa.swift
[218/290] Compiling RxCocoa RxCocoaObjCRuntimeError+Extensions.swift
[219/290] Compiling RxCocoa RxCollectionViewDataSourcePrefetchingProxy.swift
[220/290] Compiling RxCocoa SharedSequence+Operators.swift
[221/290] Compiling RxCocoa SharedSequence.swift
[222/290] Compiling RxCocoa Signal+Subscription.swift
[223/290] Compiling RxCocoa Signal.swift
[224/290] Compiling RxCocoa TextInput.swift
[225/290] Compiling RxCocoa UIActivityIndicatorView+Rx.swift
[226/290] Compiling RxCocoa UIAlertAction+Rx.swift
[227/290] Compiling RxCocoa UIApplication+Rx.swift
[228/290] Compiling RxCocoa UIBarButtonItem+Rx.swift
[229/290] Compiling RxCocoa UIButton+Rx.swift
[230/290] Compiling RxCocoa UICollectionView+Rx.swift
[231/290] Compiling RxCocoa UIControl+Rx.swift
[232/290] Compiling RxCocoa UIDatePicker+Rx.swift
[233/290] Compiling RxCocoa RxCollectionViewDataSourceProxy.swift
[234/290] Compiling RxCocoa RxCollectionViewDataSourceType.swift
[235/290] Compiling RxCocoa RxCollectionViewDelegateProxy.swift
[236/290] Compiling RxCocoa RxCollectionViewReactiveArrayDataSource.swift
[237/290] Compiling RxCocoa RxNavigationControllerDelegateProxy.swift
[238/290] Compiling RxCocoa RxPickerViewAdapter.swift
[239/290] Compiling RxCocoa RxPickerViewDataSourceProxy.swift
[240/290] Compiling RxCocoa RxPickerViewDataSourceType.swift
[241/290] Compiling RxCocoa RxPickerViewDelegateProxy.swift
[242/290] Compiling RxCocoa RxScrollViewDelegateProxy.swift
[243/290] Compiling RxCocoa RxSearchBarDelegateProxy.swift
[244/290] Compiling RxCocoa RxSearchControllerDelegateProxy.swift
[245/290] Compiling RxCocoa RxTabBarControllerDelegateProxy.swift
[246/290] Compiling RxCocoa BehaviorRelay+Driver.swift
[247/290] Compiling RxCocoa Binder.swift
[248/290] Compiling RxCocoa ControlEvent+Driver.swift
[249/290] Compiling RxCocoa ControlEvent+Signal.swift
[250/290] Compiling RxCocoa ControlEvent.swift
[251/290] Compiling RxCocoa ControlProperty+Driver.swift
[252/290] Compiling RxCocoa ControlProperty.swift
[253/290] Compiling RxCocoa ControlTarget.swift
[254/290] Compiling RxCocoa DelegateProxy.swift
[255/290] Compiling RxCocoa DelegateProxyType.swift
[256/290] Compiling RxCocoa Deprecated.swift
[257/290] Compiling RxCocoa DispatchQueue+Extensions.swift
[258/290] Compiling RxCocoa Driver+Subscription.swift
[259/290] Compiling RxCocoa Driver.swift
[260/290] Compiling RxCocoa RxTabBarDelegateProxy.swift
[261/290] Compiling RxCocoa RxTableViewDataSourcePrefetchingProxy.swift
[262/290] Compiling RxCocoa RxTableViewDataSourceProxy.swift
[263/290] Compiling RxCocoa RxTableViewDataSourceType.swift
[264/290] Compiling RxCocoa RxTableViewDelegateProxy.swift
[265/290] Compiling RxCocoa RxTableViewReactiveArrayDataSource.swift
[266/290] Compiling RxCocoa RxTarget.swift
[267/290] Compiling RxCocoa RxTextStorageDelegateProxy.swift
[268/290] Compiling RxCocoa RxTextViewDelegateProxy.swift
[269/290] Compiling RxCocoa RxWebViewDelegateProxy.swift
[270/290] Compiling RxCocoa SchedulerType+SharedSequence.swift
[271/290] Compiling RxCocoa SectionedViewDataSourceType.swift
[272/290] Compiling RxCocoa SharedSequence+Operators+arity.swift
[273/290] 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.
[274/290] 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.
[275/290] 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.
[276/290] 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.
[277/290] 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.
[278/290] 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.
[279/290] 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.
[280/290] 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.
[281/290] 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.
[282/290] 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.
[283/290] 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.
[284/290] 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.
[285/290] 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.
[286/290] 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.
BUILD FAILURE 6.0 linux