Build Information
Failed to build swift-pocketbase-sdk, reference main (0f3a28), with Swift 6.2 for Wasm on 11 Aug 2026 13:43:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 729ceb5fcd9493dc13ee340bc4f0908bd201f85d
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Dev-Baibhav/swift-pocketbase-sdk.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/Dev-Baibhav/swift-pocketbase-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 0f3a282 Add README.md, LICENSE.md, and CHANGELOG.md documentation
Cloned https://github.com/Dev-Baibhav/swift-pocketbase-sdk.git
Revision (git rev-parse @):
0f3a282042cd3c7f136e09973890c80bb9bf962c
SUCCESS checkout https://github.com/Dev-Baibhav/swift-pocketbase-sdk.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Dev-Baibhav/swift-pocketbase-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/26] Emitting module swift_pocketbase_sdk
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:19:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | open var beforeSend: (@Sendable (String, SendOptions) async throws -> (url: String, options: SendOptions))?
19 | open var afterSend: (@Sendable (HTTPURLResponse, Data, SendOptions) async throws -> Data)?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | private let lock = NSRecursiveLock()
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/swift-pocketbase-sdk/Services/RealtimeService.swift:13:26: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var subscriptions: [String: [UUID: RealtimeCallback]] = [:]
12 | private var lastSentSubscriptions: [String] = []
13 | private var sseTask: URLSessionDataTask? = nil
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | private func withLock<T>(_ block: () -> T) -> T {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[4/26] Compiling swift_pocketbase_sdk Client.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:19:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | open var beforeSend: (@Sendable (String, SendOptions) async throws -> (url: String, options: SendOptions))?
19 | open var afterSend: (@Sendable (HTTPURLResponse, Data, SendOptions) async throws -> Data)?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | private let lock = NSRecursiveLock()
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/swift-pocketbase-sdk/Client.swift:229:23: error: cannot find 'URLRequest' in scope
227 | }
228 |
229 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
230 | request.httpMethod = initOptions.method
231 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:252:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 |
251 | let data: Data
252 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |
254 | if let customFetch = initOptions.fetch {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:257:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
255 | (data, response) = try await customFetch(request)
256 | } else {
257 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
258 | }
259 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
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/swift-pocketbase-sdk/Client.swift:269:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
267 | }
268 |
269 | if httpResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
270 | var responseDict: [String: AnyCodable] = [:]
271 | if let jsonObj = try? JSONDecoder().decode([String: AnyCodable].self, from: finalData) {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:275:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
273 | }
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
276 | status: httpResponse.statusCode,
277 | response: responseDict
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:276:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
276 | status: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
277 | response: responseDict
278 | )
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BackupService.swift:13:21: error: cannot infer contextual base in reference to member 'json'
11 | var opt = options ?? SendOptions()
12 | opt.method = "POST"
13 | opt.body = .json(["name": AnyCodable(basename)])
| `- error: cannot infer contextual base in reference to member 'json'
14 | let _: Data = try await client.sendRaw(path: "/api/backups", options: opt)
15 | return true
[5/26] Compiling swift_pocketbase_sdk ClientResponseError.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:19:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | open var beforeSend: (@Sendable (String, SendOptions) async throws -> (url: String, options: SendOptions))?
19 | open var afterSend: (@Sendable (HTTPURLResponse, Data, SendOptions) async throws -> Data)?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | private let lock = NSRecursiveLock()
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/swift-pocketbase-sdk/Client.swift:229:23: error: cannot find 'URLRequest' in scope
227 | }
228 |
229 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
230 | request.httpMethod = initOptions.method
231 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:252:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 |
251 | let data: Data
252 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |
254 | if let customFetch = initOptions.fetch {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:257:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
255 | (data, response) = try await customFetch(request)
256 | } else {
257 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
258 | }
259 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
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/swift-pocketbase-sdk/Client.swift:269:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
267 | }
268 |
269 | if httpResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
270 | var responseDict: [String: AnyCodable] = [:]
271 | if let jsonObj = try? JSONDecoder().decode([String: AnyCodable].self, from: finalData) {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:275:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
273 | }
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
276 | status: httpResponse.statusCode,
277 | response: responseDict
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:276:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
276 | status: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
277 | response: responseDict
278 | )
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BackupService.swift:13:21: error: cannot infer contextual base in reference to member 'json'
11 | var opt = options ?? SendOptions()
12 | opt.method = "POST"
13 | opt.body = .json(["name": AnyCodable(basename)])
| `- error: cannot infer contextual base in reference to member 'json'
14 | let _: Data = try await client.sendRaw(path: "/api/backups", options: opt)
15 | return true
[6/26] Compiling swift_pocketbase_sdk BackupService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:19:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | open var beforeSend: (@Sendable (String, SendOptions) async throws -> (url: String, options: SendOptions))?
19 | open var afterSend: (@Sendable (HTTPURLResponse, Data, SendOptions) async throws -> Data)?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | private let lock = NSRecursiveLock()
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/swift-pocketbase-sdk/Client.swift:229:23: error: cannot find 'URLRequest' in scope
227 | }
228 |
229 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
230 | request.httpMethod = initOptions.method
231 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:252:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 |
251 | let data: Data
252 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |
254 | if let customFetch = initOptions.fetch {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:257:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
255 | (data, response) = try await customFetch(request)
256 | } else {
257 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
258 | }
259 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
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/swift-pocketbase-sdk/Client.swift:269:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
267 | }
268 |
269 | if httpResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
270 | var responseDict: [String: AnyCodable] = [:]
271 | if let jsonObj = try? JSONDecoder().decode([String: AnyCodable].self, from: finalData) {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:275:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
273 | }
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
276 | status: httpResponse.statusCode,
277 | response: responseDict
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:276:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
276 | status: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
277 | response: responseDict
278 | )
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BackupService.swift:13:21: error: cannot infer contextual base in reference to member 'json'
11 | var opt = options ?? SendOptions()
12 | opt.method = "POST"
13 | opt.body = .json(["name": AnyCodable(basename)])
| `- error: cannot infer contextual base in reference to member 'json'
14 | let _: Data = try await client.sendRaw(path: "/api/backups", options: opt)
15 | return true
[7/26] Compiling swift_pocketbase_sdk BaseService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:19:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | open var beforeSend: (@Sendable (String, SendOptions) async throws -> (url: String, options: SendOptions))?
19 | open var afterSend: (@Sendable (HTTPURLResponse, Data, SendOptions) async throws -> Data)?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | private let lock = NSRecursiveLock()
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/swift-pocketbase-sdk/Client.swift:229:23: error: cannot find 'URLRequest' in scope
227 | }
228 |
229 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
230 | request.httpMethod = initOptions.method
231 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:252:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 |
251 | let data: Data
252 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |
254 | if let customFetch = initOptions.fetch {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:257:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
255 | (data, response) = try await customFetch(request)
256 | } else {
257 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
258 | }
259 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:260:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | throw ClientResponseError(url: urlString, status: 0, message: "Invalid server response")
262 | }
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/swift-pocketbase-sdk/Client.swift:269:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
267 | }
268 |
269 | if httpResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
270 | var responseDict: [String: AnyCodable] = [:]
271 | if let jsonObj = try? JSONDecoder().decode([String: AnyCodable].self, from: finalData) {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:275:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
273 | }
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
276 | status: httpResponse.statusCode,
277 | response: responseDict
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Client.swift:276:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw ClientResponseError(
275 | url: httpResponse.url?.absoluteString ?? urlString,
276 | status: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
277 | response: responseDict
278 | )
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BackupService.swift:13:21: error: cannot infer contextual base in reference to member 'json'
11 | var opt = options ?? SendOptions()
12 | opt.method = "POST"
13 | opt.body = .json(["name": AnyCodable(basename)])
| `- error: cannot infer contextual base in reference to member 'json'
14 | let _: Data = try await client.sendRaw(path: "/api/backups", options: opt)
15 | return true
[8/29] Compiling swift_pocketbase_sdk FileService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[9/29] Compiling swift_pocketbase_sdk HealthService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[10/29] Compiling swift_pocketbase_sdk LogService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[11/29] Compiling swift_pocketbase_sdk CookieUtils.swift
[12/29] Compiling swift_pocketbase_sdk DTOs.swift
[13/29] Compiling swift_pocketbase_sdk FormDataUtils.swift
[14/29] Compiling swift_pocketbase_sdk LocalAuthStore.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[15/29] Compiling swift_pocketbase_sdk AnyCodable.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[16/29] Compiling swift_pocketbase_sdk AutoRefresh.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[17/29] Compiling swift_pocketbase_sdk JWTUtils.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[18/29] Compiling swift_pocketbase_sdk Options.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[19/29] Compiling swift_pocketbase_sdk swift_pocketbase_sdk.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
[20/29] Compiling swift_pocketbase_sdk RealtimeService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:13:26: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var subscriptions: [String: [UUID: RealtimeCallback]] = [:]
12 | private var lastSentSubscriptions: [String] = []
13 | private var sseTask: URLSessionDataTask? = nil
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | private func withLock<T>(_ block: () -> T) -> T {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:135:21: error: cannot infer contextual base in reference to member 'json'
133 | var opt = SendOptions()
134 | opt.method = "POST"
135 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
136 | "clientId": AnyCodable(cId),
137 | "subscriptions": AnyCodable(nonKeys)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:161:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
159 | }
160 |
161 | let task = URLSession.shared.dataTask(with: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
162 | withLock {
163 | self.sseTask = task
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:181:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
179 | }
180 |
181 | sseTask?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
182 | sseTask = nil
183 | clientId = ""
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:123:21: error: cannot infer contextual base in reference to member 'json'
121 | var opt = options ?? SendOptions()
122 | opt.method = "POST"
123 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
124 | "identity": AnyCodable(usernameOrEmail),
125 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:179:21: error: cannot infer contextual base in reference to member 'json'
177 | bodyDict["createData"] = AnyCodable(createData)
178 | }
179 | opt.body = .json(bodyDict)
| `- error: cannot infer contextual base in reference to member 'json'
180 |
181 | let respData: RecordAuthResponse<RecordModel> = try await client.send(path: "\(baseCollectionPath)/auth-with-oauth2", options: opt)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:195:21: error: cannot infer contextual base in reference to member 'json'
193 | var opt = options ?? SendOptions()
194 | opt.method = "POST"
195 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
196 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-password-reset", options: opt)
197 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:208:21: error: cannot infer contextual base in reference to member 'json'
206 | var opt = options ?? SendOptions()
207 | opt.method = "POST"
208 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
209 | "token": AnyCodable(passwordResetToken),
210 | "password": AnyCodable(password),
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:220:21: error: cannot infer contextual base in reference to member 'json'
218 | var opt = options ?? SendOptions()
219 | opt.method = "POST"
220 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
221 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-verification", options: opt)
222 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:228:21: error: cannot infer contextual base in reference to member 'json'
226 | var opt = options ?? SendOptions()
227 | opt.method = "POST"
228 | opt.body = .json(["token": AnyCodable(verificationToken)])
| `- error: cannot infer contextual base in reference to member 'json'
229 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/confirm-verification", options: opt)
230 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:245:21: error: cannot infer contextual base in reference to member 'json'
243 | var opt = options ?? SendOptions()
244 | opt.method = "POST"
245 | opt.body = .json(["newEmail": AnyCodable(newEmail)])
| `- error: cannot infer contextual base in reference to member 'json'
246 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-email-change", options: opt)
247 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:253:21: error: cannot infer contextual base in reference to member 'json'
251 | var opt = options ?? SendOptions()
252 | opt.method = "POST"
253 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
254 | "token": AnyCodable(emailChangeToken),
255 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:292:21: error: cannot infer contextual base in reference to member 'json'
290 | var opt = options ?? SendOptions()
291 | opt.method = "POST"
292 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
293 | return try await client.send(path: "\(baseCollectionPath)/request-otp", options: opt)
294 | }
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:299:21: error: cannot infer contextual base in reference to member 'json'
297 | var opt = options ?? SendOptions()
298 | opt.method = "POST"
299 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
300 | "otpId": AnyCodable(otpId),
301 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:310:21: error: cannot infer contextual base in reference to member 'json'
308 | var opt = options ?? SendOptions()
309 | opt.method = "POST"
310 | opt.body = .json(["duration": AnyCodable(duration)])
| `- error: cannot infer contextual base in reference to member 'json'
311 |
312 | if opt.headers["Authorization"] == nil {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SQLService.swift:7:21: error: cannot infer contextual base in reference to member 'json'
5 | var opt = options ?? SendOptions()
6 | opt.method = "POST"
7 | opt.body = .json(["query": AnyCodable(query)])
| `- error: cannot infer contextual base in reference to member 'json'
8 | return try await client.send(path: "/api/sql", options: opt)
9 | }
[21/29] Compiling swift_pocketbase_sdk RecordService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:13:26: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var subscriptions: [String: [UUID: RealtimeCallback]] = [:]
12 | private var lastSentSubscriptions: [String] = []
13 | private var sseTask: URLSessionDataTask? = nil
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | private func withLock<T>(_ block: () -> T) -> T {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:135:21: error: cannot infer contextual base in reference to member 'json'
133 | var opt = SendOptions()
134 | opt.method = "POST"
135 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
136 | "clientId": AnyCodable(cId),
137 | "subscriptions": AnyCodable(nonKeys)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:161:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
159 | }
160 |
161 | let task = URLSession.shared.dataTask(with: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
162 | withLock {
163 | self.sseTask = task
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:181:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
179 | }
180 |
181 | sseTask?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
182 | sseTask = nil
183 | clientId = ""
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:123:21: error: cannot infer contextual base in reference to member 'json'
121 | var opt = options ?? SendOptions()
122 | opt.method = "POST"
123 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
124 | "identity": AnyCodable(usernameOrEmail),
125 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:179:21: error: cannot infer contextual base in reference to member 'json'
177 | bodyDict["createData"] = AnyCodable(createData)
178 | }
179 | opt.body = .json(bodyDict)
| `- error: cannot infer contextual base in reference to member 'json'
180 |
181 | let respData: RecordAuthResponse<RecordModel> = try await client.send(path: "\(baseCollectionPath)/auth-with-oauth2", options: opt)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:195:21: error: cannot infer contextual base in reference to member 'json'
193 | var opt = options ?? SendOptions()
194 | opt.method = "POST"
195 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
196 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-password-reset", options: opt)
197 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:208:21: error: cannot infer contextual base in reference to member 'json'
206 | var opt = options ?? SendOptions()
207 | opt.method = "POST"
208 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
209 | "token": AnyCodable(passwordResetToken),
210 | "password": AnyCodable(password),
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:220:21: error: cannot infer contextual base in reference to member 'json'
218 | var opt = options ?? SendOptions()
219 | opt.method = "POST"
220 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
221 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-verification", options: opt)
222 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:228:21: error: cannot infer contextual base in reference to member 'json'
226 | var opt = options ?? SendOptions()
227 | opt.method = "POST"
228 | opt.body = .json(["token": AnyCodable(verificationToken)])
| `- error: cannot infer contextual base in reference to member 'json'
229 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/confirm-verification", options: opt)
230 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:245:21: error: cannot infer contextual base in reference to member 'json'
243 | var opt = options ?? SendOptions()
244 | opt.method = "POST"
245 | opt.body = .json(["newEmail": AnyCodable(newEmail)])
| `- error: cannot infer contextual base in reference to member 'json'
246 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-email-change", options: opt)
247 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:253:21: error: cannot infer contextual base in reference to member 'json'
251 | var opt = options ?? SendOptions()
252 | opt.method = "POST"
253 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
254 | "token": AnyCodable(emailChangeToken),
255 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:292:21: error: cannot infer contextual base in reference to member 'json'
290 | var opt = options ?? SendOptions()
291 | opt.method = "POST"
292 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
293 | return try await client.send(path: "\(baseCollectionPath)/request-otp", options: opt)
294 | }
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:299:21: error: cannot infer contextual base in reference to member 'json'
297 | var opt = options ?? SendOptions()
298 | opt.method = "POST"
299 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
300 | "otpId": AnyCodable(otpId),
301 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:310:21: error: cannot infer contextual base in reference to member 'json'
308 | var opt = options ?? SendOptions()
309 | opt.method = "POST"
310 | opt.body = .json(["duration": AnyCodable(duration)])
| `- error: cannot infer contextual base in reference to member 'json'
311 |
312 | if opt.headers["Authorization"] == nil {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SQLService.swift:7:21: error: cannot infer contextual base in reference to member 'json'
5 | var opt = options ?? SendOptions()
6 | opt.method = "POST"
7 | opt.body = .json(["query": AnyCodable(query)])
| `- error: cannot infer contextual base in reference to member 'json'
8 | return try await client.send(path: "/api/sql", options: opt)
9 | }
[22/29] Compiling swift_pocketbase_sdk SQLService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:13:26: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var subscriptions: [String: [UUID: RealtimeCallback]] = [:]
12 | private var lastSentSubscriptions: [String] = []
13 | private var sseTask: URLSessionDataTask? = nil
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | private func withLock<T>(_ block: () -> T) -> T {
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/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:135:21: error: cannot infer contextual base in reference to member 'json'
133 | var opt = SendOptions()
134 | opt.method = "POST"
135 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
136 | "clientId": AnyCodable(cId),
137 | "subscriptions": AnyCodable(nonKeys)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:161:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
159 | }
160 |
161 | let task = URLSession.shared.dataTask(with: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
162 | withLock {
163 | self.sseTask = task
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RealtimeService.swift:181:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
179 | }
180 |
181 | sseTask?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
182 | sseTask = nil
183 | clientId = ""
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:123:21: error: cannot infer contextual base in reference to member 'json'
121 | var opt = options ?? SendOptions()
122 | opt.method = "POST"
123 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
124 | "identity": AnyCodable(usernameOrEmail),
125 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:179:21: error: cannot infer contextual base in reference to member 'json'
177 | bodyDict["createData"] = AnyCodable(createData)
178 | }
179 | opt.body = .json(bodyDict)
| `- error: cannot infer contextual base in reference to member 'json'
180 |
181 | let respData: RecordAuthResponse<RecordModel> = try await client.send(path: "\(baseCollectionPath)/auth-with-oauth2", options: opt)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:195:21: error: cannot infer contextual base in reference to member 'json'
193 | var opt = options ?? SendOptions()
194 | opt.method = "POST"
195 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
196 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-password-reset", options: opt)
197 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:208:21: error: cannot infer contextual base in reference to member 'json'
206 | var opt = options ?? SendOptions()
207 | opt.method = "POST"
208 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
209 | "token": AnyCodable(passwordResetToken),
210 | "password": AnyCodable(password),
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:220:21: error: cannot infer contextual base in reference to member 'json'
218 | var opt = options ?? SendOptions()
219 | opt.method = "POST"
220 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
221 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-verification", options: opt)
222 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:228:21: error: cannot infer contextual base in reference to member 'json'
226 | var opt = options ?? SendOptions()
227 | opt.method = "POST"
228 | opt.body = .json(["token": AnyCodable(verificationToken)])
| `- error: cannot infer contextual base in reference to member 'json'
229 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/confirm-verification", options: opt)
230 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:245:21: error: cannot infer contextual base in reference to member 'json'
243 | var opt = options ?? SendOptions()
244 | opt.method = "POST"
245 | opt.body = .json(["newEmail": AnyCodable(newEmail)])
| `- error: cannot infer contextual base in reference to member 'json'
246 | let _: Data = try await client.sendRaw(path: "\(baseCollectionPath)/request-email-change", options: opt)
247 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:253:21: error: cannot infer contextual base in reference to member 'json'
251 | var opt = options ?? SendOptions()
252 | opt.method = "POST"
253 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
254 | "token": AnyCodable(emailChangeToken),
255 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:292:21: error: cannot infer contextual base in reference to member 'json'
290 | var opt = options ?? SendOptions()
291 | opt.method = "POST"
292 | opt.body = .json(["email": AnyCodable(email)])
| `- error: cannot infer contextual base in reference to member 'json'
293 | return try await client.send(path: "\(baseCollectionPath)/request-otp", options: opt)
294 | }
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:299:21: error: cannot infer contextual base in reference to member 'json'
297 | var opt = options ?? SendOptions()
298 | opt.method = "POST"
299 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
300 | "otpId": AnyCodable(otpId),
301 | "password": AnyCodable(password)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/RecordService.swift:310:21: error: cannot infer contextual base in reference to member 'json'
308 | var opt = options ?? SendOptions()
309 | opt.method = "POST"
310 | opt.body = .json(["duration": AnyCodable(duration)])
| `- error: cannot infer contextual base in reference to member 'json'
311 |
312 | if opt.headers["Authorization"] == nil {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SQLService.swift:7:21: error: cannot infer contextual base in reference to member 'json'
5 | var opt = options ?? SendOptions()
6 | opt.method = "POST"
7 | opt.body = .json(["query": AnyCodable(query)])
| `- error: cannot infer contextual base in reference to member 'json'
8 | return try await client.send(path: "/api/sql", options: opt)
9 | }
[23/29] Compiling swift_pocketbase_sdk SettingsService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:22:21: error: cannot infer contextual base in reference to member 'json'
20 | var opt = options ?? SendOptions()
21 | opt.method = "POST"
22 | opt.body = .json(["filesystem": AnyCodable(filesystem)])
| `- error: cannot infer contextual base in reference to member 'json'
23 | let _: Data = try await client.sendRaw(path: "/api/settings/test/s3", options: opt)
24 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:30:21: error: cannot infer contextual base in reference to member 'json'
28 | var opt = options ?? SendOptions()
29 | opt.method = "POST"
30 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
31 | "email": AnyCodable(toEmail),
32 | "template": AnyCodable(emailTemplate),
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:49:21: error: cannot infer contextual base in reference to member 'json'
47 | var opt = options ?? SendOptions()
48 | opt.method = "POST"
49 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
50 | "clientId": AnyCodable(clientId),
51 | "teamId": AnyCodable(teamId),
[24/29] Compiling swift_pocketbase_sdk AsyncAuthStore.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:22:21: error: cannot infer contextual base in reference to member 'json'
20 | var opt = options ?? SendOptions()
21 | opt.method = "POST"
22 | opt.body = .json(["filesystem": AnyCodable(filesystem)])
| `- error: cannot infer contextual base in reference to member 'json'
23 | let _: Data = try await client.sendRaw(path: "/api/settings/test/s3", options: opt)
24 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:30:21: error: cannot infer contextual base in reference to member 'json'
28 | var opt = options ?? SendOptions()
29 | opt.method = "POST"
30 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
31 | "email": AnyCodable(toEmail),
32 | "template": AnyCodable(emailTemplate),
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:49:21: error: cannot infer contextual base in reference to member 'json'
47 | var opt = options ?? SendOptions()
48 | opt.method = "POST"
49 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
50 | "clientId": AnyCodable(clientId),
51 | "teamId": AnyCodable(teamId),
[25/29] Compiling swift_pocketbase_sdk BaseAuthStore.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:22:21: error: cannot infer contextual base in reference to member 'json'
20 | var opt = options ?? SendOptions()
21 | opt.method = "POST"
22 | opt.body = .json(["filesystem": AnyCodable(filesystem)])
| `- error: cannot infer contextual base in reference to member 'json'
23 | let _: Data = try await client.sendRaw(path: "/api/settings/test/s3", options: opt)
24 | return true
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:30:21: error: cannot infer contextual base in reference to member 'json'
28 | var opt = options ?? SendOptions()
29 | opt.method = "POST"
30 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
31 | "email": AnyCodable(toEmail),
32 | "template": AnyCodable(emailTemplate),
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/SettingsService.swift:49:21: error: cannot infer contextual base in reference to member 'json'
47 | var opt = options ?? SendOptions()
48 | opt.method = "POST"
49 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
50 | "clientId": AnyCodable(clientId),
51 | "teamId": AnyCodable(teamId),
[26/29] Compiling swift_pocketbase_sdk BatchService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BatchService.swift:67:21: error: cannot infer contextual base in reference to member 'data'
65 | var opt = options ?? SendOptions()
66 | opt.method = "POST"
67 | opt.body = .data(multipart.bodyData)
| `- error: cannot infer contextual base in reference to member 'data'
68 | opt.headers["Content-Type"] = multipart.contentTypeHeader
69 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:11:21: error: cannot infer contextual base in reference to member 'json'
9 | var opt = options ?? SendOptions()
10 | opt.method = "PUT"
11 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
12 | "collections": AnyCodable(collections),
13 | "deleteMissing": AnyCodable(deleteMissing)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:42:21: error: cannot infer contextual base in reference to member 'json'
40 | var opt = options ?? SendOptions()
41 | opt.method = "POST"
42 | opt.body = .json(["query": AnyCodable(query)])
| `- error: cannot infer contextual base in reference to member 'json'
43 | return try await client.send(path: "\(baseCrudPath)/meta/dry-run-view", options: opt)
44 | }
[27/29] Compiling swift_pocketbase_sdk CollectionService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BatchService.swift:67:21: error: cannot infer contextual base in reference to member 'data'
65 | var opt = options ?? SendOptions()
66 | opt.method = "POST"
67 | opt.body = .data(multipart.bodyData)
| `- error: cannot infer contextual base in reference to member 'data'
68 | opt.headers["Content-Type"] = multipart.contentTypeHeader
69 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:11:21: error: cannot infer contextual base in reference to member 'json'
9 | var opt = options ?? SendOptions()
10 | opt.method = "PUT"
11 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
12 | "collections": AnyCodable(collections),
13 | "deleteMissing": AnyCodable(deleteMissing)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:42:21: error: cannot infer contextual base in reference to member 'json'
40 | var opt = options ?? SendOptions()
41 | opt.method = "POST"
42 | opt.body = .json(["query": AnyCodable(query)])
| `- error: cannot infer contextual base in reference to member 'json'
43 | return try await client.send(path: "\(baseCrudPath)/meta/dry-run-view", options: opt)
44 | }
[28/29] Compiling swift_pocketbase_sdk CronService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BatchService.swift:67:21: error: cannot infer contextual base in reference to member 'data'
65 | var opt = options ?? SendOptions()
66 | opt.method = "POST"
67 | opt.body = .data(multipart.bodyData)
| `- error: cannot infer contextual base in reference to member 'data'
68 | opt.headers["Content-Type"] = multipart.contentTypeHeader
69 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:11:21: error: cannot infer contextual base in reference to member 'json'
9 | var opt = options ?? SendOptions()
10 | opt.method = "PUT"
11 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
12 | "collections": AnyCodable(collections),
13 | "deleteMissing": AnyCodable(deleteMissing)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:42:21: error: cannot infer contextual base in reference to member 'json'
40 | var opt = options ?? SendOptions()
41 | opt.method = "POST"
42 | opt.body = .json(["query": AnyCodable(query)])
| `- error: cannot infer contextual base in reference to member 'json'
43 | return try await client.send(path: "\(baseCrudPath)/meta/dry-run-view", options: opt)
44 | }
[29/29] Compiling swift_pocketbase_sdk CrudService.swift
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Tools/Options.swift:3:43: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public typealias CustomFetch = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | public struct FileParam: Equatable, Sendable, Codable {
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/BatchService.swift:67:21: error: cannot infer contextual base in reference to member 'data'
65 | var opt = options ?? SendOptions()
66 | opt.method = "POST"
67 | opt.body = .data(multipart.bodyData)
| `- error: cannot infer contextual base in reference to member 'data'
68 | opt.headers["Content-Type"] = multipart.contentTypeHeader
69 |
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:11:21: error: cannot infer contextual base in reference to member 'json'
9 | var opt = options ?? SendOptions()
10 | opt.method = "PUT"
11 | opt.body = .json([
| `- error: cannot infer contextual base in reference to member 'json'
12 | "collections": AnyCodable(collections),
13 | "deleteMissing": AnyCodable(deleteMissing)
/host/spi-builder-workspace/Sources/swift-pocketbase-sdk/Services/CollectionService.swift:42:21: error: cannot infer contextual base in reference to member 'json'
40 | var opt = options ?? SendOptions()
41 | opt.method = "POST"
42 | opt.body = .json(["query": AnyCodable(query)])
| `- error: cannot infer contextual base in reference to member 'json'
43 | return try await client.send(path: "\(baseCrudPath)/meta/dry-run-view", options: opt)
44 | }
BUILD FAILURE 6.2 wasm