Build Information
Failed to build FoundationModelsKit, reference main (691a96), with Swift 6.4 for Android on 12 Oct 2026 09:33:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/divyaravitech/FoundationModelsKit.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/divyaravitech/FoundationModelsKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 691a965 Rename sendMessage/streamMessage to respond(to:)/streamResponse(to:)
Cloned https://github.com/divyaravitech/FoundationModelsKit.git
Revision (git rev-parse @):
691a965deafc558fde738f2175766ac7eaea62f9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/divyaravitech/FoundationModelsKit.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/divyaravitech/FoundationModelsKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:34a00a57f57797b403a98b861c3ce940f20735b4cb78ef45654f0d4f3b0c0295
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:70:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m private let config: AnthropicConfiguration
[0;36m70 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m71 |[0;0m private let tools: ToolRegistry
[0;36m72 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:80:18: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m78 |[0;0m config: AnthropicConfiguration,
[0;36m79 |[0;0m tools: [any ModelTool] = [],
[0;36m80 |[0;0m session: [4;39mURLSession[0;0m = .shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m81 |[0;0m ) {
[0;36m82 |[0;0m self.config = config
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:80:32: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m78 |[0;0m config: AnthropicConfiguration,
[0;36m79 |[0;0m tools: [any ModelTool] = [],
[0;36m80 |[0;0m session: URLSession = [4;39m.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m81 |[0;0m ) {
[0;36m82 |[0;0m self.config = config
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:80:32: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m78 |[0;0m config: AnthropicConfiguration,
[0;36m79 |[0;0m tools: [any ModelTool] = [],
[0;36m80 |[0;0m session: URLSession = .shared
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m81 |[0;0m ) {
[0;36m82 |[0;0m self.config = config
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:166:81: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m164 |[0;0m // MARK: - Private helpers
[0;36m165 |[0;0m
[0;36m166 |[0;0m private func makeRequest(for request: ModelRequest, stream: Bool) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m167 |[0;0m try makeRequest(messages: [["role": "user", "content": request.content]], stream: stream)
[0;36m168 |[0;0m }
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:170:81: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m168 |[0;0m }
[0;36m169 |[0;0m
[0;36m170 |[0;0m private func makeRequest(messages: [[String: Any]], stream: Bool) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m171 |[0;0m let url = config.baseURL.appendingPathComponent("v1/messages")
[0;36m172 |[0;0m var urlRequest = URLRequest(url: url)
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:212:37: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m210 |[0;0m }
[0;36m211 |[0;0m
[0;36m212 |[0;0m private func validate(response: [4;39mURLResponse[0;0m, data: Data?) throws {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m213 |[0;0m guard let http = response as? HTTPURLResponse else { return }
[0;36m214 |[0;0m guard (200..<300).contains(http.statusCode) else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift:70:17: [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'AnthropicLanguageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m private let config: AnthropicConfiguration
[0;36m70 |[0;0m private let session: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'AnthropicLanguageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m71 |[0;0m private let tools: ToolRegistry
[0;36m72 |[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift:44:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m42 |[0;0m
[0;36m43 |[0;0m private let config: GeminiConfiguration
[0;36m44 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: GeminiConfiguration, session: URLSession = .shared) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift:46:55: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m44 |[0;0m private let session: URLSession
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: GeminiConfiguration, session: [4;39mURLSession[0;0m = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m47 |[0;0m self.config = config
[0;36m48 |[0;0m self.session = session
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift:46:69: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m44 |[0;0m private let session: URLSession
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: GeminiConfiguration, session: URLSession = [4;39m.shared[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m47 |[0;0m self.config = config
[0;36m48 |[0;0m self.session = session
/host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift:46:69: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m44 |[0;0m private let session: URLSession
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: GeminiConfiguration, session: URLSession = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m47 |[0;0m self.config = config
[0;36m48 |[0;0m self.session = session
/host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift:92:81: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[0;0m private func makeRequest(for request: ModelRequest, stream: Bool) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m93 |[0;0m let method = stream ? "streamGenerateContent" : "generateContent"
[0;36m94 |[0;0m var components = URLComponents(
/host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift:116:37: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m114 |[0;0m }
[0;36m115 |[0;0m
[0;36m116 |[0;0m private func validate(response: [4;39mURLResponse[0;0m, data: Data?) throws {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m117 |[0;0m guard let http = response as? HTTPURLResponse else { return }
[0;36m118 |[0;0m guard (200..<300).contains(http.statusCode) else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift:44:17: [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'GeminiLanguageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m42 |[0;0m
[0;36m43 |[0;0m private let config: GeminiConfiguration
[0;36m44 |[0;0m private let session: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'GeminiLanguageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: GeminiConfiguration, session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift:44:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m42 |[0;0m
[0;36m43 |[0;0m private let config: OpenAIConfiguration
[0;36m44 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: OpenAIConfiguration, session: URLSession = .shared) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift:46:55: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m44 |[0;0m private let session: URLSession
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: OpenAIConfiguration, session: [4;39mURLSession[0;0m = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m47 |[0;0m self.config = config
[0;36m48 |[0;0m self.session = session
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift:46:69: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m44 |[0;0m private let session: URLSession
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: OpenAIConfiguration, session: URLSession = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m47 |[0;0m self.config = config
[0;36m48 |[0;0m self.session = session
/host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift:46:69: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m44 |[0;0m private let session: URLSession
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: OpenAIConfiguration, session: URLSession = [4;39m.shared[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m47 |[0;0m self.config = config
[0;36m48 |[0;0m self.session = session
/host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift:93:81: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m }
[0;36m92 |[0;0m
[0;36m93 |[0;0m private func makeRequest(for request: ModelRequest, stream: Bool) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m94 |[0;0m var urlRequest = URLRequest(url: config.baseURL.appendingPathComponent("v1/chat/completions"))
[0;36m95 |[0;0m urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift:110:37: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m108 |[0;0m }
[0;36m109 |[0;0m
[0;36m110 |[0;0m private func validate(response: [4;39mURLResponse[0;0m, data: Data?) throws {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m111 |[0;0m guard let http = response as? HTTPURLResponse else { return }
[0;36m112 |[0;0m guard (200..<300).contains(http.statusCode) else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift:44:17: [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'OpenAILanguageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m42 |[0;0m
[0;36m43 |[0;0m private let config: OpenAIConfiguration
[0;36m44 |[0;0m private let session: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'OpenAILanguageModel' has non-Sendable type 'AnyObject'[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m public init(config: OpenAIConfiguration, session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift:89:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m87 |[0;0m public struct AnthropicTokenCounter: Sendable {
[0;36m88 |[0;0m private let config: AnthropicConfiguration
[0;36m89 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m90 |[0;0m
[0;36m91 |[0;0m public init(config: AnthropicConfiguration, session: URLSession = .shared) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift:91:58: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m89 |[0;0m private let session: URLSession
[0;36m90 |[0;0m
[0;36m91 |[0;0m public init(config: AnthropicConfiguration, session: [4;39mURLSession[0;0m = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m92 |[0;0m self.config = config
[0;36m93 |[0;0m self.session = session
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift:91:72: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m89 |[0;0m private let session: URLSession
[0;36m90 |[0;0m
[0;36m91 |[0;0m public init(config: AnthropicConfiguration, session: URLSession = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m92 |[0;0m self.config = config
[0;36m93 |[0;0m self.session = session
/host/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift:91:72: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m89 |[0;0m private let session: URLSession
[0;36m90 |[0;0m
[0;36m91 |[0;0m public init(config: AnthropicConfiguration, session: URLSession = [4;39m.shared[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m92 |[0;0m self.config = config
[0;36m93 |[0;0m self.session = session
/host/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift:89:17: [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'AnthropicTokenCounter' has non-Sendable type 'AnyObject'[0;0m
[0;36m87 |[0;0m public struct AnthropicTokenCounter: Sendable {
[0;36m88 |[0;0m private let config: AnthropicConfiguration
[0;36m89 |[0;0m private let session: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming struct 'AnthropicTokenCounter' has non-Sendable type 'AnyObject'[0;0m
[0;36m90 |[0;0m
[0;36m91 |[0;0m public init(config: AnthropicConfiguration, session: URLSession = .shared) {
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/LanguageModelProviding.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/MockLanguageModel.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/ModelRouter.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/RegionalAvailability.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/RetryPolicy.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/SDKIntegration.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift /host/spi-builder-workspace/Sources/FoundationModelsKit/Tool.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature ApproachableConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/21 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FoundationModelsKit -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/Objects-normal/aarch64/FoundationModelsKit_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/Objects-normal/aarch64/Modules/FoundationModelsKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/Objects-normal/aarch64/Modules/FoundationModelsKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/Objects-normal/aarch64/FoundationModelsKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/Objects-normal/aarch64/FoundationModelsKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/Objects-normal/aarch64/FoundationModelsKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/FoundationModelsKit.build/Debug-android-aarch64/FoundationModelsKit-t.build/Objects-normal/aarch64/Modules/FoundationModelsKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android