Build Information
Failed to build Swollama, reference 2.0.0 (21b4bc
), with Swift 6.1 for Wasm on 28 Jun 2025 01:36:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/OllamaClient.swift:9:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:9:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
9 | }
10 |
11 | public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws -> ModelInformation {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
12 | let request = ShowModelRequest(model: name.fullName, verbose: verbose)
13 | let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
82 | }
83 |
84 | public func deleteModel(name: OllamaModelName) async throws {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[5/38] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:9:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
9 | }
10 |
11 | public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws -> ModelInformation {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
12 | let request = ShowModelRequest(model: name.fullName, verbose: verbose)
13 | let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
82 | }
83 |
84 | public func deleteModel(name: OllamaModelName) async throws {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:44:23: error: cannot find 'URLRequest' in scope
42 | ) async throws -> Data {
43 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
44 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
45 | request.httpMethod = method
46 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:109:35: error: cannot find 'URLRequest' in scope
107 | do {
108 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = method
111 | request.httpBody = body
[6/38] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:9:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
9 | }
10 |
11 | public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws -> ModelInformation {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
12 | let request = ShowModelRequest(model: name.fullName, verbose: verbose)
13 | let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
82 | }
83 |
84 | public func deleteModel(name: OllamaModelName) async throws {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:44:23: error: cannot find 'URLRequest' in scope
42 | ) async throws -> Data {
43 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
44 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
45 | request.httpMethod = method
46 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:109:35: error: cannot find 'URLRequest' in scope
107 | do {
108 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = method
111 | request.httpBody = body
[7/38] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:9:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | public nonisolated let configuration: OllamaConfiguration
| `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
9 | }
10 |
11 | public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws -> ModelInformation {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
12 | let request = ShowModelRequest(model: name.fullName, verbose: verbose)
13 | let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
82 | }
83 |
84 | public func deleteModel(name: OllamaModelName) async throws {
| `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:44:23: error: cannot find 'URLRequest' in scope
42 | ) async throws -> Data {
43 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
44 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
45 | request.httpMethod = method
46 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:109:35: error: cannot find 'URLRequest' in scope
107 | do {
108 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = method
111 | request.httpBody = body
[8/38] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[9/38] Compiling Swollama OllamaError.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[10/38] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[11/38] Compiling Swollama GenerateRequest.swift
[12/38] Compiling Swollama GenerateResponse.swift
[13/38] Compiling Swollama ModelFamily.swift
[14/38] Compiling Swollama ModelFormat.swift
[15/38] Compiling Swollama QuantizationLevel.swift
[16/38] Compiling Swollama RunningModelsResponse.swift
[17/38] Compiling Swollama ShowModelRequest.swift
[18/38] Compiling Swollama ToolCall.swift
[19/38] Compiling Swollama ToolDefinition.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[20/38] Compiling Swollama VersionResponse.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[21/38] Compiling Swollama NetworkingSupport+Streaming.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[22/38] Compiling Swollama NetworkingSupport.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[23/38] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | public static let `default` = ChatOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | public static let `default` = GenerationOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | }
42 |
[24/38] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | public static let `default` = ChatOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | public static let `default` = GenerationOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | }
42 |
[25/38] Compiling Swollama GenerationOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | public static let `default` = ChatOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | public static let `default` = GenerationOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | }
42 |
[26/38] Compiling Swollama ChatRequest.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | public static let `default` = ChatOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | public static let `default` = GenerationOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | }
42 |
[27/38] Compiling Swollama ChatResponse.swift
[28/38] Compiling Swollama CreateModelRequest.swift
[29/38] Compiling Swollama EmbeddingRequest.swift
[30/38] Compiling Swollama EmbeddingResponse.swift
[31/38] Compiling Swollama ModelInformation.swift
[32/38] Compiling Swollama ModelsResponse.swift
[33/38] Compiling Swollama OllamaModelName.swift
[34/38] Compiling Swollama OperationProgress.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/SwollamaCLI/README.md
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/33] Emitting module Swollama
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
[3/36] Compiling Swollama QuantizationLevel.swift
[4/36] Compiling Swollama RunningModelsResponse.swift
[5/36] Compiling Swollama ShowModelRequest.swift
[6/36] Compiling Swollama ToolCall.swift
[7/36] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:44:23: error: cannot find 'URLRequest' in scope
42 | ) async throws -> Data {
43 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
44 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
45 | request.httpMethod = method
46 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:109:35: error: cannot find 'URLRequest' in scope
107 | do {
108 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = method
111 | request.httpBody = body
[8/36] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:44:23: error: cannot find 'URLRequest' in scope
42 | ) async throws -> Data {
43 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
44 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
45 | request.httpMethod = method
46 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:109:35: error: cannot find 'URLRequest' in scope
107 | do {
108 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = method
111 | request.httpBody = body
[9/36] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public nonisolated let configuration: OllamaConfiguration
10 |
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | let decoder: JSONDecoder
13 | private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:20:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
18 |
19 | let config = NetworkingSupport.createDefaultConfiguration()
20 | config.timeoutIntervalForRequest = configuration.timeoutInterval
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
21 |
22 | self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:44:23: error: cannot find 'URLRequest' in scope
42 | ) async throws -> Data {
43 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
44 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
45 | request.httpMethod = method
46 | request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:109:35: error: cannot find 'URLRequest' in scope
107 | do {
108 | let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = method
111 | request.httpBody = body
[10/36] Compiling Swollama ChatOptions.swift
[11/36] Compiling Swollama EmbeddingOptions.swift
[12/36] Compiling Swollama GenerationOptions.swift
[13/36] Compiling Swollama ChatRequest.swift
[14/36] Compiling Swollama OllamaConfiguration.swift
[15/36] Compiling Swollama OllamaError.swift
[16/36] Compiling Swollama OllamaProtocol.swift
[17/36] Compiling Swollama ModelInformation.swift
[18/36] Compiling Swollama ModelsResponse.swift
[19/36] Compiling Swollama OllamaModelName.swift
[20/36] Compiling Swollama OperationProgress.swift
[21/36] Compiling Swollama ToolDefinition.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[22/36] Compiling Swollama VersionResponse.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[23/36] Compiling Swollama NetworkingSupport+Streaming.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[24/36] Compiling Swollama NetworkingSupport.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:17:22: error: cannot find type 'URLRequest' in scope
15 | static func enhancedStreamTask(
16 | session: URLSession,
17 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
19 | #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Enhanced streaming implementation that uses curl on Linux for true streaming
15 | static func enhancedStreamTask(
16 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | session: URLSession,
17 | for request: URLRequest
18 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | #if os(Linux)
20 | // Linux: Use curl for true streaming
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/Swollama/NetworkingSupport.swift:69:22: error: cannot find type 'URLRequest' in scope
67 | static func streamTask(
68 | session: URLSession,
69 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
71 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | return URLSession(configuration: configuration)
21 | }
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/Swollama/NetworkingSupport.swift:24:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let config = URLSessionConfiguration.default
26 | // Optimize for streaming large responses
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | static func dataTask(
41 | session: URLSession,
42 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
43 | ) async throws -> (Data, URLResponse) {
44 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:41:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// High-performance data task implementation
40 | static func dataTask(
41 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:43:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | session: URLSession,
42 | for request: URLRequest
43 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | #if canImport(FoundationNetworking)
45 | // Linux implementation with proper error handling
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/Swollama/NetworkingSupport.swift:68:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// Optimized streaming implementation
67 | static func streamTask(
68 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:70:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | session: URLSession,
69 | for request: URLRequest
70 | ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | #if canImport(FoundationNetworking)
72 | // Linux: Use buffered streaming approach
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/Swollama/NetworkingSupport.swift:20:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | /// Creates a URLSession with optimized configuration
19 | static func createSession(configuration: URLSessionConfiguration) -> URLSession {
20 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:25:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | /// Creates an optimized URLSessionConfiguration
24 | static func createDefaultConfiguration() -> URLSessionConfiguration {
25 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
26 | // Optimize for streaming large responses
27 | config.urlCache = nil
28 | config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
29 |
30 | #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:62:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
60 | #else
61 | // Native async/await on Apple platforms
62 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
63 | #endif
64 | }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:98:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
96 | #else
97 | // Apple platforms: Use native bytes streaming with buffering
98 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
99 | let stream = AsyncThrowingStream<Data, Error> { continuation in
100 | Task {
[25/36] Compiling Swollama ChatResponse.swift
[26/36] Compiling Swollama CreateModelRequest.swift
[27/36] Compiling Swollama EmbeddingRequest.swift
[28/36] Compiling Swollama EmbeddingResponse.swift
[29/36] Compiling Swollama GenerateRequest.swift
[30/36] Compiling Swollama GenerateResponse.swift
[31/36] Compiling Swollama ModelFamily.swift
[32/36] Compiling Swollama ModelFormat.swift
BUILD FAILURE 6.1 wasm