Build Information
Failed to build SimpleNetworking, reference main (c624a7), with Swift 6.3 for Wasm on 8 Nov 2026 20:47:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
268 | /// Add or replace a stored cookie by name.
269 | /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
270 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:152:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | switch configuration.sessionMode {
151 | case .shared:
152 | self.session = session ?? URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:39: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:66: error: cannot infer contextual base in reference to member 'ephemeral'
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:83:38: error: cannot find type 'URLSessionDataDelegate' in scope
81 | }
82 |
83 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
84 | internal var onMessage: ((Data) -> Void)?
85 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
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/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:23: error: cannot find 'URLRequest' in scope
58 | self.onError = onError
59 |
60 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
61 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
62 | addStoredCookies(to: &request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:65:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
63 |
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
66 | ESsession = URLSession(
67 | configuration: configuration,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:66:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
66 | ESsession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:69:28: error: 'nil' requires a contextual type
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
69 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
70 | )
71 | task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:71:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | delegateQueue: nil
70 | )
71 | task = ESsession?.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | task?.resume()
73 | onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:72:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
70 | )
71 | task = ESsession?.dataTask(with: request)
72 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
73 | onOpen?()
74 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:78:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
76 | /// Disconnect the EventSource connection.
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
79 | ESsession?.invalidateAndCancel()
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:79:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
79 | ESsession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
80 | }
81 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
35 | public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
36 | self.onMessage = responder
37 | WSSocket = requestSettings().session?.webSocketTask(with: socket)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
38 | WSSocket?.resume()
39 | readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:46:35: error: cannot infer contextual base in reference to member 'string'
44 | /// - message: The message to send
45 | public func send(message: String) async throws {
46 | try await WSSocket?.send(.string(message))
| `- error: cannot infer contextual base in reference to member 'string'
47 | }
48 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:53:35: error: cannot infer contextual base in reference to member 'data'
51 | /// - message: The message to send
52 | public func send(message: Data) async throws {
53 | try await WSSocket?.send(.data(message))
| `- error: cannot infer contextual base in reference to member 'data'
54 | }
55 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension SimpleNetworking {
19 | internal func cookieSnapshot() -> [HTTPCookie] {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | withStateLock { cookieStorage ?? [] }
21 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:34:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | internal func saveCookies(from response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
25 |
26 | guard !storedCookies.isEmpty,
27 | let cookieHeader = HTTPCookie.requestHeaderFields(with: storedCookies)["Cookie"] else {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
28 | return
29 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
36 | let url = httpResponse.url else {
37 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let url = httpResponse.url else {
37 | return
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:36:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
37 | return
38 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | }
39 |
40 | let headerFields = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
41 | guard let key = header.key as? String else {
42 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:47:42: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
45 | result[key] = "\(header.value)"
46 | }
47 | let responseCookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
48 |
49 | guard !responseCookies.isEmpty else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:71:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | /// - value: New cookie value.
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
| `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | .domain: domain,
73 | .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:72:14: error: reference to member 'domain' cannot be resolved without a contextual type
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
| `- error: reference to member 'domain' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:73:14: error: reference to member 'path' cannot be resolved without a contextual type
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
73 | .path: path,
| `- error: reference to member 'path' cannot be resolved without a contextual type
74 | .name: name,
75 | .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:74:14: error: reference to member 'name' cannot be resolved without a contextual type
72 | .domain: domain,
73 | .path: path,
74 | .name: name,
| `- error: reference to member 'name' cannot be resolved without a contextual type
75 | .value: value
76 | ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:75:14: error: reference to member 'value' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
75 | .value: value
| `- error: reference to member 'value' cannot be resolved without a contextual type
76 | ]) {
77 | withStateLock {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:78:47: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
76 | ]) {
77 | withStateLock {
78 | cookieStorage?.removeAll { $0.name == cookie.name }
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
79 | cookieStorage?.append(cookie)
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:99:46: error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
97 | }
98 |
99 | cookieStorage = unwrapped.filter { cookie in
| `- error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
100 | ![
101 | cookie.domain == deleteCookieWithDomain,
FoundationEssentials.Sequence.filter:2:13: note: 'filter' declared here
1 | protocol Sequence {
2 | public func filter(_ predicate: Predicate<Self.Element>) throws -> [Self.Element]}
| `- note: 'filter' declared here
3 |
[16/33] Compiling SimpleNetworking EventSource.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:65:34: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Protects all mutable client state used by concurrent requests.
64 | internal let stateLock = NSLock()
65 | internal var cookieStorage: [HTTPCookie]? = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | internal var headerStorage: [HTTPHeader]? = []
67 | internal var fullResponseStorage: String? = ""
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// All the cookies. Prefer the cookie helper methods for atomic updates.
70 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | get { withStateLock { cookieStorage } }
72 | set { withStateLock { cookieStorage = newValue } }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:100:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 |
99 | /// custom session
100 | internal var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 | /// Streaming response handler for connection open event
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/Sources/SimpleNetworking/SimpleNetworking.swift:112:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 | /// URLSession Data Task
112 | internal var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | /// EventSource session
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:115:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | /// EventSource session
115 | internal var ESsession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |
117 | /// Websocket socket
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/Sources/SimpleNetworking/SimpleNetworking.swift:118:28: error: cannot find type 'URLSessionWebSocketTask' in scope
116 |
117 | /// Websocket socket
118 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
119 |
120 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:144:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |
143 | /// Create an isolated networking client with immutable initial settings.
144 | public init(configuration: Configuration = .init(), session: URLSession? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | serverURL = configuration.serverURL
146 | userAgent = configuration.userAgent
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/Sources/SimpleNetworking/SimpleNetworking.swift:169:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | let authorization: String?
168 | let headers: [HTTPHeader]
169 | let session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | let mocks: [String: SNMock]
171 | }
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/Sources/SimpleNetworking/SimpleNetworking.swift:225:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | /// Set the session
224 | /// - Parameter session: session
225 | public func set(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | withStateLock { self.session = session }
227 | }
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/Sources/SimpleNetworking/SimpleNetworking.swift:245:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | /// Add or replace a stored cookie by name.
244 | /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
245 | public func cookie(add cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:270:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | /// Add or replace a stored cookie by name.
269 | /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
270 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:152:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | switch configuration.sessionMode {
151 | case .shared:
152 | self.session = session ?? URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:39: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:66: error: cannot infer contextual base in reference to member 'ephemeral'
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:83:38: error: cannot find type 'URLSessionDataDelegate' in scope
81 | }
82 |
83 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
84 | internal var onMessage: ((Data) -> Void)?
85 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
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/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:23: error: cannot find 'URLRequest' in scope
58 | self.onError = onError
59 |
60 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
61 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
62 | addStoredCookies(to: &request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:65:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
63 |
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
66 | ESsession = URLSession(
67 | configuration: configuration,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:66:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
66 | ESsession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:69:28: error: 'nil' requires a contextual type
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
69 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
70 | )
71 | task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:71:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | delegateQueue: nil
70 | )
71 | task = ESsession?.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | task?.resume()
73 | onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:72:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
70 | )
71 | task = ESsession?.dataTask(with: request)
72 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
73 | onOpen?()
74 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:78:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
76 | /// Disconnect the EventSource connection.
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
79 | ESsession?.invalidateAndCancel()
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:79:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
79 | ESsession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
80 | }
81 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
35 | public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
36 | self.onMessage = responder
37 | WSSocket = requestSettings().session?.webSocketTask(with: socket)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
38 | WSSocket?.resume()
39 | readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:46:35: error: cannot infer contextual base in reference to member 'string'
44 | /// - message: The message to send
45 | public func send(message: String) async throws {
46 | try await WSSocket?.send(.string(message))
| `- error: cannot infer contextual base in reference to member 'string'
47 | }
48 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:53:35: error: cannot infer contextual base in reference to member 'data'
51 | /// - message: The message to send
52 | public func send(message: Data) async throws {
53 | try await WSSocket?.send(.data(message))
| `- error: cannot infer contextual base in reference to member 'data'
54 | }
55 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension SimpleNetworking {
19 | internal func cookieSnapshot() -> [HTTPCookie] {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | withStateLock { cookieStorage ?? [] }
21 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:34:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | internal func saveCookies(from response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
25 |
26 | guard !storedCookies.isEmpty,
27 | let cookieHeader = HTTPCookie.requestHeaderFields(with: storedCookies)["Cookie"] else {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
28 | return
29 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
36 | let url = httpResponse.url else {
37 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let url = httpResponse.url else {
37 | return
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:36:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
37 | return
38 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | }
39 |
40 | let headerFields = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
41 | guard let key = header.key as? String else {
42 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:47:42: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
45 | result[key] = "\(header.value)"
46 | }
47 | let responseCookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
48 |
49 | guard !responseCookies.isEmpty else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:71:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | /// - value: New cookie value.
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
| `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | .domain: domain,
73 | .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:72:14: error: reference to member 'domain' cannot be resolved without a contextual type
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
| `- error: reference to member 'domain' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:73:14: error: reference to member 'path' cannot be resolved without a contextual type
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
73 | .path: path,
| `- error: reference to member 'path' cannot be resolved without a contextual type
74 | .name: name,
75 | .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:74:14: error: reference to member 'name' cannot be resolved without a contextual type
72 | .domain: domain,
73 | .path: path,
74 | .name: name,
| `- error: reference to member 'name' cannot be resolved without a contextual type
75 | .value: value
76 | ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:75:14: error: reference to member 'value' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
75 | .value: value
| `- error: reference to member 'value' cannot be resolved without a contextual type
76 | ]) {
77 | withStateLock {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:78:47: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
76 | ]) {
77 | withStateLock {
78 | cookieStorage?.removeAll { $0.name == cookie.name }
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
79 | cookieStorage?.append(cookie)
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:99:46: error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
97 | }
98 |
99 | cookieStorage = unwrapped.filter { cookie in
| `- error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
100 | ![
101 | cookie.domain == deleteCookieWithDomain,
FoundationEssentials.Sequence.filter:2:13: note: 'filter' declared here
1 | protocol Sequence {
2 | public func filter(_ predicate: Predicate<Self.Element>) throws -> [Self.Element]}
| `- note: 'filter' declared here
3 |
[17/33] Compiling SimpleNetworking WebSocket.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:65:34: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Protects all mutable client state used by concurrent requests.
64 | internal let stateLock = NSLock()
65 | internal var cookieStorage: [HTTPCookie]? = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | internal var headerStorage: [HTTPHeader]? = []
67 | internal var fullResponseStorage: String? = ""
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// All the cookies. Prefer the cookie helper methods for atomic updates.
70 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | get { withStateLock { cookieStorage } }
72 | set { withStateLock { cookieStorage = newValue } }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:100:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 |
99 | /// custom session
100 | internal var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 | /// Streaming response handler for connection open event
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/Sources/SimpleNetworking/SimpleNetworking.swift:112:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 | /// URLSession Data Task
112 | internal var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | /// EventSource session
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:115:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | /// EventSource session
115 | internal var ESsession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |
117 | /// Websocket socket
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/Sources/SimpleNetworking/SimpleNetworking.swift:118:28: error: cannot find type 'URLSessionWebSocketTask' in scope
116 |
117 | /// Websocket socket
118 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
119 |
120 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:144:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |
143 | /// Create an isolated networking client with immutable initial settings.
144 | public init(configuration: Configuration = .init(), session: URLSession? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | serverURL = configuration.serverURL
146 | userAgent = configuration.userAgent
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/Sources/SimpleNetworking/SimpleNetworking.swift:169:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | let authorization: String?
168 | let headers: [HTTPHeader]
169 | let session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | let mocks: [String: SNMock]
171 | }
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/Sources/SimpleNetworking/SimpleNetworking.swift:225:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | /// Set the session
224 | /// - Parameter session: session
225 | public func set(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | withStateLock { self.session = session }
227 | }
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/Sources/SimpleNetworking/SimpleNetworking.swift:245:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | /// Add or replace a stored cookie by name.
244 | /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
245 | public func cookie(add cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:270:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | /// Add or replace a stored cookie by name.
269 | /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
270 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:152:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | switch configuration.sessionMode {
151 | case .shared:
152 | self.session = session ?? URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:39: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:66: error: cannot infer contextual base in reference to member 'ephemeral'
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:83:38: error: cannot find type 'URLSessionDataDelegate' in scope
81 | }
82 |
83 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
84 | internal var onMessage: ((Data) -> Void)?
85 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
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/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:23: error: cannot find 'URLRequest' in scope
58 | self.onError = onError
59 |
60 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
61 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
62 | addStoredCookies(to: &request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:65:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
63 |
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
66 | ESsession = URLSession(
67 | configuration: configuration,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:66:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
66 | ESsession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:69:28: error: 'nil' requires a contextual type
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
69 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
70 | )
71 | task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:71:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | delegateQueue: nil
70 | )
71 | task = ESsession?.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | task?.resume()
73 | onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:72:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
70 | )
71 | task = ESsession?.dataTask(with: request)
72 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
73 | onOpen?()
74 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:78:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
76 | /// Disconnect the EventSource connection.
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
79 | ESsession?.invalidateAndCancel()
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:79:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
79 | ESsession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
80 | }
81 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
35 | public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
36 | self.onMessage = responder
37 | WSSocket = requestSettings().session?.webSocketTask(with: socket)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
38 | WSSocket?.resume()
39 | readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:46:35: error: cannot infer contextual base in reference to member 'string'
44 | /// - message: The message to send
45 | public func send(message: String) async throws {
46 | try await WSSocket?.send(.string(message))
| `- error: cannot infer contextual base in reference to member 'string'
47 | }
48 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:53:35: error: cannot infer contextual base in reference to member 'data'
51 | /// - message: The message to send
52 | public func send(message: Data) async throws {
53 | try await WSSocket?.send(.data(message))
| `- error: cannot infer contextual base in reference to member 'data'
54 | }
55 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension SimpleNetworking {
19 | internal func cookieSnapshot() -> [HTTPCookie] {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | withStateLock { cookieStorage ?? [] }
21 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:34:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | internal func saveCookies(from response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
25 |
26 | guard !storedCookies.isEmpty,
27 | let cookieHeader = HTTPCookie.requestHeaderFields(with: storedCookies)["Cookie"] else {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
28 | return
29 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
36 | let url = httpResponse.url else {
37 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let url = httpResponse.url else {
37 | return
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:36:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
37 | return
38 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | }
39 |
40 | let headerFields = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
41 | guard let key = header.key as? String else {
42 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:47:42: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
45 | result[key] = "\(header.value)"
46 | }
47 | let responseCookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
48 |
49 | guard !responseCookies.isEmpty else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:71:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | /// - value: New cookie value.
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
| `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | .domain: domain,
73 | .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:72:14: error: reference to member 'domain' cannot be resolved without a contextual type
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
| `- error: reference to member 'domain' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:73:14: error: reference to member 'path' cannot be resolved without a contextual type
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
73 | .path: path,
| `- error: reference to member 'path' cannot be resolved without a contextual type
74 | .name: name,
75 | .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:74:14: error: reference to member 'name' cannot be resolved without a contextual type
72 | .domain: domain,
73 | .path: path,
74 | .name: name,
| `- error: reference to member 'name' cannot be resolved without a contextual type
75 | .value: value
76 | ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:75:14: error: reference to member 'value' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
75 | .value: value
| `- error: reference to member 'value' cannot be resolved without a contextual type
76 | ]) {
77 | withStateLock {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:78:47: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
76 | ]) {
77 | withStateLock {
78 | cookieStorage?.removeAll { $0.name == cookie.name }
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
79 | cookieStorage?.append(cookie)
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:99:46: error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
97 | }
98 |
99 | cookieStorage = unwrapped.filter { cookie in
| `- error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
100 | ![
101 | cookie.domain == deleteCookieWithDomain,
FoundationEssentials.Sequence.filter:2:13: note: 'filter' declared here
1 | protocol Sequence {
2 | public func filter(_ predicate: Predicate<Self.Element>) throws -> [Self.Element]}
| `- note: 'filter' declared here
3 |
[18/33] Compiling SimpleNetworking cookies.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:65:34: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Protects all mutable client state used by concurrent requests.
64 | internal let stateLock = NSLock()
65 | internal var cookieStorage: [HTTPCookie]? = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | internal var headerStorage: [HTTPHeader]? = []
67 | internal var fullResponseStorage: String? = ""
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// All the cookies. Prefer the cookie helper methods for atomic updates.
70 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | get { withStateLock { cookieStorage } }
72 | set { withStateLock { cookieStorage = newValue } }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:100:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 |
99 | /// custom session
100 | internal var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 | /// Streaming response handler for connection open event
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/Sources/SimpleNetworking/SimpleNetworking.swift:112:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 | /// URLSession Data Task
112 | internal var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | /// EventSource session
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:115:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | /// EventSource session
115 | internal var ESsession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |
117 | /// Websocket socket
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/Sources/SimpleNetworking/SimpleNetworking.swift:118:28: error: cannot find type 'URLSessionWebSocketTask' in scope
116 |
117 | /// Websocket socket
118 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
119 |
120 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:144:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |
143 | /// Create an isolated networking client with immutable initial settings.
144 | public init(configuration: Configuration = .init(), session: URLSession? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | serverURL = configuration.serverURL
146 | userAgent = configuration.userAgent
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/Sources/SimpleNetworking/SimpleNetworking.swift:169:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | let authorization: String?
168 | let headers: [HTTPHeader]
169 | let session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | let mocks: [String: SNMock]
171 | }
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/Sources/SimpleNetworking/SimpleNetworking.swift:225:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | /// Set the session
224 | /// - Parameter session: session
225 | public func set(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | withStateLock { self.session = session }
227 | }
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/Sources/SimpleNetworking/SimpleNetworking.swift:245:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | /// Add or replace a stored cookie by name.
244 | /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
245 | public func cookie(add cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:270:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | /// Add or replace a stored cookie by name.
269 | /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
270 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:152:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | switch configuration.sessionMode {
151 | case .shared:
152 | self.session = session ?? URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:39: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:154:66: error: cannot infer contextual base in reference to member 'ephemeral'
152 | self.session = session ?? URLSession.shared
153 | case .ephemeral:
154 | self.session = session ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
155 | }
156 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:247:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
245 | public func cookie(add cookie: HTTPCookie) {
246 | withStateLock {
247 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
248 | cookieStorage?.append(cookie)
249 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:50: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:272:65: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
270 | public func add(cookie: HTTPCookie) {
271 | withStateLock {
272 | cookieStorage?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
273 | cookieStorage?.append(cookie)
274 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:83:38: error: cannot find type 'URLSessionDataDelegate' in scope
81 | }
82 |
83 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
84 | internal var onMessage: ((Data) -> Void)?
85 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
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/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | }
89 |
90 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | onMessage?(data)
92 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:23: error: cannot find 'URLRequest' in scope
58 | self.onError = onError
59 |
60 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
61 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
62 | addStoredCookies(to: &request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:65:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
63 |
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
66 | ESsession = URLSession(
67 | configuration: configuration,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:66:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | // Keep listening with streaming delegate
65 | let configuration = requestSettings().session?.configuration ?? .default
66 | ESsession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:69:28: error: 'nil' requires a contextual type
67 | configuration: configuration,
68 | delegate: EventSourceDelegate(onMessage: onMessage),
69 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
70 | )
71 | task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:71:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | delegateQueue: nil
70 | )
71 | task = ESsession?.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | task?.resume()
73 | onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:72:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
70 | )
71 | task = ESsession?.dataTask(with: request)
72 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
73 | onOpen?()
74 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:78:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
76 | /// Disconnect the EventSource connection.
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
79 | ESsession?.invalidateAndCancel()
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:79:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
77 | public func eventSourceDisconnect() {
78 | task?.cancel()
79 | ESsession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
80 | }
81 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
35 | public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
36 | self.onMessage = responder
37 | WSSocket = requestSettings().session?.webSocketTask(with: socket)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
38 | WSSocket?.resume()
39 | readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:46:35: error: cannot infer contextual base in reference to member 'string'
44 | /// - message: The message to send
45 | public func send(message: String) async throws {
46 | try await WSSocket?.send(.string(message))
| `- error: cannot infer contextual base in reference to member 'string'
47 | }
48 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:53:35: error: cannot infer contextual base in reference to member 'data'
51 | /// - message: The message to send
52 | public func send(message: Data) async throws {
53 | try await WSSocket?.send(.data(message))
| `- error: cannot infer contextual base in reference to member 'data'
54 | }
55 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension SimpleNetworking {
19 | internal func cookieSnapshot() -> [HTTPCookie] {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | withStateLock { cookieStorage ?? [] }
21 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:34:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | internal func saveCookies(from response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
25 |
26 | guard !storedCookies.isEmpty,
27 | let cookieHeader = HTTPCookie.requestHeaderFields(with: storedCookies)["Cookie"] else {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
28 | return
29 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
36 | let url = httpResponse.url else {
37 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:35:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let url = httpResponse.url else {
37 | return
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/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:36:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
34 | internal func saveCookies(from response: URLResponse?) {
35 | guard let httpResponse = response as? HTTPURLResponse,
36 | let url = httpResponse.url else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
37 | return
38 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | }
39 |
40 | let headerFields = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
41 | guard let key = header.key as? String else {
42 | return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:47:42: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
45 | result[key] = "\(header.value)"
46 | }
47 | let responseCookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
48 |
49 | guard !responseCookies.isEmpty else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:71:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | /// - value: New cookie value.
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
| `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | .domain: domain,
73 | .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:72:14: error: reference to member 'domain' cannot be resolved without a contextual type
70 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
| `- error: reference to member 'domain' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:73:14: error: reference to member 'path' cannot be resolved without a contextual type
71 | if let cookie = HTTPCookie(properties: [
72 | .domain: domain,
73 | .path: path,
| `- error: reference to member 'path' cannot be resolved without a contextual type
74 | .name: name,
75 | .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:74:14: error: reference to member 'name' cannot be resolved without a contextual type
72 | .domain: domain,
73 | .path: path,
74 | .name: name,
| `- error: reference to member 'name' cannot be resolved without a contextual type
75 | .value: value
76 | ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:75:14: error: reference to member 'value' cannot be resolved without a contextual type
73 | .path: path,
74 | .name: name,
75 | .value: value
| `- error: reference to member 'value' cannot be resolved without a contextual type
76 | ]) {
77 | withStateLock {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:78:47: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
76 | ]) {
77 | withStateLock {
78 | cookieStorage?.removeAll { $0.name == cookie.name }
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
79 | cookieStorage?.append(cookie)
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:99:46: error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
97 | }
98 |
99 | cookieStorage = unwrapped.filter { cookie in
| `- error: trailing closure passed to parameter of type 'Predicate<HTTPCookie>' (aka 'Predicate<AnyObject>') that does not accept a closure
100 | ![
101 | cookie.domain == deleteCookieWithDomain,
FoundationEssentials.Sequence.filter:2:13: note: 'filter' declared here
1 | protocol Sequence {
2 | public func filter(_ predicate: Predicate<Self.Element>) throws -> [Self.Element]}
| `- note: 'filter' declared here
3 |
[19/33] Compiling SimpleNetworking Post.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
[20/33] Compiling SimpleNetworking Put.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
[21/33] Compiling SimpleNetworking SimpleNetworkingWrapper.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
[22/33] Compiling SimpleNetworking Upload.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
[23/33] Compiling SimpleNetworking SNMock.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Mocked HTTP Response
21 | public let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Mocked HTTP Response status code
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/Sources/SimpleNetworking/Structs/SNMock.swift:35:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | /// - statusCode: Mocked HTTP Response status code
34 | /// - error: Mocked Error (if any)
35 | public init(data: Data?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | self.data = data
37 | self.response = response
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/Sources/SimpleNetworking/Structs/SNMock.swift:48:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// - statusCode: Mocked HTTP Response status code
47 | /// - error: Mocked Error (if any)
48 | public init(data: String?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | self.data = data?.data(using: .utf8)
50 | self.response = response
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
[24/33] Compiling SimpleNetworking TransferProgress.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Mocked HTTP Response
21 | public let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Mocked HTTP Response status code
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/Sources/SimpleNetworking/Structs/SNMock.swift:35:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | /// - statusCode: Mocked HTTP Response status code
34 | /// - error: Mocked Error (if any)
35 | public init(data: Data?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | self.data = data
37 | self.response = response
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/Sources/SimpleNetworking/Structs/SNMock.swift:48:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// - statusCode: Mocked HTTP Response status code
47 | /// - error: Mocked Error (if any)
48 | public init(data: String?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | self.data = data?.data(using: .utf8)
50 | self.response = response
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
[25/33] Compiling SimpleNetworking resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Mocked HTTP Response
21 | public let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Mocked HTTP Response status code
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/Sources/SimpleNetworking/Structs/SNMock.swift:35:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | /// - statusCode: Mocked HTTP Response status code
34 | /// - error: Mocked Error (if any)
35 | public init(data: Data?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | self.data = data
37 | self.response = response
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/Sources/SimpleNetworking/Structs/SNMock.swift:48:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// - statusCode: Mocked HTTP Response status code
47 | /// - error: Mocked Error (if any)
48 | public init(data: String?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | self.data = data?.data(using: .utf8)
50 | self.response = response
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
[26/33] Compiling SimpleNetworking createHTTPBody.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | /// - Returns: ``NetworkResponse``
26 | internal func exec( // swiftlint:disable:this function_body_length
27 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | file: String = #file,
29 | line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 | /// - Returns: ``NetworkResponse``
114 | internal func exec(
115 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
116 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 | file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:174:46: error: cannot find type 'URLRequest' in scope
172 |
173 | /// Builds a response for a configured mock without starting a URL session.
174 | private func mockedResponse(for request: URLRequest) -> NetworkResponse? {
| `- error: cannot find type 'URLRequest' in scope
175 | guard let url = request.url,
176 | let mock = requestSettings().mocks[url.absoluteString] else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:45:30: error: 'nil' requires a contextual type
43 | string: String(data: data, encoding: .utf8),
44 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
45 | cookies: nil,
| `- error: 'nil' requires a contextual type
46 | request: preparedRequest
47 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:72:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |
71 | do {
72 | let (data, response) = try await session.data(for: preparedRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |
74 | saveCookies(from: response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | internal func networkLog(request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
56 | session: URLSession?,
57 | response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:92:28: error: 'nil' requires a contextual type
90 | response: response,
91 | statuscode: httpCode,
92 | error: nil,
| `- error: 'nil' requires a contextual type
93 | data: data,
94 | string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:13: error: cannot find 'DispatchQueue' in scope
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:40: error: cannot infer contextual base in reference to member 'userInitiated'
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:60: error: cannot infer type of closure parameter 'siteData' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'siteData' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:70: error: cannot infer type of closure parameter 'response' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:80: error: cannot infer type of closure parameter 'taskError' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'taskError' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:188:22: error: 'nil' requires a contextual type
186 | string: String(data: data, encoding: .utf8),
187 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
188 | cookies: nil,
| `- error: 'nil' requires a contextual type
189 | request: request
190 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | response: URLResponse?,
58 | data: Data?,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
57 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | data: Data?,
59 | file: String = #file,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
74 | }
75 |
76 | internal func networkLogRequest(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
77 | if [
78 | debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
68 | self.networkLogResponse(response: response)
69 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | self.networkLogResponse(response: response)
69 | }
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:99:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
97 | if debug.requestCookies {
98 | log("Cookies:", level: .debug)
99 | if let cookies = session?.configuration.httpCookieStorage?.cookies {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
100 | for cookie in cookies {
101 | log(" \(cookie.name): \(cookie.value)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:117:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | for (header, cont) in response.allHeaderFields {
119 | log(" \(header): \(cont)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:118:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
119 | log(" \(header): \(cont)", level: .debug)
120 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:160:46: error: cannot find type 'URLRequest' in scope
158 | }
159 |
160 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:30:27: error: cannot infer contextual base in reference to member 'init'
28 | return .init(
29 | error: NetworkingError.invalidURL(requestDescription.path),
30 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
31 | )
32 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:38:27: error: cannot infer contextual base in reference to member 'init'
36 | return .init(
37 | error: NetworkingError.invalidURL(requestDescription.path),
38 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
39 | )
40 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/RequestDescriptor.swift:35:33: error: cannot find type 'URLRequest' in scope
33 | public let timeout: TimeInterval?
34 | /// An optional URL loading cache policy.
35 | public let cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
36 | /// The body encoding used with standard methods that carry data.
37 | public let encoding: POSTEncoding
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:92:27: error: cannot infer contextual base in reference to member 'init'
90 | message: "Error: Request endpoint doesn't appear to be an URL"
91 | ),
92 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
93 | )
94 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:136:31: error: cannot infer contextual base in reference to member 'init'
134 | message: "Error: Request endpoint doesn't appear to be an URL"
135 | ),
136 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
137 | )
138 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:163:23: error: cannot find 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
163 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 |
165 | // Add the user agent
[27/33] Compiling SimpleNetworking exec.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | /// - Returns: ``NetworkResponse``
26 | internal func exec( // swiftlint:disable:this function_body_length
27 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | file: String = #file,
29 | line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 | /// - Returns: ``NetworkResponse``
114 | internal func exec(
115 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
116 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 | file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:174:46: error: cannot find type 'URLRequest' in scope
172 |
173 | /// Builds a response for a configured mock without starting a URL session.
174 | private func mockedResponse(for request: URLRequest) -> NetworkResponse? {
| `- error: cannot find type 'URLRequest' in scope
175 | guard let url = request.url,
176 | let mock = requestSettings().mocks[url.absoluteString] else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:45:30: error: 'nil' requires a contextual type
43 | string: String(data: data, encoding: .utf8),
44 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
45 | cookies: nil,
| `- error: 'nil' requires a contextual type
46 | request: preparedRequest
47 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:72:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |
71 | do {
72 | let (data, response) = try await session.data(for: preparedRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |
74 | saveCookies(from: response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | internal func networkLog(request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
56 | session: URLSession?,
57 | response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:92:28: error: 'nil' requires a contextual type
90 | response: response,
91 | statuscode: httpCode,
92 | error: nil,
| `- error: 'nil' requires a contextual type
93 | data: data,
94 | string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:13: error: cannot find 'DispatchQueue' in scope
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:40: error: cannot infer contextual base in reference to member 'userInitiated'
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:60: error: cannot infer type of closure parameter 'siteData' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'siteData' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:70: error: cannot infer type of closure parameter 'response' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:80: error: cannot infer type of closure parameter 'taskError' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'taskError' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:188:22: error: 'nil' requires a contextual type
186 | string: String(data: data, encoding: .utf8),
187 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
188 | cookies: nil,
| `- error: 'nil' requires a contextual type
189 | request: request
190 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | response: URLResponse?,
58 | data: Data?,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
57 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | data: Data?,
59 | file: String = #file,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
74 | }
75 |
76 | internal func networkLogRequest(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
77 | if [
78 | debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
68 | self.networkLogResponse(response: response)
69 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | self.networkLogResponse(response: response)
69 | }
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:99:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
97 | if debug.requestCookies {
98 | log("Cookies:", level: .debug)
99 | if let cookies = session?.configuration.httpCookieStorage?.cookies {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
100 | for cookie in cookies {
101 | log(" \(cookie.name): \(cookie.value)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:117:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | for (header, cont) in response.allHeaderFields {
119 | log(" \(header): \(cont)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:118:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
119 | log(" \(header): \(cont)", level: .debug)
120 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:160:46: error: cannot find type 'URLRequest' in scope
158 | }
159 |
160 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:30:27: error: cannot infer contextual base in reference to member 'init'
28 | return .init(
29 | error: NetworkingError.invalidURL(requestDescription.path),
30 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
31 | )
32 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:38:27: error: cannot infer contextual base in reference to member 'init'
36 | return .init(
37 | error: NetworkingError.invalidURL(requestDescription.path),
38 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
39 | )
40 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/RequestDescriptor.swift:35:33: error: cannot find type 'URLRequest' in scope
33 | public let timeout: TimeInterval?
34 | /// An optional URL loading cache policy.
35 | public let cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
36 | /// The body encoding used with standard methods that carry data.
37 | public let encoding: POSTEncoding
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:92:27: error: cannot infer contextual base in reference to member 'init'
90 | message: "Error: Request endpoint doesn't appear to be an URL"
91 | ),
92 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
93 | )
94 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:136:31: error: cannot infer contextual base in reference to member 'init'
134 | message: "Error: Request endpoint doesn't appear to be an URL"
135 | ),
136 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
137 | )
138 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:163:23: error: cannot find 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
163 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 |
165 | // Add the user agent
[28/33] Compiling SimpleNetworking logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | /// - Returns: ``NetworkResponse``
26 | internal func exec( // swiftlint:disable:this function_body_length
27 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | file: String = #file,
29 | line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 | /// - Returns: ``NetworkResponse``
114 | internal func exec(
115 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
116 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 | file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:174:46: error: cannot find type 'URLRequest' in scope
172 |
173 | /// Builds a response for a configured mock without starting a URL session.
174 | private func mockedResponse(for request: URLRequest) -> NetworkResponse? {
| `- error: cannot find type 'URLRequest' in scope
175 | guard let url = request.url,
176 | let mock = requestSettings().mocks[url.absoluteString] else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:45:30: error: 'nil' requires a contextual type
43 | string: String(data: data, encoding: .utf8),
44 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
45 | cookies: nil,
| `- error: 'nil' requires a contextual type
46 | request: preparedRequest
47 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:72:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |
71 | do {
72 | let (data, response) = try await session.data(for: preparedRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |
74 | saveCookies(from: response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | internal func networkLog(request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
56 | session: URLSession?,
57 | response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:92:28: error: 'nil' requires a contextual type
90 | response: response,
91 | statuscode: httpCode,
92 | error: nil,
| `- error: 'nil' requires a contextual type
93 | data: data,
94 | string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:13: error: cannot find 'DispatchQueue' in scope
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:40: error: cannot infer contextual base in reference to member 'userInitiated'
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:60: error: cannot infer type of closure parameter 'siteData' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'siteData' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:70: error: cannot infer type of closure parameter 'response' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:80: error: cannot infer type of closure parameter 'taskError' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'taskError' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:188:22: error: 'nil' requires a contextual type
186 | string: String(data: data, encoding: .utf8),
187 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
188 | cookies: nil,
| `- error: 'nil' requires a contextual type
189 | request: request
190 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | response: URLResponse?,
58 | data: Data?,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
57 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | data: Data?,
59 | file: String = #file,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
74 | }
75 |
76 | internal func networkLogRequest(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
77 | if [
78 | debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
68 | self.networkLogResponse(response: response)
69 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | self.networkLogResponse(response: response)
69 | }
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:99:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
97 | if debug.requestCookies {
98 | log("Cookies:", level: .debug)
99 | if let cookies = session?.configuration.httpCookieStorage?.cookies {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
100 | for cookie in cookies {
101 | log(" \(cookie.name): \(cookie.value)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:117:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | for (header, cont) in response.allHeaderFields {
119 | log(" \(header): \(cont)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:118:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
119 | log(" \(header): \(cont)", level: .debug)
120 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:160:46: error: cannot find type 'URLRequest' in scope
158 | }
159 |
160 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:30:27: error: cannot infer contextual base in reference to member 'init'
28 | return .init(
29 | error: NetworkingError.invalidURL(requestDescription.path),
30 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
31 | )
32 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:38:27: error: cannot infer contextual base in reference to member 'init'
36 | return .init(
37 | error: NetworkingError.invalidURL(requestDescription.path),
38 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
39 | )
40 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/RequestDescriptor.swift:35:33: error: cannot find type 'URLRequest' in scope
33 | public let timeout: TimeInterval?
34 | /// An optional URL loading cache policy.
35 | public let cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
36 | /// The body encoding used with standard methods that carry data.
37 | public let encoding: POSTEncoding
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:92:27: error: cannot infer contextual base in reference to member 'init'
90 | message: "Error: Request endpoint doesn't appear to be an URL"
91 | ),
92 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
93 | )
94 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:136:31: error: cannot infer contextual base in reference to member 'init'
134 | message: "Error: Request endpoint doesn't appear to be an URL"
135 | ),
136 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
137 | )
138 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:163:23: error: cannot find 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
163 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 |
165 | // Add the user agent
[29/33] Compiling SimpleNetworking request.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | /// - Returns: ``NetworkResponse``
26 | internal func exec( // swiftlint:disable:this function_body_length
27 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | file: String = #file,
29 | line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 | /// - Returns: ``NetworkResponse``
114 | internal func exec(
115 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
116 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 | file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:174:46: error: cannot find type 'URLRequest' in scope
172 |
173 | /// Builds a response for a configured mock without starting a URL session.
174 | private func mockedResponse(for request: URLRequest) -> NetworkResponse? {
| `- error: cannot find type 'URLRequest' in scope
175 | guard let url = request.url,
176 | let mock = requestSettings().mocks[url.absoluteString] else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | internal func addStoredCookies(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
24 | let storedCookies = withStateLock { cookieStorage ?? [] }
25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:45:30: error: 'nil' requires a contextual type
43 | string: String(data: data, encoding: .utf8),
44 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
45 | cookies: nil,
| `- error: 'nil' requires a contextual type
46 | request: preparedRequest
47 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:72:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |
71 | do {
72 | let (data, response) = try await session.data(for: preparedRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |
74 | saveCookies(from: response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | internal func networkLog(request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
56 | session: URLSession?,
57 | response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:92:28: error: 'nil' requires a contextual type
90 | response: response,
91 | statuscode: httpCode,
92 | error: nil,
| `- error: 'nil' requires a contextual type
93 | data: data,
94 | string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:13: error: cannot find 'DispatchQueue' in scope
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:129:40: error: cannot infer contextual base in reference to member 'userInitiated'
127 | }
128 |
129 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
130 | // Start our datatask
131 | let session = self.requestSettings().session
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:60: error: cannot infer type of closure parameter 'siteData' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'siteData' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:70: error: cannot infer type of closure parameter 'response' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:132:80: error: cannot infer type of closure parameter 'taskError' without a type annotation
130 | // Start our datatask
131 | let session = self.requestSettings().session
132 | session?.dataTask(with: request) { [self] (siteData, response, taskError) in
| `- error: cannot infer type of closure parameter 'taskError' without a type annotation
133 | // Check if we got any useable site data
134 | guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:188:22: error: 'nil' requires a contextual type
186 | string: String(data: data, encoding: .utf8),
187 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
188 | cookies: nil,
| `- error: 'nil' requires a contextual type
189 | request: request
190 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | response: URLResponse?,
58 | data: Data?,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | internal func networkLog(request: URLRequest?,
56 | session: URLSession?,
57 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | data: Data?,
59 | file: String = #file,
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
74 | }
75 |
76 | internal func networkLogRequest(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
77 | if [
78 | debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
68 | self.networkLogResponse(response: response)
69 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | if debug.responseHeaders,
67 | let response = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | self.networkLogResponse(response: response)
69 | }
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/Sources/SimpleNetworking/SimpleNetworking/logging.swift:99:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
97 | if debug.requestCookies {
98 | log("Cookies:", level: .debug)
99 | if let cookies = session?.configuration.httpCookieStorage?.cookies {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
100 | for cookie in cookies {
101 | log(" \(cookie.name): \(cookie.value)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:117:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 |
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | for (header, cont) in response.allHeaderFields {
119 | log(" \(header): \(cont)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:118:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
116 | internal func networkLogResponse(response: HTTPURLResponse) {
117 | log("HTTPURLResponse: HTTP \(response.statusCode)")
118 | for (header, cont) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
119 | log(" \(header): \(cont)", level: .debug)
120 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:160:46: error: cannot find type 'URLRequest' in scope
158 | }
159 |
160 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:30:27: error: cannot infer contextual base in reference to member 'init'
28 | return .init(
29 | error: NetworkingError.invalidURL(requestDescription.path),
30 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
31 | )
32 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:38:27: error: cannot infer contextual base in reference to member 'init'
36 | return .init(
37 | error: NetworkingError.invalidURL(requestDescription.path),
38 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
39 | )
40 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/RequestDescriptor.swift:35:33: error: cannot find type 'URLRequest' in scope
33 | public let timeout: TimeInterval?
34 | /// An optional URL loading cache policy.
35 | public let cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
36 | /// The body encoding used with standard methods that carry data.
37 | public let encoding: POSTEncoding
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:92:27: error: cannot infer contextual base in reference to member 'init'
90 | message: "Error: Request endpoint doesn't appear to be an URL"
91 | ),
92 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
93 | )
94 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:136:31: error: cannot infer contextual base in reference to member 'init'
134 | message: "Error: Request endpoint doesn't appear to be an URL"
135 | ),
136 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
137 | )
138 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:163:23: error: cannot find 'URLRequest' in scope
161 | let settings = requestSettings()
162 | // Create a URL Request
163 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 |
165 | // Add the user agent
[30/33] Compiling SimpleNetworking isURL.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:118:28: error: cannot find type 'URLSessionWebSocketTask' in scope
116 |
117 | /// Websocket socket
118 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
119 |
120 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
[31/33] Compiling SimpleNetworking toJSON.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:118:28: error: cannot find type 'URLSessionWebSocketTask' in scope
116 |
117 | /// Websocket socket
118 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
119 |
120 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
[32/33] Compiling SimpleNetworking Delete.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:118:28: error: cannot find type 'URLSessionWebSocketTask' in scope
116 |
117 | /// Websocket socket
118 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
119 |
120 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
[33/33] Compiling SimpleNetworking Get.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:118:28: error: cannot find type 'URLSessionWebSocketTask' in scope
116 |
117 | /// Websocket socket
118 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
119 |
120 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Request
55 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Whether this response has a 2xx HTTP status and no transport error.
BUILD FAILURE 6.3 wasm