Build Information
Failed to build SimpleNetworking, reference main (85a76c), with Swift 6.3 for Wasm on 21 Apr 2026 18:25:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/SimpleNetworking.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/0xWDG/SimpleNetworking
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 85a76c4 Merge pull request #12 from 0xWDG/add-upload-and-propertywrappers
Cloned https://github.com/0xWDG/SimpleNetworking.git
Revision (git rev-parse @):
85a76c4c4026a66d9e7950afd096c84a0de5b72a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/SimpleNetworking.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/0xWDG/SimpleNetworking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/27] 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: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
[5/30] 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
[6/30] 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
[7/30] 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
[8/30] 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: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 | }
[9/30] 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: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 | }
[10/30] 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: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 | }
[11/30] 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: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/30] 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: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/30] 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: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/30] 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 | )
[15/30] 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 | )
[16/30] 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 | )
[17/30] 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: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/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: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: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/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 | }
[18/30] 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: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/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: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: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/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 | }
[19/30] 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: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/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: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: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/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 | }
[20/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
[21/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
[22/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
[23/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
[24/30] 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
[25/30] 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
[26/30] 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
[27/30] 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
[28/30] Compiling SimpleNetworking Debug.swift
[29/30] Compiling SimpleNetworking FileUpload.swift
[30/30] Compiling SimpleNetworking HTTPHeader.swift
BUILD FAILURE 6.3 wasm