Build Information
Failed to build SimpleNetworking, reference main (85a76c), with Swift 6.1 for Wasm on 2 Feb 2026 09:46:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
| `- error: cannot infer contextual base in reference to member 'init'
43 | )
44 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:75:31: error: cannot infer contextual base in reference to member 'init'
73 | message: "Error: Upload endpoint doesn't appear to be an URL"
74 | ),
75 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
76 | )
77 | )
[27/30] Compiling SimpleNetworking Post.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[28/30] Compiling SimpleNetworking Put.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[29/30] Compiling SimpleNetworking SimpleNetworkingWrapper.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[30/30] Compiling SimpleNetworking Upload.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/25] Compiling SimpleNetworking Post.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[3/25] Compiling SimpleNetworking Put.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[4/25] Compiling SimpleNetworking SimpleNetworkingWrapper.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[5/25] Compiling SimpleNetworking Upload.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[6/28] Compiling SimpleNetworking isURL.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[7/28] Compiling SimpleNetworking toJSON.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[8/28] Compiling SimpleNetworking Delete.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
[9/28] Compiling SimpleNetworking Get.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/28] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// All the cookies
28 | public var cookies: [HTTPCookie]? = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Header
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:49:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// 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:61:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 | /// URLSession Data Task
61 | internal var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// 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:64:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// EventSource session
64 | internal var ESsession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// 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:114:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /// Set the session
113 | /// - Parameter session: session
114 | public func set(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | self.session = session
116 | }
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:134:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | /// Add a cookie to the storage
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | cookies?.removeAll(where: { $0.name == cookie.name })
136 | cookies?.append(cookie)
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:155:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | /// Add a cookie to the storage
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | cookies?.removeAll(where: { $0.name == cookie.name })
157 | cookies?.append(cookie)
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/EventSource.swift:96:38: error: cannot find type 'URLSessionDataDelegate' in scope
94 | }
95 |
96 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
97 | internal var onMessage: ((Data) -> Void)?
98 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:103:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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:103:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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/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:118:23: error: cannot find type 'URLRequest' in scope
116 | /// - Returns: ``NetworkResponse``
117 | internal func exec(
118 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
119 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
120 | file: String = #file,
/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/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/request.swift:107:46: error: cannot find type 'URLRequest' in scope
105 | }
106 |
107 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
108 | // Create a URL Request
109 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
87 | /// - uploadData: The multipart upload data
88 | /// - Returns: URLRequest or nil if URL is invalid
89 | private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
90 | guard let siteURL = self.isURL(path) else {
91 | return nil
/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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// URL Response
34 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// HTTP 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/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// Received cookies.
52 | public var cookies: [HTTPCookie]?
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 | /// Request
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/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:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// - statusCode: Mocked HTTP Response status code
46 | /// - error: Mocked Error (if any)
47 | 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.
48 | self.data = data?.data(using: .utf8)
49 | 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
[11/28] Compiling SimpleNetworking SimpleNetworking.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// All the cookies
28 | public var cookies: [HTTPCookie]? = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Header
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:49:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// 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:61:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 | /// URLSession Data Task
61 | internal var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// 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:64:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// EventSource session
64 | internal var ESsession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// 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:114:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /// Set the session
113 | /// - Parameter session: session
114 | public func set(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | self.session = session
116 | }
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:134:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | /// Add a cookie to the storage
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | cookies?.removeAll(where: { $0.name == cookie.name })
136 | cookies?.append(cookie)
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:155:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | /// Add a cookie to the storage
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | cookies?.removeAll(where: { $0.name == cookie.name })
157 | cookies?.append(cookie)
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:135:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
135 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
136 | cookies?.append(cookie)
137 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:135:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
135 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
136 | cookies?.append(cookie)
137 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:156:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
156 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
157 | cookies?.append(cookie)
158 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:156:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
156 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
157 | cookies?.append(cookie)
158 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:96:38: error: cannot find type 'URLSessionDataDelegate' in scope
94 | }
95 |
96 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
97 | internal var onMessage: ((Data) -> Void)?
98 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:103:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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:103:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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:87: error: cannot find 'OperationQueue' in scope
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: cannot find 'OperationQueue' in scope
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:48: error: cannot infer contextual base in reference to member 'default'
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: cannot infer contextual base in reference to member 'default'
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:67: error: 'nil' requires a contextual type
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: 'nil' requires a contextual type
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:63:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
63 | ESsession?.configuration.httpCookieStorage?.setCookie(cookieData)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
64 | }
65 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:67:23: error: cannot find 'URLRequest' in scope
65 | }
66 |
67 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
68 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
69 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:70:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
68 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
69 |
70 | task = ESsession?.dataTask(with: request) { _, _, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
71 | if let error = error {
72 | self.onError?(error)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:76:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
74 | }
75 | }
76 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
77 |
78 | // Keep listening with streaming delegate
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:79:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | // Keep listening with streaming delegate
79 | ESsession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
80 | configuration: .default,
81 | delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:80:29: error: cannot infer contextual base in reference to member 'default'
78 | // Keep listening with streaming delegate
79 | ESsession = URLSession(
80 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
81 | delegate: EventSourceDelegate(onMessage: onMessage),
82 | delegateQueue: nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:28: error: 'nil' requires a contextual type
80 | configuration: .default,
81 | delegate: EventSourceDelegate(onMessage: onMessage),
82 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
83 | )
84 | task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:84:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | delegateQueue: nil
83 | )
84 | task = ESsession?.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
85 | task?.resume()
86 | onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:85:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
83 | )
84 | task = ESsession?.dataTask(with: request)
85 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
86 | onOpen?()
87 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:91:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
89 | /// Disconnect the EventSource connection.
90 | public func eventSourceDisconnect() {
91 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
92 | ESsession?.invalidateAndCancel()
93 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:92:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | public func eventSourceDisconnect() {
91 | task?.cancel()
92 | ESsession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | }
94 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
36 | self.onMessage = responder
37 | WSSocket = URLSession.shared.webSocketTask(with: socket)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
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 |
[12/28] Compiling SimpleNetworking EventSource.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// All the cookies
28 | public var cookies: [HTTPCookie]? = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Header
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:49:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// 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:61:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 | /// URLSession Data Task
61 | internal var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// 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:64:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// EventSource session
64 | internal var ESsession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// 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:114:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /// Set the session
113 | /// - Parameter session: session
114 | public func set(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | self.session = session
116 | }
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:134:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | /// Add a cookie to the storage
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | cookies?.removeAll(where: { $0.name == cookie.name })
136 | cookies?.append(cookie)
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:155:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | /// Add a cookie to the storage
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | cookies?.removeAll(where: { $0.name == cookie.name })
157 | cookies?.append(cookie)
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:135:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
135 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
136 | cookies?.append(cookie)
137 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:135:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
135 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
136 | cookies?.append(cookie)
137 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:156:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
156 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
157 | cookies?.append(cookie)
158 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:156:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
156 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
157 | cookies?.append(cookie)
158 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:96:38: error: cannot find type 'URLSessionDataDelegate' in scope
94 | }
95 |
96 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
97 | internal var onMessage: ((Data) -> Void)?
98 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:103:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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:103:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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:87: error: cannot find 'OperationQueue' in scope
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: cannot find 'OperationQueue' in scope
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:48: error: cannot infer contextual base in reference to member 'default'
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: cannot infer contextual base in reference to member 'default'
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:67: error: 'nil' requires a contextual type
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: 'nil' requires a contextual type
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:63:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
63 | ESsession?.configuration.httpCookieStorage?.setCookie(cookieData)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
64 | }
65 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:67:23: error: cannot find 'URLRequest' in scope
65 | }
66 |
67 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
68 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
69 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:70:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
68 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
69 |
70 | task = ESsession?.dataTask(with: request) { _, _, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
71 | if let error = error {
72 | self.onError?(error)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:76:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
74 | }
75 | }
76 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
77 |
78 | // Keep listening with streaming delegate
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:79:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | // Keep listening with streaming delegate
79 | ESsession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
80 | configuration: .default,
81 | delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:80:29: error: cannot infer contextual base in reference to member 'default'
78 | // Keep listening with streaming delegate
79 | ESsession = URLSession(
80 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
81 | delegate: EventSourceDelegate(onMessage: onMessage),
82 | delegateQueue: nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:28: error: 'nil' requires a contextual type
80 | configuration: .default,
81 | delegate: EventSourceDelegate(onMessage: onMessage),
82 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
83 | )
84 | task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:84:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | delegateQueue: nil
83 | )
84 | task = ESsession?.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
85 | task?.resume()
86 | onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:85:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
83 | )
84 | task = ESsession?.dataTask(with: request)
85 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
86 | onOpen?()
87 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:91:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
89 | /// Disconnect the EventSource connection.
90 | public func eventSourceDisconnect() {
91 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
92 | ESsession?.invalidateAndCancel()
93 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:92:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | public func eventSourceDisconnect() {
91 | task?.cancel()
92 | ESsession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | }
94 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
36 | self.onMessage = responder
37 | WSSocket = URLSession.shared.webSocketTask(with: socket)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
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 |
[13/28] Compiling SimpleNetworking WebSocket.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
50 |
51 | /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:28: error: cannot find type 'URLSessionWebSocketTask' in scope
65 |
66 | /// Websocket socket
67 | internal var WSSocket: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
68 |
69 | /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// All the cookies
28 | public var cookies: [HTTPCookie]? = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Header
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:49:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// custom session
49 | internal var session: URLSession? = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// 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:61:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 | /// URLSession Data Task
61 | internal var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// 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:64:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | /// EventSource session
64 | internal var ESsession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// 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:114:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | /// Set the session
113 | /// - Parameter session: session
114 | public func set(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | self.session = session
116 | }
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:134:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | /// Add a cookie to the storage
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | cookies?.removeAll(where: { $0.name == cookie.name })
136 | cookies?.append(cookie)
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:155:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | /// Add a cookie to the storage
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | cookies?.removeAll(where: { $0.name == cookie.name })
157 | cookies?.append(cookie)
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:135:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
135 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
136 | cookies?.append(cookie)
137 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:135:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
133 | /// - Parameter add: cookie
134 | public func cookie(add cookie: HTTPCookie) {
135 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
136 | cookies?.append(cookie)
137 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:156:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
156 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
157 | cookies?.append(cookie)
158 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:156:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
154 | /// - Parameter add: cookie
155 | public func add(cookie: HTTPCookie) {
156 | cookies?.removeAll(where: { $0.name == cookie.name })
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
157 | cookies?.append(cookie)
158 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:96:38: error: cannot find type 'URLSessionDataDelegate' in scope
94 | }
95 |
96 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
97 | internal var onMessage: ((Data) -> Void)?
98 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:103:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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:103:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | 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.
104 | onMessage?(data)
105 | }
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:87: error: cannot find 'OperationQueue' in scope
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: cannot find 'OperationQueue' in scope
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:48: error: cannot infer contextual base in reference to member 'default'
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: cannot infer contextual base in reference to member 'default'
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:67: error: 'nil' requires a contextual type
58 | self.onError = onError
59 |
60 | ESsession = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue())
| `- error: 'nil' requires a contextual type
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:63:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
61 | if let cookies = self.cookies {
62 | for cookieData in cookies {
63 | ESsession?.configuration.httpCookieStorage?.setCookie(cookieData)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
64 | }
65 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:67:23: error: cannot find 'URLRequest' in scope
65 | }
66 |
67 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
68 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
69 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:70:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
68 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
69 |
70 | task = ESsession?.dataTask(with: request) { _, _, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
71 | if let error = error {
72 | self.onError?(error)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:76:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
74 | }
75 | }
76 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
77 |
78 | // Keep listening with streaming delegate
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:79:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | // Keep listening with streaming delegate
79 | ESsession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
80 | configuration: .default,
81 | delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:80:29: error: cannot infer contextual base in reference to member 'default'
78 | // Keep listening with streaming delegate
79 | ESsession = URLSession(
80 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
81 | delegate: EventSourceDelegate(onMessage: onMessage),
82 | delegateQueue: nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:28: error: 'nil' requires a contextual type
80 | configuration: .default,
81 | delegate: EventSourceDelegate(onMessage: onMessage),
82 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
83 | )
84 | task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:84:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
82 | delegateQueue: nil
83 | )
84 | task = ESsession?.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
85 | task?.resume()
86 | onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:85:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
83 | )
84 | task = ESsession?.dataTask(with: request)
85 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
86 | onOpen?()
87 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:91:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
89 | /// Disconnect the EventSource connection.
90 | public func eventSourceDisconnect() {
91 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
92 | ESsession?.invalidateAndCancel()
93 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:92:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | public func eventSourceDisconnect() {
91 | task?.cancel()
92 | ESsession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | }
94 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
36 | self.onMessage = responder
37 | WSSocket = URLSession.shared.webSocketTask(with: socket)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
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 |
[14/28] Compiling SimpleNetworking HTTPMethod.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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// URL Response
34 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// HTTP 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/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// Received cookies.
52 | public var cookies: [HTTPCookie]?
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 | /// Request
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/Structs/NetworkResponse.swift:68:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
66 |
67 | if let cookies = cookies,
68 | let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
69 | cookieString = "-H 'Cookie: \(cookieValue)'"
70 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
86 | /// Get the returned HTTP Headers
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// Get the returned HTTP Headers
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
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/Structs/NetworkResponse.swift:89:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
89 | return httpURLResponse?.allHeaderFields.compactMap {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
90 | guard let key = $0.key as? String,
91 | let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:91:69: error: 'nil' requires a contextual type
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
91 | let value = $0.value as? String else { return nil }
| `- error: 'nil' requires a contextual type
92 |
93 | return HTTPHeader(name: key, value: value)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:112:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
110 |
111 | if let cookies = cookies,
112 | let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
113 | lines.append("Cookie: \(cookieValue)")
114 | }
[15/28] Compiling SimpleNetworking NetworkResponse.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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// URL Response
34 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// HTTP 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/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// Received cookies.
52 | public var cookies: [HTTPCookie]?
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 | /// Request
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/Structs/NetworkResponse.swift:68:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
66 |
67 | if let cookies = cookies,
68 | let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
69 | cookieString = "-H 'Cookie: \(cookieValue)'"
70 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
86 | /// Get the returned HTTP Headers
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// Get the returned HTTP Headers
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
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/Structs/NetworkResponse.swift:89:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
89 | return httpURLResponse?.allHeaderFields.compactMap {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
90 | guard let key = $0.key as? String,
91 | let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:91:69: error: 'nil' requires a contextual type
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
91 | let value = $0.value as? String else { return nil }
| `- error: 'nil' requires a contextual type
92 |
93 | return HTTPHeader(name: key, value: value)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:112:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
110 |
111 | if let cookies = cookies,
112 | let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
113 | lines.append("Cookie: \(cookieValue)")
114 | }
[16/28] Compiling SimpleNetworking NetworkingError.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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// URL Response
34 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// HTTP 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/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |
51 | /// Received cookies.
52 | public var cookies: [HTTPCookie]?
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 | /// Request
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/Structs/NetworkResponse.swift:68:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
66 |
67 | if let cookies = cookies,
68 | let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
69 | cookieString = "-H 'Cookie: \(cookieValue)'"
70 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
86 | /// Get the returned HTTP Headers
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// Get the returned HTTP Headers
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
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/Structs/NetworkResponse.swift:89:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | public var headers: [HTTPHeader] {
88 | let httpURLResponse = self.response as? HTTPURLResponse
89 | return httpURLResponse?.allHeaderFields.compactMap {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
90 | guard let key = $0.key as? String,
91 | let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:91:69: error: 'nil' requires a contextual type
89 | return httpURLResponse?.allHeaderFields.compactMap {
90 | guard let key = $0.key as? String,
91 | let value = $0.value as? String else { return nil }
| `- error: 'nil' requires a contextual type
92 |
93 | return HTTPHeader(name: key, value: value)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:112:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
110 |
111 | if let cookies = cookies,
112 | let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
113 | lines.append("Cookie: \(cookieValue)")
114 | }
[17/28] Compiling SimpleNetworking POSTEncoding.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:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// - statusCode: Mocked HTTP Response status code
46 | /// - error: Mocked Error (if any)
47 | 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.
48 | self.data = data?.data(using: .utf8)
49 | 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
[18/28] 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:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// - statusCode: Mocked HTTP Response status code
46 | /// - error: Mocked Error (if any)
47 | 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.
48 | self.data = data?.data(using: .utf8)
49 | 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
[19/28] 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:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// - statusCode: Mocked HTTP Response status code
46 | /// - error: Mocked Error (if any)
47 | 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.
48 | self.data = data?.data(using: .utf8)
49 | 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
[20/28] Compiling SimpleNetworking Debug.swift
[21/28] Compiling SimpleNetworking FileUpload.swift
[22/28] Compiling SimpleNetworking HTTPHeader.swift
[23/28] Compiling SimpleNetworking cookies.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 | /// - value: cookie value
25 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 | if let cookie = HTTPCookie(properties: [
| `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 | .domain: domain,
28 | .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:14: error: reference to member 'domain' cannot be resolved without a contextual type
25 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 | if let cookie = HTTPCookie(properties: [
27 | .domain: domain,
| `- error: reference to member 'domain' cannot be resolved without a contextual type
28 | .path: path,
29 | .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:28:14: error: reference to member 'path' cannot be resolved without a contextual type
26 | if let cookie = HTTPCookie(properties: [
27 | .domain: domain,
28 | .path: path,
| `- error: reference to member 'path' cannot be resolved without a contextual type
29 | .name: name,
30 | .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:29:14: error: reference to member 'name' cannot be resolved without a contextual type
27 | .domain: domain,
28 | .path: path,
29 | .name: name,
| `- error: reference to member 'name' cannot be resolved without a contextual type
30 | .value: value
31 | ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:30:14: error: reference to member 'value' cannot be resolved without a contextual type
28 | .path: path,
29 | .name: name,
30 | .value: value
| `- error: reference to member 'value' cannot be resolved without a contextual type
31 | ]) {
32 | cookies?.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:46:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - value: cookie value
45 | public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
46 | var newCookieStorage: [HTTPCookie] = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | guard let unwrapped = cookies else {
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:56:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
54 | cookie.path == path,
55 | cookie.name == name,
56 | cookie.value == value
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
57 | ].contains(true) {
58 | newCookieStorage.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:55:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
53 | cookie.domain == deleteCookieWithDomain,
54 | cookie.path == path,
55 | cookie.name == name,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
56 | cookie.value == value
57 | ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:54:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
52 | for cookie in unwrapped where ![
53 | cookie.domain == deleteCookieWithDomain,
54 | cookie.path == path,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
55 | cookie.name == name,
56 | cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:53:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
51 |
52 | for cookie in unwrapped where ![
53 | cookie.domain == deleteCookieWithDomain,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
54 | cookie.path == path,
55 | cookie.name == name,
/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:118:23: error: cannot find type 'URLRequest' in scope
116 | /// - Returns: ``NetworkResponse``
117 | internal func exec(
118 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
119 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
120 | file: String = #file,
/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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:42:30: error: 'nil' requires a contextual type
40 | string: String(data: data, encoding: .utf8),
41 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
42 | cookies: nil,
| `- error: 'nil' requires a contextual type
43 | request: request
44 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:61:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
59 | if let cookies = self.cookies {
60 | for cookieData in cookies {
61 | if let cookiestorage = self.session?.configuration.httpCookieStorage {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
62 | cookiestorage.setCookie(cookieData)
63 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:75:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |
74 | do {
75 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 |
77 | if let responseCookies = session.configuration.httpCookieStorage?.cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:77:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
75 | let (data, response) = try await session.data(for: request)
76 |
77 | if let responseCookies = session.configuration.httpCookieStorage?.cookies {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
78 | // Save our cookies
79 | cookies = responseCookies
/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:101:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
99 | string: String(data: data, encoding: .utf8),
100 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
101 | cookies: session.configuration.httpCookieStorage?.cookies,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
102 | request: request
103 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:97:28: error: 'nil' requires a contextual type
95 | response: response,
96 | statuscode: httpCode,
97 | error: nil,
| `- error: 'nil' requires a contextual type
98 | data: data,
99 | string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:134:30: error: 'nil' requires a contextual type
132 | string: String(data: data, encoding: .utf8),
133 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
134 | cookies: nil,
| `- error: 'nil' requires a contextual type
135 | request: request
136 | ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | }
138 |
139 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:40: error: cannot infer contextual base in reference to member 'userInitiated'
137 | }
138 |
139 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:142:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
142 | self.session?.configuration.httpCookieStorage?.setCookie(cookieData)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
143 | }
144 | }
[24/28] Compiling SimpleNetworking createHTTPBody.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 | /// - value: cookie value
25 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 | if let cookie = HTTPCookie(properties: [
| `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 | .domain: domain,
28 | .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:14: error: reference to member 'domain' cannot be resolved without a contextual type
25 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 | if let cookie = HTTPCookie(properties: [
27 | .domain: domain,
| `- error: reference to member 'domain' cannot be resolved without a contextual type
28 | .path: path,
29 | .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:28:14: error: reference to member 'path' cannot be resolved without a contextual type
26 | if let cookie = HTTPCookie(properties: [
27 | .domain: domain,
28 | .path: path,
| `- error: reference to member 'path' cannot be resolved without a contextual type
29 | .name: name,
30 | .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:29:14: error: reference to member 'name' cannot be resolved without a contextual type
27 | .domain: domain,
28 | .path: path,
29 | .name: name,
| `- error: reference to member 'name' cannot be resolved without a contextual type
30 | .value: value
31 | ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:30:14: error: reference to member 'value' cannot be resolved without a contextual type
28 | .path: path,
29 | .name: name,
30 | .value: value
| `- error: reference to member 'value' cannot be resolved without a contextual type
31 | ]) {
32 | cookies?.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:46:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - value: cookie value
45 | public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
46 | var newCookieStorage: [HTTPCookie] = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | guard let unwrapped = cookies else {
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:56:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
54 | cookie.path == path,
55 | cookie.name == name,
56 | cookie.value == value
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
57 | ].contains(true) {
58 | newCookieStorage.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:55:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
53 | cookie.domain == deleteCookieWithDomain,
54 | cookie.path == path,
55 | cookie.name == name,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
56 | cookie.value == value
57 | ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:54:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
52 | for cookie in unwrapped where ![
53 | cookie.domain == deleteCookieWithDomain,
54 | cookie.path == path,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
55 | cookie.name == name,
56 | cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:53:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
51 |
52 | for cookie in unwrapped where ![
53 | cookie.domain == deleteCookieWithDomain,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
54 | cookie.path == path,
55 | cookie.name == name,
/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:118:23: error: cannot find type 'URLRequest' in scope
116 | /// - Returns: ``NetworkResponse``
117 | internal func exec(
118 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
119 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
120 | file: String = #file,
/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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:42:30: error: 'nil' requires a contextual type
40 | string: String(data: data, encoding: .utf8),
41 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
42 | cookies: nil,
| `- error: 'nil' requires a contextual type
43 | request: request
44 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:61:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
59 | if let cookies = self.cookies {
60 | for cookieData in cookies {
61 | if let cookiestorage = self.session?.configuration.httpCookieStorage {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
62 | cookiestorage.setCookie(cookieData)
63 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:75:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |
74 | do {
75 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 |
77 | if let responseCookies = session.configuration.httpCookieStorage?.cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:77:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
75 | let (data, response) = try await session.data(for: request)
76 |
77 | if let responseCookies = session.configuration.httpCookieStorage?.cookies {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
78 | // Save our cookies
79 | cookies = responseCookies
/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:101:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
99 | string: String(data: data, encoding: .utf8),
100 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
101 | cookies: session.configuration.httpCookieStorage?.cookies,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
102 | request: request
103 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:97:28: error: 'nil' requires a contextual type
95 | response: response,
96 | statuscode: httpCode,
97 | error: nil,
| `- error: 'nil' requires a contextual type
98 | data: data,
99 | string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:134:30: error: 'nil' requires a contextual type
132 | string: String(data: data, encoding: .utf8),
133 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
134 | cookies: nil,
| `- error: 'nil' requires a contextual type
135 | request: request
136 | ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | }
138 |
139 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:40: error: cannot infer contextual base in reference to member 'userInitiated'
137 | }
138 |
139 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:142:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
142 | self.session?.configuration.httpCookieStorage?.setCookie(cookieData)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
143 | }
144 | }
[25/28] Compiling SimpleNetworking exec.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 | /// - value: cookie value
25 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 | if let cookie = HTTPCookie(properties: [
| `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 | .domain: domain,
28 | .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:14: error: reference to member 'domain' cannot be resolved without a contextual type
25 | @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 | if let cookie = HTTPCookie(properties: [
27 | .domain: domain,
| `- error: reference to member 'domain' cannot be resolved without a contextual type
28 | .path: path,
29 | .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:28:14: error: reference to member 'path' cannot be resolved without a contextual type
26 | if let cookie = HTTPCookie(properties: [
27 | .domain: domain,
28 | .path: path,
| `- error: reference to member 'path' cannot be resolved without a contextual type
29 | .name: name,
30 | .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:29:14: error: reference to member 'name' cannot be resolved without a contextual type
27 | .domain: domain,
28 | .path: path,
29 | .name: name,
| `- error: reference to member 'name' cannot be resolved without a contextual type
30 | .value: value
31 | ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:30:14: error: reference to member 'value' cannot be resolved without a contextual type
28 | .path: path,
29 | .name: name,
30 | .value: value
| `- error: reference to member 'value' cannot be resolved without a contextual type
31 | ]) {
32 | cookies?.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:46:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - value: cookie value
45 | public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
46 | var newCookieStorage: [HTTPCookie] = []
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | guard let unwrapped = cookies else {
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:56:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
54 | cookie.path == path,
55 | cookie.name == name,
56 | cookie.value == value
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
57 | ].contains(true) {
58 | newCookieStorage.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:55:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
53 | cookie.domain == deleteCookieWithDomain,
54 | cookie.path == path,
55 | cookie.name == name,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
56 | cookie.value == value
57 | ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:54:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
52 | for cookie in unwrapped where ![
53 | cookie.domain == deleteCookieWithDomain,
54 | cookie.path == path,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
55 | cookie.name == name,
56 | cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:53:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
51 |
52 | for cookie in unwrapped where ![
53 | cookie.domain == deleteCookieWithDomain,
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
54 | cookie.path == path,
55 | cookie.name == name,
/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:118:23: error: cannot find type 'URLRequest' in scope
116 | /// - Returns: ``NetworkResponse``
117 | internal func exec(
118 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
119 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
120 | file: String = #file,
/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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:42:30: error: 'nil' requires a contextual type
40 | string: String(data: data, encoding: .utf8),
41 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
42 | cookies: nil,
| `- error: 'nil' requires a contextual type
43 | request: request
44 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:61:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
59 | if let cookies = self.cookies {
60 | for cookieData in cookies {
61 | if let cookiestorage = self.session?.configuration.httpCookieStorage {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
62 | cookiestorage.setCookie(cookieData)
63 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:75:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |
74 | do {
75 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
76 |
77 | if let responseCookies = session.configuration.httpCookieStorage?.cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:77:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
75 | let (data, response) = try await session.data(for: request)
76 |
77 | if let responseCookies = session.configuration.httpCookieStorage?.cookies {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
78 | // Save our cookies
79 | cookies = responseCookies
/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:101:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
99 | string: String(data: data, encoding: .utf8),
100 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
101 | cookies: session.configuration.httpCookieStorage?.cookies,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
102 | request: request
103 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:97:28: error: 'nil' requires a contextual type
95 | response: response,
96 | statuscode: httpCode,
97 | error: nil,
| `- error: 'nil' requires a contextual type
98 | data: data,
99 | string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:134:30: error: 'nil' requires a contextual type
132 | string: String(data: data, encoding: .utf8),
133 | dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
134 | cookies: nil,
| `- error: 'nil' requires a contextual type
135 | request: request
136 | ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | }
138 |
139 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:40: error: cannot infer contextual base in reference to member 'userInitiated'
137 | }
138 |
139 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:142:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
140 | if let cookies = self.cookies {
141 | for cookieData in cookies {
142 | self.session?.configuration.httpCookieStorage?.setCookie(cookieData)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
143 | }
144 | }
[26/28] Compiling SimpleNetworking logging.swift
/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/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:107:46: error: cannot find type 'URLRequest' in scope
105 | }
106 |
107 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
108 | // Create a URL Request
109 | var request = URLRequest(url: url)
/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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:39:27: error: cannot infer contextual base in reference to member 'init'
37 | message: "Error: Request endpoint doesn't appear to be an URL"
38 | ),
39 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
40 | )
41 | }
/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:118:23: error: cannot find type 'URLRequest' in scope
116 | /// - Returns: ``NetworkResponse``
117 | internal func exec(
118 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
119 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
120 | file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:83:31: error: cannot infer contextual base in reference to member 'init'
81 | message: "Error: Request endpoint doesn't appear to be an URL"
82 | ),
83 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
84 | )
85 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:109:23: error: cannot find 'URLRequest' in scope
107 | internal func createRequest(url: URL) -> URLRequest {
108 | // Create a URL Request
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 |
111 | // Add the user agent
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
87 | /// - uploadData: The multipart upload data
88 | /// - Returns: URLRequest or nil if URL is invalid
89 | private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
90 | guard let siteURL = self.isURL(path) else {
91 | return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:42:27: error: cannot infer contextual base in reference to member 'init'
40 | message: "Error: Upload endpoint doesn't appear to be an URL"
41 | ),
42 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
43 | )
44 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:75:31: error: cannot infer contextual base in reference to member 'init'
73 | message: "Error: Upload endpoint doesn't appear to be an URL"
74 | ),
75 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
76 | )
77 | )
[27/28] Compiling SimpleNetworking request.swift
/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/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:107:46: error: cannot find type 'URLRequest' in scope
105 | }
106 |
107 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
108 | // Create a URL Request
109 | var request = URLRequest(url: url)
/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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:39:27: error: cannot infer contextual base in reference to member 'init'
37 | message: "Error: Request endpoint doesn't appear to be an URL"
38 | ),
39 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
40 | )
41 | }
/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:118:23: error: cannot find type 'URLRequest' in scope
116 | /// - Returns: ``NetworkResponse``
117 | internal func exec(
118 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
119 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
120 | file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:83:31: error: cannot infer contextual base in reference to member 'init'
81 | message: "Error: Request endpoint doesn't appear to be an URL"
82 | ),
83 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
84 | )
85 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:109:23: error: cannot find 'URLRequest' in scope
107 | internal func createRequest(url: URL) -> URLRequest {
108 | // Create a URL Request
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 |
111 | // Add the user agent
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
87 | /// - uploadData: The multipart upload data
88 | /// - Returns: URLRequest or nil if URL is invalid
89 | private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
90 | guard let siteURL = self.isURL(path) else {
91 | return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:42:27: error: cannot infer contextual base in reference to member 'init'
40 | message: "Error: Upload endpoint doesn't appear to be an URL"
41 | ),
42 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
43 | )
44 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:75:31: error: cannot infer contextual base in reference to member 'init'
73 | message: "Error: Upload endpoint doesn't appear to be an URL"
74 | ),
75 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
76 | )
77 | )
[28/28] Compiling SimpleNetworking uploadMethods.swift
/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/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:107:46: error: cannot find type 'URLRequest' in scope
105 | }
106 |
107 | internal func createRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
108 | // Create a URL Request
109 | var request = URLRequest(url: url)
/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 | /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:39:27: error: cannot infer contextual base in reference to member 'init'
37 | message: "Error: Request endpoint doesn't appear to be an URL"
38 | ),
39 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
40 | )
41 | }
/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:118:23: error: cannot find type 'URLRequest' in scope
116 | /// - Returns: ``NetworkResponse``
117 | internal func exec(
118 | with request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
119 | completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
120 | file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:83:31: error: cannot infer contextual base in reference to member 'init'
81 | message: "Error: Request endpoint doesn't appear to be an URL"
82 | ),
83 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
84 | )
85 | )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:109:23: error: cannot find 'URLRequest' in scope
107 | internal func createRequest(url: URL) -> URLRequest {
108 | // Create a URL Request
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 |
111 | // Add the user agent
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
87 | /// - uploadData: The multipart upload data
88 | /// - Returns: URLRequest or nil if URL is invalid
89 | private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
90 | guard let siteURL = self.isURL(path) else {
91 | return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:42:27: error: cannot infer contextual base in reference to member 'init'
40 | message: "Error: Upload endpoint doesn't appear to be an URL"
41 | ),
42 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
43 | )
44 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:75:31: error: cannot infer contextual base in reference to member 'init'
73 | message: "Error: Upload endpoint doesn't appear to be an URL"
74 | ),
75 | request: .init(url: defaultURL)
| `- error: cannot infer contextual base in reference to member 'init'
76 | )
77 | )
BUILD FAILURE 6.1 wasm