The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GemmeinSwift, reference 0.23.0 (087a61), with Swift 6.3 for Linux on 27 Oct 2026 22:00:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gemmeinhq/gemmein-swift.git
Reference: 0.23.0
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/gemmeinhq/gemmein-swift
 * tag               0.23.0     -> FETCH_HEAD
HEAD is now at 087a61c GemmeinSwift 0.23.0
Cloned https://github.com/gemmeinhq/gemmein-swift.git
Revision (git rev-parse @):
087a61cc488461364743903659e544e66ecd91cd
SUCCESS checkout https://github.com/gemmeinhq/gemmein-swift.git at 0.23.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/gemmeinhq/gemmein-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:caade26a8dd5b9e237c5c17486feb4a843d699145c768feadca9f1b811831234
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.3-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/16] Emitting module GemmeinSwift
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:11:30: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
  9 |     enum Body {
 10 |         case buffered(Data)
 11 |         case live(URLSession.AsyncBytes)
    |                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 12 |     }
 13 |
/host/spi-builder-workspace/Sources/GemmeinSwift/Gemmein.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
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/GemmeinSwift/Gemmein.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
/host/spi-builder-workspace/Sources/GemmeinSwift/Gemmein.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:15:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let apiURL: URL
 14 |     private let secretKey: String
 15 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     /// E2E #3 F20: present when the app named what it expects of the key.
 17 |     private let keyCheck: KeyCheck?
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/GemmeinSwift/GemmeinServer.swift:24:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
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/GemmeinSwift/GemmeinServer.swift:24:88: error: value of type '_' expected to be instance of class or class-constrained type
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:24:88: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:315:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
313 |     private let secretKey: String
314 |     private let name: String
315 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
316 |     private let keyCheck: KeyCheck?
317 |
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/GemmeinSwift/GemmeinServer.swift:318:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
316 |     private let keyCheck: KeyCheck?
317 |
318 |     init(apiURL: URL, secretKey: String, name: String, session: URLSession, keyCheck: KeyCheck? = nil) {
    |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 |         self.apiURL = apiURL
320 |         self.secretKey = secretKey
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/GemmeinSwift/GemmeinServer.swift:507:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
505 |     private var reads: [String: Task<[String: JSONValue]?, Error>] = [:]
506 |
507 |     func access(apiURL: URL, secretKey: String, session: URLSession) async throws -> [String: JSONValue]? {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
508 |         let key = "\(apiURL.absoluteString)\u{0}\(secretKey)"
509 |         if let existing = reads[key] { return try await existing.value }
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/GemmeinSwift/GemmeinServer.swift:527:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
525 |     private let apiURL: URL
526 |     private let secretKey: String
527 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
528 |     private var passed = false
529 |     private var refused: GemmeinError?
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/GemmeinSwift/GemmeinServer.swift:531:77: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 |     private var refused: GemmeinError?
530 |
531 |     init(expects: KeyExpectations, apiURL: URL, secretKey: String, session: URLSession) {
    |                                                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
532 |         self.expects = expects
533 |         self.apiURL = apiURL
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/GemmeinSwift/Transport.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |     let tokenStore: TokenStore
 89 |     let clientInfo: String
 90 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     /// F34 (b): the listeners `auth.onSignedOut` registers — one set per
 92 |     /// client, shared by every sub-client, so a 401 anywhere reaches them.
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/GemmeinSwift/Transport.swift:127:89: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | func makeRequest(_ url: URL, method: String, headers: [String: String], body: Data?) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
128 |     var request = URLRequest(url: url)
129 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:171:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | /// 204 answers with no bytes; anything else with the body. A refusal throws
170 | /// the server's own `code` and sentence.
171 | func handleResponse(_ data: Data, _ response: URLResponse, _ config: ClientConfig?) async throws -> JSONValue? {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |     let status = (response as? HTTPURLResponse)?.statusCode ?? 0
173 |     if status == 204 { return nil }
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
[4/17] Compiling GemmeinSwift PrimitiveClients.swift
[5/17] Compiling GemmeinSwift RunsClient.swift
[6/17] Compiling GemmeinSwift TokenStore.swift
[7/17] Compiling GemmeinSwift Transport.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |     let tokenStore: TokenStore
 89 |     let clientInfo: String
 90 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     /// F34 (b): the listeners `auth.onSignedOut` registers — one set per
 92 |     /// client, shared by every sub-client, so a 401 anywhere reaches them.
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/GemmeinSwift/Transport.swift:127:89: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | func makeRequest(_ url: URL, method: String, headers: [String: String], body: Data?) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
128 |     var request = URLRequest(url: url)
129 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:171:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | /// 204 answers with no bytes; anything else with the body. A refusal throws
170 | /// the server's own `code` and sentence.
171 | func handleResponse(_ data: Data, _ response: URLResponse, _ config: ClientConfig?) async throws -> JSONValue? {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |     let status = (response as? HTTPURLResponse)?.statusCode ?? 0
173 |     if status == 204 { return nil }
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/GemmeinSwift/Transport.swift:128:19: error: cannot find 'URLRequest' in scope
126 |
127 | func makeRequest(_ url: URL, method: String, headers: [String: String], body: Data?) -> URLRequest {
128 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
129 |     request.httpMethod = method
130 |     for (name, value) in headers { request.setValue(value, forHTTPHeaderField: name) }
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:172:28: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
170 | /// the server's own `code` and sentence.
171 | func handleResponse(_ data: Data, _ response: URLResponse, _ config: ClientConfig?) async throws -> JSONValue? {
172 |     let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                            `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
173 |     if status == 204 { return nil }
174 |     if !(200...299).contains(status) {
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:172:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | /// the server's own `code` and sentence.
171 | func handleResponse(_ data: Data, _ response: URLResponse, _ config: ClientConfig?) async throws -> JSONValue? {
172 |     let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 |     if status == 204 { return nil }
174 |     if !(200...299).contains(status) {
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:206:92: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
204 |     let headers = await runtimeHeaders(config, extraHeaders)
205 |     let request = makeRequest(makeURL(config.apiURL, pathAndQuery), method: method, headers: headers, body: body)
206 |     let (data, response) = try await transported(config.apiURL) { try await config.session.data(for: request) }
    |                                                                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
207 |     return try await handleResponse(data, response, config)
208 | }
[8/17] Compiling GemmeinSwift Models.swift
[9/17] Compiling GemmeinSwift PeopleClient.swift
[10/17] Compiling GemmeinSwift CirclesClient.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/CollectionClient.swift:373:28: error: cannot find 'URLRequest' in scope
371 |         append("\r\n--\(boundary)--\r\n")
372 |
373 |         var storeRequest = URLRequest(url: uploadURL)
    |                            `- error: cannot find 'URLRequest' in scope
374 |         storeRequest.httpMethod = "POST"
375 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/GemmeinSwift/CollectionClient.swift:377:98: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
375 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
376 |         storeRequest.httpBody = form
377 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
    |                                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
378 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
379 |         guard (200...299).contains(storeStatus) else {
/host/spi-builder-workspace/Sources/GemmeinSwift/CollectionClient.swift:378:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 |         storeRequest.httpBody = form
377 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
378 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
379 |         guard (200...299).contains(storeStatus) else {
380 |             throw GemmeinError(status: storeStatus, code: "upload_failed", message: "Upload failed: \(storeStatus)")
[11/17] Compiling GemmeinSwift CollectionClient.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/CollectionClient.swift:373:28: error: cannot find 'URLRequest' in scope
371 |         append("\r\n--\(boundary)--\r\n")
372 |
373 |         var storeRequest = URLRequest(url: uploadURL)
    |                            `- error: cannot find 'URLRequest' in scope
374 |         storeRequest.httpMethod = "POST"
375 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/GemmeinSwift/CollectionClient.swift:377:98: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
375 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
376 |         storeRequest.httpBody = form
377 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
    |                                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
378 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
379 |         guard (200...299).contains(storeStatus) else {
/host/spi-builder-workspace/Sources/GemmeinSwift/CollectionClient.swift:378:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 |         storeRequest.httpBody = form
377 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
378 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
379 |         guard (200...299).contains(storeStatus) else {
380 |             throw GemmeinError(status: storeStatus, code: "upload_failed", message: "Upload failed: \(storeStatus)")
[12/17] Compiling GemmeinSwift GemmeinServer.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:15:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let apiURL: URL
 14 |     private let secretKey: String
 15 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     /// E2E #3 F20: present when the app named what it expects of the key.
 17 |     private let keyCheck: KeyCheck?
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/GemmeinSwift/GemmeinServer.swift:24:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
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/GemmeinSwift/GemmeinServer.swift:24:88: error: value of type '_' expected to be instance of class or class-constrained type
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:24:88: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:315:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
313 |     private let secretKey: String
314 |     private let name: String
315 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
316 |     private let keyCheck: KeyCheck?
317 |
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/GemmeinSwift/GemmeinServer.swift:318:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
316 |     private let keyCheck: KeyCheck?
317 |
318 |     init(apiURL: URL, secretKey: String, name: String, session: URLSession, keyCheck: KeyCheck? = nil) {
    |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 |         self.apiURL = apiURL
320 |         self.secretKey = secretKey
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/GemmeinSwift/GemmeinServer.swift:507:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
505 |     private var reads: [String: Task<[String: JSONValue]?, Error>] = [:]
506 |
507 |     func access(apiURL: URL, secretKey: String, session: URLSession) async throws -> [String: JSONValue]? {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
508 |         let key = "\(apiURL.absoluteString)\u{0}\(secretKey)"
509 |         if let existing = reads[key] { return try await existing.value }
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/GemmeinSwift/GemmeinServer.swift:527:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
525 |     private let apiURL: URL
526 |     private let secretKey: String
527 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
528 |     private var passed = false
529 |     private var refused: GemmeinError?
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/GemmeinSwift/GemmeinServer.swift:531:77: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 |     private var refused: GemmeinError?
530 |
531 |     init(expects: KeyExpectations, apiURL: URL, secretKey: String, session: URLSession) {
    |                                                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
532 |         self.expects = expects
533 |         self.apiURL = apiURL
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/GemmeinSwift/Transport.swift:127:89: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | func makeRequest(_ url: URL, method: String, headers: [String: String], body: Data?) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
128 |     var request = URLRequest(url: url)
129 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:300:82: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
298 |         // refused connection here was a raw URLError — the one place in the
299 |         // package where `error as? GemmeinError` came back nil.
300 |         let (data, response) = try await transported(apiURL) { try await session.data(for: request) }
    |                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
301 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
302 |         if status == 204 { return nil }
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:301:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
299 |         // package where `error as? GemmeinError` came back nil.
300 |         let (data, response) = try await transported(apiURL) { try await session.data(for: request) }
301 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |         if status == 204 { return nil }
303 |         guard (200...299).contains(status) else { throw readErrorBody(data, status: status) }
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:414:82: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
412 |         let url = makeURL(apiURL, "/storage/\(percentEncodeComponent(name))\(suffix)")
413 |         // Same seam, same reason (W10 review row 14a).
414 |         let (data, response) = try await transported(apiURL) { try await session.data(for: makeRequest(url, method: method, headers: headers, body: body)) }
    |                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
415 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
416 |         if status == 204 { return nil }
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:415:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 |         // Same seam, same reason (W10 review row 14a).
414 |         let (data, response) = try await transported(apiURL) { try await session.data(for: makeRequest(url, method: method, headers: headers, body: body)) }
415 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 |         if status == 204 { return nil }
417 |         // One parser for every refusal body, so a 403 entitlement_required on
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:511:172: error: 'nil' requires a contextual type
509 |         if let existing = reads[key] { return try await existing.value }
510 |         let task = Task<[String: JSONValue]?, Error> {
511 |             let request = makeRequest(makeURL(apiURL, "/manage/whoami"), method: "GET", headers: ["x-app-key": secretKey, "x-client-info": GemmeinSwift.clientInfo], body: nil)
    |                                                                                                                                                                            `- error: 'nil' requires a contextual type
512 |             let (data, response) = try await transported(apiURL) { try await session.data(for: request) }
513 |             let status = (response as? HTTPURLResponse)?.statusCode ?? 0
/host/spi-builder-workspace/Sources/GemmeinSwift/JSONValue.swift:68:16: error: cannot find 'CFGetTypeID' in scope
 66 |             // NSNumber flattens Bool and the integer types together; the
 67 |             // objCType is the only place the difference survives.
 68 |             if CFGetTypeID(v) == CFBooleanGetTypeID() { self = .bool(v.boolValue) }
    |                `- error: cannot find 'CFGetTypeID' in scope
 69 |             else if let i = Int(exactly: v) { self = .int(i) }
 70 |             else { self = .double(v.doubleValue) }
/host/spi-builder-workspace/Sources/GemmeinSwift/JSONValue.swift:68:34: error: cannot find 'CFBooleanGetTypeID' in scope
 66 |             // NSNumber flattens Bool and the integer types together; the
 67 |             // objCType is the only place the difference survives.
 68 |             if CFGetTypeID(v) == CFBooleanGetTypeID() { self = .bool(v.boolValue) }
    |                                  `- error: cannot find 'CFBooleanGetTypeID' in scope
 69 |             else if let i = Int(exactly: v) { self = .int(i) }
 70 |             else { self = .double(v.doubleValue) }
[13/17] Compiling GemmeinSwift JSONValue.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:15:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let apiURL: URL
 14 |     private let secretKey: String
 15 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     /// E2E #3 F20: present when the app named what it expects of the key.
 17 |     private let keyCheck: KeyCheck?
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/GemmeinSwift/GemmeinServer.swift:24:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
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/GemmeinSwift/GemmeinServer.swift:24:88: error: value of type '_' expected to be instance of class or class-constrained type
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:24:88: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     /// and `extra`) and no call is made — the same check the JS SDK's
 23 |     /// `gemmeinServer(sk, { expects })` makes. Nil: nothing is checked.
 24 |     public init(secretKey: String, apiURL: URL = defaultAPIURL, session: URLSession = .shared, expects: KeyExpectations? = nil) throws {
    |                                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         // Same signpost law as the client: a missing key (the env var didn't
 26 |         // load) must be a typed error, never a crash.
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:315:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
313 |     private let secretKey: String
314 |     private let name: String
315 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
316 |     private let keyCheck: KeyCheck?
317 |
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/GemmeinSwift/GemmeinServer.swift:318:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
316 |     private let keyCheck: KeyCheck?
317 |
318 |     init(apiURL: URL, secretKey: String, name: String, session: URLSession, keyCheck: KeyCheck? = nil) {
    |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 |         self.apiURL = apiURL
320 |         self.secretKey = secretKey
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/GemmeinSwift/GemmeinServer.swift:507:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
505 |     private var reads: [String: Task<[String: JSONValue]?, Error>] = [:]
506 |
507 |     func access(apiURL: URL, secretKey: String, session: URLSession) async throws -> [String: JSONValue]? {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
508 |         let key = "\(apiURL.absoluteString)\u{0}\(secretKey)"
509 |         if let existing = reads[key] { return try await existing.value }
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/GemmeinSwift/GemmeinServer.swift:527:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
525 |     private let apiURL: URL
526 |     private let secretKey: String
527 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
528 |     private var passed = false
529 |     private var refused: GemmeinError?
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/GemmeinSwift/GemmeinServer.swift:531:77: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 |     private var refused: GemmeinError?
530 |
531 |     init(expects: KeyExpectations, apiURL: URL, secretKey: String, session: URLSession) {
    |                                                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
532 |         self.expects = expects
533 |         self.apiURL = apiURL
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/GemmeinSwift/Transport.swift:127:89: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | func makeRequest(_ url: URL, method: String, headers: [String: String], body: Data?) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
128 |     var request = URLRequest(url: url)
129 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:300:82: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
298 |         // refused connection here was a raw URLError — the one place in the
299 |         // package where `error as? GemmeinError` came back nil.
300 |         let (data, response) = try await transported(apiURL) { try await session.data(for: request) }
    |                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
301 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
302 |         if status == 204 { return nil }
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:301:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
299 |         // package where `error as? GemmeinError` came back nil.
300 |         let (data, response) = try await transported(apiURL) { try await session.data(for: request) }
301 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |         if status == 204 { return nil }
303 |         guard (200...299).contains(status) else { throw readErrorBody(data, status: status) }
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:414:82: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
412 |         let url = makeURL(apiURL, "/storage/\(percentEncodeComponent(name))\(suffix)")
413 |         // Same seam, same reason (W10 review row 14a).
414 |         let (data, response) = try await transported(apiURL) { try await session.data(for: makeRequest(url, method: method, headers: headers, body: body)) }
    |                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
415 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
416 |         if status == 204 { return nil }
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:415:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 |         // Same seam, same reason (W10 review row 14a).
414 |         let (data, response) = try await transported(apiURL) { try await session.data(for: makeRequest(url, method: method, headers: headers, body: body)) }
415 |         let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 |         if status == 204 { return nil }
417 |         // One parser for every refusal body, so a 403 entitlement_required on
/host/spi-builder-workspace/Sources/GemmeinSwift/GemmeinServer.swift:511:172: error: 'nil' requires a contextual type
509 |         if let existing = reads[key] { return try await existing.value }
510 |         let task = Task<[String: JSONValue]?, Error> {
511 |             let request = makeRequest(makeURL(apiURL, "/manage/whoami"), method: "GET", headers: ["x-app-key": secretKey, "x-client-info": GemmeinSwift.clientInfo], body: nil)
    |                                                                                                                                                                            `- error: 'nil' requires a contextual type
512 |             let (data, response) = try await transported(apiURL) { try await session.data(for: request) }
513 |             let status = (response as? HTTPURLResponse)?.statusCode ?? 0
/host/spi-builder-workspace/Sources/GemmeinSwift/JSONValue.swift:68:16: error: cannot find 'CFGetTypeID' in scope
 66 |             // NSNumber flattens Bool and the integer types together; the
 67 |             // objCType is the only place the difference survives.
 68 |             if CFGetTypeID(v) == CFBooleanGetTypeID() { self = .bool(v.boolValue) }
    |                `- error: cannot find 'CFGetTypeID' in scope
 69 |             else if let i = Int(exactly: v) { self = .int(i) }
 70 |             else { self = .double(v.doubleValue) }
/host/spi-builder-workspace/Sources/GemmeinSwift/JSONValue.swift:68:34: error: cannot find 'CFBooleanGetTypeID' in scope
 66 |             // NSNumber flattens Bool and the integer types together; the
 67 |             // objCType is the only place the difference survives.
 68 |             if CFGetTypeID(v) == CFBooleanGetTypeID() { self = .bool(v.boolValue) }
    |                                  `- error: cannot find 'CFBooleanGetTypeID' in scope
 69 |             else if let i = Int(exactly: v) { self = .int(i) }
 70 |             else { self = .double(v.doubleValue) }
[14/17] Compiling GemmeinSwift Gemmein.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/Gemmein.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
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/GemmeinSwift/Gemmein.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
/host/spi-builder-workspace/Sources/GemmeinSwift/Gemmein.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
[15/17] Compiling GemmeinSwift GemmeinError.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/Gemmein.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
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/GemmeinSwift/Gemmein.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
/host/spi-builder-workspace/Sources/GemmeinSwift/Gemmein.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         tokenStore: TokenStore? = nil,
 54 |         platform: String? = nil,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) throws {
 57 |         if appKey.hasPrefix("sk_") {
[16/17] Compiling GemmeinSwift AiClient.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:11:30: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
  9 |     enum Body {
 10 |         case buffered(Data)
 11 |         case live(URLSession.AsyncBytes)
    |                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 12 |     }
 13 |
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:43:31: error: contextual closure type '@Sendable () async throws -> String?' expects 0 arguments, but 1 was used in closure body
 41 |     /// `data: …` lines in the order the provider wrote them.
 42 |     public func lines() -> AsyncThrowingStream<String, Error> {
 43 |         AsyncThrowingStream { continuation in
    |                               `- error: contextual closure type '@Sendable () async throws -> String?' expects 0 arguments, but 1 was used in closure body
 44 |             let task = Task {
 45 |                 do {
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:195:28: error: cannot find 'URLRequest' in scope
193 |         form.append(data)
194 |         append("\r\n--\(boundary)--\r\n")
195 |         var storeRequest = URLRequest(url: uploadURL)
    |                            `- error: cannot find 'URLRequest' in scope
196 |         storeRequest.httpMethod = "POST"
197 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:199:98: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
197 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
198 |         storeRequest.httpBody = form
199 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
    |                                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
200 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
201 |         guard (200...299).contains(storeStatus) else {
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:200:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |         storeRequest.httpBody = form
199 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
200 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |         guard (200...299).contains(storeStatus) else {
202 |             throw GemmeinError(status: storeStatus, code: "upload_failed", message: "Upload failed: \(storeStatus)")
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:127:89: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | func makeRequest(_ url: URL, method: String, headers: [String: String], body: Data?) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
128 |     var request = URLRequest(url: url)
129 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:248:97: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
246 |         let headers = await runtimeHeaders(config, ["content-type": "application/json"])
247 |         let request = makeRequest(makeURL(config.apiURL, pathAndQuery), method: "POST", headers: headers, body: body)
248 |         let (bytes, response) = try await transported(config.apiURL) { try await config.session.bytes(for: request) }
    |                                                                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
249 |         let http = response as? HTTPURLResponse
250 |         let status = http?.statusCode ?? 0
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:252:52: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
250 |         let status = http?.statusCode ?? 0
251 |         var fields: [String: String] = [:]
252 |         for (name, value) in http?.allHeaderFields ?? [:] {
    |                                                    `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
253 |             if let name = name as? String, let value = value as? String { fields[name.lowercased()] = value }
254 |         }
[17/17] Compiling GemmeinSwift AuthClient.swift
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:11:30: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
  9 |     enum Body {
 10 |         case buffered(Data)
 11 |         case live(URLSession.AsyncBytes)
    |                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 12 |     }
 13 |
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:43:31: error: contextual closure type '@Sendable () async throws -> String?' expects 0 arguments, but 1 was used in closure body
 41 |     /// `data: …` lines in the order the provider wrote them.
 42 |     public func lines() -> AsyncThrowingStream<String, Error> {
 43 |         AsyncThrowingStream { continuation in
    |                               `- error: contextual closure type '@Sendable () async throws -> String?' expects 0 arguments, but 1 was used in closure body
 44 |             let task = Task {
 45 |                 do {
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:195:28: error: cannot find 'URLRequest' in scope
193 |         form.append(data)
194 |         append("\r\n--\(boundary)--\r\n")
195 |         var storeRequest = URLRequest(url: uploadURL)
    |                            `- error: cannot find 'URLRequest' in scope
196 |         storeRequest.httpMethod = "POST"
197 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:199:98: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
197 |         storeRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "content-type")
198 |         storeRequest.httpBody = form
199 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
    |                                                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
200 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
201 |         guard (200...299).contains(storeStatus) else {
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:200:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |         storeRequest.httpBody = form
199 |         let (_, storeResponse) = try await transported(config.apiURL) { try await config.session.data(for: storeRequest) }
200 |         let storeStatus = (storeResponse as? HTTPURLResponse)?.statusCode ?? 0
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |         guard (200...299).contains(storeStatus) else {
202 |             throw GemmeinError(status: storeStatus, code: "upload_failed", message: "Upload failed: \(storeStatus)")
/host/spi-builder-workspace/Sources/GemmeinSwift/Transport.swift:127:89: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | func makeRequest(_ url: URL, method: String, headers: [String: String], body: Data?) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
128 |     var request = URLRequest(url: url)
129 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:248:97: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
246 |         let headers = await runtimeHeaders(config, ["content-type": "application/json"])
247 |         let request = makeRequest(makeURL(config.apiURL, pathAndQuery), method: "POST", headers: headers, body: body)
248 |         let (bytes, response) = try await transported(config.apiURL) { try await config.session.bytes(for: request) }
    |                                                                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
249 |         let http = response as? HTTPURLResponse
250 |         let status = http?.statusCode ?? 0
/host/spi-builder-workspace/Sources/GemmeinSwift/AiClient.swift:252:52: error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
250 |         let status = http?.statusCode ?? 0
251 |         var fields: [String: String] = [:]
252 |         for (name, value) in http?.allHeaderFields ?? [:] {
    |                                                    `- error: pattern cannot match values of type '(key: AnyHashable, value: Any)'
253 |             if let name = name as? String, let value = value as? String { fields[name.lowercased()] = value }
254 |         }
BUILD FAILURE 6.3 linux