The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Yazman, reference main (1e495a), with Swift 6.3 for Wasm on 18 Apr 2026 19:15:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alpozcan/yazman.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/alpozcan/yazman
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1e495a1 chore: rename project to Yazman
Cloned https://github.com/alpozcan/yazman.git
Revision (git rev-parse @):
1e495a197b72af01cd5160f3bfd970b5415510a4
SUCCESS checkout https://github.com/alpozcan/yazman.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/alpozcan/yazman.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/onevcat/Rainbow.git
Fetching https://github.com/mattt/ollama-swift.git
Fetching https://github.com/scinfu/SwiftSoup.git
[1/1442] Fetching rainbow
[88/2201] Fetching rainbow, ollama-swift
[2149/8130] Fetching rainbow, ollama-swift, swiftsoup
Fetched https://github.com/mattt/ollama-swift.git from cache (0.37s)
[2273/7371] Fetching rainbow, swiftsoup
Fetching https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/onevcat/Rainbow.git from cache (0.37s)
[1068/5929] Fetching swiftsoup
[5930/23458] Fetching swiftsoup, swift-argument-parser
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.81s)
[4558/17529] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.92s)
Computing version for https://github.com/onevcat/Rainbow.git
Computed https://github.com/onevcat/Rainbow.git at 4.2.1 (4.34s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (1.14s)
Computing version for https://github.com/mattt/ollama-swift.git
Computed https://github.com/mattt/ollama-swift.git at 1.8.0 (0.43s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.13.4 (0.43s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.13.4
Creating working copy for https://github.com/mattt/ollama-swift.git
Working copy of https://github.com/mattt/ollama-swift.git resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.1
Creating working copy for https://github.com/onevcat/Rainbow.git
Working copy of https://github.com/onevcat/Rainbow.git resolved at 4.2.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/17] Write sources
[8/17] Write swift-version-24593BA9C3E375BF.txt
[10/97] Compiling SwiftSoup Collector.swift
[11/97] Compiling SwiftSoup CombiningEvaluator.swift
[12/98] Compiling SwiftSoup DataNode.swift
[13/98] Compiling SwiftSoup DebugTrace.swift
[14/98] Compiling Ollama Tool.swift
[15/99] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/99] Emitting module ArgumentParserToolInfo
[17/100] Wrapping AST for ArgumentParserToolInfo for debugging
[19/146] Compiling ArgumentParser Foundation.swift
[20/146] Compiling ArgumentParser Mutex.swift
[21/146] Compiling ArgumentParser Platform.swift
[22/146] Compiling ArgumentParser SequenceExtensions.swift
[23/146] Compiling ArgumentParser StringExtensions.swift
[24/146] Compiling ArgumentParser SwiftExtensions.swift
[25/146] Compiling SwiftSoup QueryParser.swift
[26/153] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/153] Compiling ArgumentParser CompletionsGenerator.swift
[28/153] Emitting module Rainbow
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/153] Emitting module Ollama
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
  38 |         host: URL,
  39 |         userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                                                          `- error: cannot infer contextual base in reference to member 'default'
  38 |         host: URL,
  39 |         userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  26 |
  27 |     /// The underlying client session.
  28 |     private let session: URLSession
     |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  29 |
  30 |     /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  38 |         host: URL,
  39 |         userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  55 |
  56 |         /// An error returned by the Ollama HTTP API.
  57 |         case responseError(response: HTTPURLResponse, detail: String)
     |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  58 |
  59 |         /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  58 |
  59 |         /// An error encountered while decoding the response.
  60 |         case decodingError(response: HTTPURLResponse, detail: String)
     |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  61 |
  62 |         /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
 204 |         _ path: String,
 205 |         params: [String: Value]? = nil
 206 |     ) throws -> URLRequest {
     |                 `- error: cannot find type 'URLRequest' in scope
 207 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
 208 |         urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 245 |     }
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
     |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 245 |     }
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
     |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[30/153] Compiling ArgumentParser FishCompletionsGenerator.swift
