Build Information
Failed to build YapKitSDK, reference main (4d52b5), with Swift 6.3 for Wasm on 9 Oct 2026 08:07:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Rice-Box-Labs/yapkit-swift.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/Rice-Box-Labs/yapkit-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4d52b5f Keep tab bar visible in conversations
Cloned https://github.com/Rice-Box-Labs/yapkit-swift.git
Revision (git rev-parse @):
4d52b5f4f3f7a59070693fcc9e0e19d219d3fc87
SUCCESS checkout https://github.com/Rice-Box-Labs/yapkit-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Rice-Box-Labs/yapkit-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:df2e9038ff906af397ec7b7e13902ccb183f8867606bc33419e44453a9abdb4b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/iconoir-icons/iconoir-swift.git
[1/5385] Fetching iconoir-swift
Fetched https://github.com/iconoir-icons/iconoir-swift.git from cache (0.45s)
Computing version for https://github.com/iconoir-icons/iconoir-swift.git
Computed https://github.com/iconoir-icons/iconoir-swift.git at 7.5.1 (1.35s)
Creating working copy for https://github.com/iconoir-icons/iconoir-swift.git
Working copy of https://github.com/iconoir-icons/iconoir-swift.git resolved at 7.5.1
warning: 'iconoir-swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/iconoir-swift/Sources/Iconoir/Assets.xcassets
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/15] Compiling YapKit YapPushRegistration.swift
[6/15] Compiling YapKit YapEnvironment.swift
[7/15] Compiling YapKit YapChatService.swift
[8/15] Compiling YapKit YapClient.swift
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:4:88: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public final class YapClient: YapChatService, Sendable {
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
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/YapKit/YapClient.swift:6:116: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
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/YapKit/YapClient.swift:6:130: error: value of type '_' expected to be instance of class or class-constrained type
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:6:130: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:9:75: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
9 | public init(baseURL: URL, authentication: YapAuthentication, session: URLSession = .shared) { self.baseURL = baseURL; self.auth = authentication; self.session = session; self.decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970 }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func url(for path: String) -> URL {
11 | // `URL.appending(path:)` treats `?` as a literal path character and
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/YapKit/YapClient.swift:9:89: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
9 | public init(baseURL: URL, authentication: YapAuthentication, session: URLSession = .shared) { self.baseURL = baseURL; self.auth = authentication; self.session = session; self.decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970 }
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | func url(for path: String) -> URL {
11 | // `URL.appending(path:)` treats `?` as a literal path character and
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:9:89: error: value of type '_' expected to be instance of class or class-constrained type
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
9 | public init(baseURL: URL, authentication: YapAuthentication, session: URLSession = .shared) { self.baseURL = baseURL; self.auth = authentication; self.session = session; self.decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970 }
| `- error: value of type '_' expected to be instance of class or class-constrained type
10 | func url(for path: String) -> URL {
11 | // `URL.appending(path:)` treats `?` as a literal path character and
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:4:79: error: stored property 'session' of 'Sendable'-conforming class 'YapClient' has non-Sendable type 'AnyObject'
2 |
3 | public final class YapClient: YapChatService, Sendable {
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'YapClient' has non-Sendable type 'AnyObject'
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:75:23: error: cannot find type 'URLSessionWebSocketTask' in scope
73 |
74 | public final class YapChannelSocket: @unchecked Sendable {
75 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
76 | private let decoder: JSONDecoder
77 | public private(set) var hasMore = false
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:78:16: error: cannot find type 'URLSessionWebSocketTask' in scope
76 | private let decoder: JSONDecoder
77 | public private(set) var hasMore = false
78 | init(task: URLSessionWebSocketTask) { self.task = task; decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970; task.resume() }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
79 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
80 | public func sendTyping(isTyping: Bool) async throws {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:111:23: error: cannot find type 'URLSessionWebSocketTask' in scope
109 |
110 | public final class YapInboxSocket: @unchecked Sendable {
111 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
112 | private let decoder = JSONDecoder()
113 | init(task: URLSessionWebSocketTask) { self.task = task; task.resume() }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:113:16: error: cannot find type 'URLSessionWebSocketTask' in scope
111 | private let task: URLSessionWebSocketTask
112 | private let decoder = JSONDecoder()
113 | init(task: URLSessionWebSocketTask) { self.task = task; task.resume() }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
114 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
115 | public func receive() async throws -> YapInboxSocketEvent {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:17:23: error: cannot find 'URLRequest' in scope
15 | }
16 | func request<T: Decodable>(_ path: String, method: String = "GET", body: Data? = nil) async throws -> T {
17 | var request = URLRequest(url: url(for: path)); request.httpMethod = method; request.httpBody = body; request.setValue("application/json", forHTTPHeaderField: "content-type"); request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
| `- error: cannot find 'URLRequest' in scope
18 | let (data, response) = try await session.data(for: request)
19 | guard let http = response as? HTTPURLResponse else { throw YapError.transport("invalid response") }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:18:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
16 | func request<T: Decodable>(_ path: String, method: String = "GET", body: Data? = nil) async throws -> T {
17 | var request = URLRequest(url: url(for: path)); request.httpMethod = method; request.httpBody = body; request.setValue("application/json", forHTTPHeaderField: "content-type"); request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
18 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
19 | guard let http = response as? HTTPURLResponse else { throw YapError.transport("invalid response") }
20 | guard (200..<300).contains(http.statusCode) else { if http.statusCode == 401 { throw YapError.unauthorized }; if http.statusCode == 403 { throw YapError.forbidden }; throw YapError.server(code: String(http.statusCode)) }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:42:23: error: cannot find 'URLRequest' in scope
40 | }
41 | private func requestRaw(_ path: String, method: String) async throws -> Data {
42 | var request = URLRequest(url: url(for: path)); request.httpMethod = method; request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
| `- error: cannot find 'URLRequest' in scope
43 | let (data, response) = try await session.data(for: request); guard let http = response as? HTTPURLResponse else { throw YapError.transport("invalid response") }; guard (200..<300).contains(http.statusCode) else { if http.statusCode == 401 { throw YapError.unauthorized }; if http.statusCode == 403 { throw YapError.forbidden }; throw YapError.server(code: String(http.statusCode)) }; return data
44 | }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:43:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
41 | private func requestRaw(_ path: String, method: String) async throws -> Data {
42 | var request = URLRequest(url: url(for: path)); request.httpMethod = method; request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
43 | let (data, response) = try await session.data(for: request); guard let http = response as? HTTPURLResponse else { throw YapError.transport("invalid response") }; guard (200..<300).contains(http.statusCode) else { if http.statusCode == 401 { throw YapError.unauthorized }; if http.statusCode == 403 { throw YapError.forbidden }; throw YapError.server(code: String(http.statusCode)) }; return data
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
44 | }
45 | public func registerApplePushDevice(token: Data, bundleIdentifier: String, environment: YapAPNsEnvironment) async throws {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:57:23: error: cannot find 'URLRequest' in scope
55 | }
56 | public func openChannelSocket(channelId: String, after: Int) async throws -> YapChannelSocket {
57 | var request = URLRequest(url: webSocketURL(channelId: channelId, after: after))
| `- error: cannot find 'URLRequest' in scope
58 | request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
59 | return YapChannelSocket(task: session.webSocketTask(with: request))
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:59:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
57 | var request = URLRequest(url: webSocketURL(channelId: channelId, after: after))
58 | request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
59 | return YapChannelSocket(task: session.webSocketTask(with: request))
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
60 | }
61 | func inboxWebSocketURL() -> URL {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:67:23: error: cannot find 'URLRequest' in scope
65 | }
66 | public func openInboxSocket() async throws -> YapInboxSocket {
67 | var request = URLRequest(url: inboxWebSocketURL())
| `- error: cannot find 'URLRequest' in scope
68 | request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
69 | return YapInboxSocket(task: session.webSocketTask(with: request))
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:69:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
67 | var request = URLRequest(url: inboxWebSocketURL())
68 | request.setValue("Bearer \(try await auth.provider.accessToken())", forHTTPHeaderField: "authorization")
69 | return YapInboxSocket(task: session.webSocketTask(with: request))
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
70 | }
71 | struct ChannelResponse: Decodable { let channels: [YapChannel] }; struct UserResponse: Decodable { let users: [YapUser] }; struct SingleChannelResponse: Decodable { let channel: YapChannel }; struct MessageResponse: Decodable { let messages: [YapMessage] }; struct SingleMessageResponse: Decodable { let message: YapMessage }; struct SearchResponse: Decodable { let results: [YapSearchResult] }; struct ReadResponse: Decodable { let channelId: String; let lastReadSequence: Int }; struct DeviceRegistrationResponse: Decodable { let registered: Bool }; struct AppleDeviceRegistration: Encodable { let deviceToken: String; let bundleIdentifier: String; let environment: YapAPNsEnvironment }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:79:47: error: cannot infer contextual base in reference to member 'goingAway'
77 | public private(set) var hasMore = false
78 | init(task: URLSessionWebSocketTask) { self.task = task; decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970; task.resume() }
79 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
| `- error: cannot infer contextual base in reference to member 'goingAway'
80 | public func sendTyping(isTyping: Bool) async throws {
81 | let payload = try JSONSerialization.data(
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:79:66: error: 'nil' requires a contextual type
77 | public private(set) var hasMore = false
78 | init(task: URLSessionWebSocketTask) { self.task = task; decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970; task.resume() }
79 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
| `- error: 'nil' requires a contextual type
80 | public func sendTyping(isTyping: Bool) async throws {
81 | let payload = try JSONSerialization.data(
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:89:30: error: cannot infer contextual base in reference to member 'string'
87 | throw YapError.transport("could not encode typing signal")
88 | }
89 | try await task.send(.string(message))
| `- error: cannot infer contextual base in reference to member 'string'
90 | }
91 | public func receive() async throws -> YapSocketEvent {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:114:47: error: cannot infer contextual base in reference to member 'goingAway'
112 | private let decoder = JSONDecoder()
113 | init(task: URLSessionWebSocketTask) { self.task = task; task.resume() }
114 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
| `- error: cannot infer contextual base in reference to member 'goingAway'
115 | public func receive() async throws -> YapInboxSocketEvent {
116 | let payload = try await task.receive()
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:114:66: error: 'nil' requires a contextual type
112 | private let decoder = JSONDecoder()
113 | init(task: URLSessionWebSocketTask) { self.task = task; task.resume() }
114 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
| `- error: 'nil' requires a contextual type
115 | public func receive() async throws -> YapInboxSocketEvent {
116 | let payload = try await task.receive()
[9/15] Compiling Iconoir Iconoir.swift
[10/15] Emitting module Iconoir
[11/15] Compiling Iconoir Icon.swift
[13/16] Compiling YapKit Models.swift
[14/16] Compiling YapKit Authentication.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/16] Compiling YapKit Controllers.swift
[16/16] Emitting module YapKit
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:4:88: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public final class YapClient: YapChatService, Sendable {
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
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/YapKit/YapClient.swift:6:116: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
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/YapKit/YapClient.swift:6:130: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:6:130: error: value of type '_' expected to be instance of class or class-constrained type
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:9:75: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
9 | public init(baseURL: URL, authentication: YapAuthentication, session: URLSession = .shared) { self.baseURL = baseURL; self.auth = authentication; self.session = session; self.decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970 }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func url(for path: String) -> URL {
11 | // `URL.appending(path:)` treats `?` as a literal path character and
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/YapKit/YapClient.swift:9:89: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
9 | public init(baseURL: URL, authentication: YapAuthentication, session: URLSession = .shared) { self.baseURL = baseURL; self.auth = authentication; self.session = session; self.decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970 }
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | func url(for path: String) -> URL {
11 | // `URL.appending(path:)` treats `?` as a literal path character and
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:9:89: error: value of type '_' expected to be instance of class or class-constrained type
7 | self.init(baseURL: environment.baseURL, authentication: authentication, session: session)
8 | }
9 | public init(baseURL: URL, authentication: YapAuthentication, session: URLSession = .shared) { self.baseURL = baseURL; self.auth = authentication; self.session = session; self.decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970 }
| `- error: value of type '_' expected to be instance of class or class-constrained type
10 | func url(for path: String) -> URL {
11 | // `URL.appending(path:)` treats `?` as a literal path character and
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:4:79: error: stored property 'session' of 'Sendable'-conforming class 'YapClient' has non-Sendable type 'AnyObject'
2 |
3 | public final class YapClient: YapChatService, Sendable {
4 | public let baseURL: URL; private let auth: YapAuthentication; private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'YapClient' has non-Sendable type 'AnyObject'
5 | private let decoder: JSONDecoder
6 | public convenience init(environment: YapEnvironment = .production, authentication: YapAuthentication, session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:75:23: error: cannot find type 'URLSessionWebSocketTask' in scope
73 |
74 | public final class YapChannelSocket: @unchecked Sendable {
75 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
76 | private let decoder: JSONDecoder
77 | public private(set) var hasMore = false
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:78:16: error: cannot find type 'URLSessionWebSocketTask' in scope
76 | private let decoder: JSONDecoder
77 | public private(set) var hasMore = false
78 | init(task: URLSessionWebSocketTask) { self.task = task; decoder = JSONDecoder(); decoder.dateDecodingStrategy = .millisecondsSince1970; task.resume() }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
79 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
80 | public func sendTyping(isTyping: Bool) async throws {
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:111:23: error: cannot find type 'URLSessionWebSocketTask' in scope
109 |
110 | public final class YapInboxSocket: @unchecked Sendable {
111 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
112 | private let decoder = JSONDecoder()
113 | init(task: URLSessionWebSocketTask) { self.task = task; task.resume() }
/host/spi-builder-workspace/Sources/YapKit/YapClient.swift:113:16: error: cannot find type 'URLSessionWebSocketTask' in scope
111 | private let task: URLSessionWebSocketTask
112 | private let decoder = JSONDecoder()
113 | init(task: URLSessionWebSocketTask) { self.task = task; task.resume() }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
114 | public func cancel() { task.cancel(with: .goingAway, reason: nil) }
115 | public func receive() async throws -> YapInboxSocketEvent {
BUILD FAILURE 6.3 wasm