[31/153] Compiling ArgumentParser ZshCompletionsGenerator.swift
[32/153] Compiling ArgumentParser ArgumentHelp.swift
[33/153] Compiling ArgumentParser ArgumentVisibility.swift
[34/153] Compiling ArgumentParser Argument.swift
[35/153] Compiling ArgumentParser ArgumentDiscussion.swift
[36/153] Compiling ArgumentParser Flag.swift
[37/153] Compiling ArgumentParser NameSpecification.swift
[38/153] Compiling SwiftSoup QueryParserCache.swift
[39/153] Compiling SwiftSoup SourceRange.swift
[40/153] Compiling SwiftSoup StreamReader.swift
[41/153] Compiling SwiftSoup String.swift
[42/153] Compiling SwiftSoup StringBuilder.swift
[43/153] Compiling SwiftSoup StringUtil.swift
[44/153] Compiling SwiftSoup StructuralEvaluator.swift
[45/153] Compiling Ollama Value.swift
[46/153] Compiling Rainbow StyledStringBuilder.swift
[48/154] Compiling Ollama KeepAlive.swift
[49/154] Compiling Ollama Model.swift
[50/154] Compiling Ollama JSONDecoder+Extensions.swift
[50/154] Wrapping AST for Rainbow for debugging
[60/154] Emitting module ArgumentParser
[61/160] Emitting module SwiftSoup
[62/160] Compiling ArgumentParser ParentCommand.swift
[63/160] Compiling ArgumentParser AsyncParsableCommand.swift
[64/160] Compiling ArgumentParser CommandConfiguration.swift
[65/160] Compiling ArgumentParser CommandGroup.swift
[66/160] Compiling ArgumentParser EnumerableFlag.swift
[67/160] Compiling ArgumentParser ExpressibleByArgument.swift
[68/160] Compiling ArgumentParser ParsableArguments.swift
[69/160] Compiling Ollama Data+Extensions.swift
[70/160] Compiling Ollama Embeddings.swift
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
  38 |         host: URL,
  39 |         userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                                                          `- error: cannot infer contextual base in reference to member 'default'
  38 |         host: URL,
  39 |         userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  26 |
  27 |     /// The underlying client session.
  28 |     private let session: URLSession
     |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  29 |
  30 |     /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  38 |         host: URL,
  39 |         userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  55 |
  56 |         /// An error returned by the Ollama HTTP API.
  57 |         case responseError(response: HTTPURLResponse, detail: String)
     |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  58 |
  59 |         /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  58 |
  59 |         /// An error encountered while decoding the response.
  60 |         case decodingError(response: HTTPURLResponse, detail: String)
     |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  61 |
  62 |         /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
 204 |         _ path: String,
 205 |         params: [String: Value]? = nil
 206 |     ) throws -> URLRequest {
     |                 `- error: cannot find type 'URLRequest' in scope
 207 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
 208 |         urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 245 |     }
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
     |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 245 |     }
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
     |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:72:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  70 |                 return "Request error: \(detail)"
  71 |             case .responseError(let response, let detail):
  72 |                 return "Response error (Status \(response.statusCode)): \(detail)"
     |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  73 |             case .decodingError(let response, let detail):
  74 |                 return "Decoding error (Status \(response.statusCode)): \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:74:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  72 |                 return "Response error (Status \(response.statusCode)): \(detail)"
  73 |             case .decodingError(let response, let detail):
  74 |                 return "Decoding error (Status \(response.statusCode)): \(detail)"
     |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  75 |             case .unexpectedError(let detail):
  76 |                 return "Unexpected error: \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:97:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
  95 |     ) async throws -> T {
  96 |         let request = try createRequest(method, path, params: params)
  97 |         let (data, response) = try await session.data(for: request)
     |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
  98 |         let httpResponse = try validateResponse(response)
  99 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:22: error: cannot find type 'URLRequest' in scope
 229 |                 #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
 230 |         }
 231 |         var request: URLRequest = URLRequest(url: url)
     |                      `- error: cannot find type 'URLRequest' in scope
 232 |         request.httpMethod = method.rawValue
 233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:35: error: cannot find 'URLRequest' in scope
 229 |                 #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
 230 |         }
 231 |         var request: URLRequest = URLRequest(url: url)
     |                                   `- error: cannot find 'URLRequest' in scope
 232 |         request.httpMethod = method.rawValue
 233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:248:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
 250 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
  38 |         host: URL,
  39 |         userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                                                          `- error: cannot infer contextual base in reference to member 'default'
  38 |         host: URL,
  39 |         userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  26 |
  27 |     /// The underlying client session.
  28 |     private let session: URLSession
     |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  29 |
  30 |     /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  35 |     ///   - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
  36 |     public init(
  37 |         session: URLSession = URLSession(configuration: .default),
     |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  38 |         host: URL,
  39 |         userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  55 |
  56 |         /// An error returned by the Ollama HTTP API.
  57 |         case responseError(response: HTTPURLResponse, detail: String)
     |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  58 |
  59 |         /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  58 |
  59 |         /// An error encountered while decoding the response.
  60 |         case decodingError(response: HTTPURLResponse, detail: String)
     |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  61 |
  62 |         /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
 204 |         _ path: String,
 205 |         params: [String: Value]? = nil
 206 |     ) throws -> URLRequest {
     |                 `- error: cannot find type 'URLRequest' in scope
 207 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
 208 |         urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 245 |     }
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
     |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 245 |     }
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
     |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:72:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  70 |                 return "Request error: \(detail)"
  71 |             case .responseError(let response, let detail):
  72 |                 return "Response error (Status \(response.statusCode)): \(detail)"
     |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  73 |             case .decodingError(let response, let detail):
  74 |                 return "Decoding error (Status \(response.statusCode)): \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:74:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  72 |                 return "Response error (Status \(response.statusCode)): \(detail)"
  73 |             case .decodingError(let response, let detail):
  74 |                 return "Decoding error (Status \(response.statusCode)): \(detail)"
     |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
  75 |             case .unexpectedError(let detail):
  76 |                 return "Unexpected error: \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:97:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
  95 |     ) async throws -> T {
  96 |         let request = try createRequest(method, path, params: params)
  97 |         let (data, response) = try await session.data(for: request)
     |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
  98 |         let httpResponse = try validateResponse(response)
  99 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:22: error: cannot find type 'URLRequest' in scope
 229 |                 #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
 230 |         }
 231 |         var request: URLRequest = URLRequest(url: url)
     |                      `- error: cannot find type 'URLRequest' in scope
 232 |         request.httpMethod = method.rawValue
 233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:35: error: cannot find 'URLRequest' in scope
 229 |                 #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
 230 |         }
 231 |         var request: URLRequest = URLRequest(url: url)
     |                                   `- error: cannot find 'URLRequest' in scope
 232 |         request.httpMethod = method.rawValue
 233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:248:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 246 |
 247 |     private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
 248 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 249 |             throw Error.unexpectedError("Response is not HTTPURLResponse")
 250 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
BUILD FAILURE 6.3 wasm