The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build OllamaKit, reference main (fcf8b3), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 06:13:36 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kevinhermawan/OllamaKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kevinhermawan/OllamaKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fcf8b3a refactor: removes `Combine` support (#50)
Cloned https://github.com/kevinhermawan/OllamaKit.git
Revision (git rev-parse @):
fcf8b3a19eef60a06e83b4b32f093aec025df977
SUCCESS checkout https://github.com/kevinhermawan/OllamaKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/kevinhermawan/OllamaKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.txt
[5/33] Compiling OllamaKit OKCompletionOptions.swift
[6/33] Compiling OllamaKit OKChatRequestData.swift
[7/33] Compiling OllamaKit OKCopyModelRequestData.swift
[8/33] Compiling OllamaKit OKChatResponse.swift
[9/33] Compiling OllamaKit OKEmbeddingsResponse.swift
[10/33] Compiling OllamaKit OKGenerateResponse.swift
[11/33] Compiling OllamaKit OKModelInfoRequestData.swift
[12/33] Compiling OllamaKit OKPullModelRequestData.swift
[13/33] Compiling OllamaKit OKCompletionResponse.swift
[14/33] Compiling OllamaKit OKModelInfoResponse.swift
[15/33] Compiling OllamaKit OKModelResponse.swift
[16/33] Compiling OllamaKit OKPullModelResponse.swift
[17/33] Compiling OllamaKit OKDeleteModelRequestData.swift
[18/33] Compiling OllamaKit OKEmbeddingsRequestData.swift
[19/33] Compiling OllamaKit OKGenerateRequestData.swift
[20/33] Compiling OllamaKit OllamaKit+PullModel.swift
[21/33] Compiling OllamaKit OllamaKit+Reachable.swift
[22/33] Compiling OllamaKit OllamaKit.swift
[23/33] Compiling OllamaKit OllamaKit+Chat.swift
[24/33] Compiling OllamaKit OllamaKit+CopyModel.swift
[25/33] Compiling OllamaKit OllamaKit+DeleteModel.swift
[26/33] Compiling OllamaKit OllamaKit+Embeddings.swift
[27/33] Emitting module OllamaKit
[28/33] Compiling OllamaKit OllamaKit+Generate.swift
[29/33] Compiling OllamaKit OllamaKit+ModelInfo.swift
[30/33] Compiling OllamaKit OllamaKit+Models.swift
[31/36] Compiling OllamaKit JSONDecoder+Default.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:37:34: warning: capture of non-sendable type 'T.Type' in an isolated closure
 35 |                     try validate(response: response)
 36 |
 37 |                     continuation.onTermination = { terminationState in
    |                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:31:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 32 |             Task {
 33 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:39:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
 37 |                     continuation.onTermination = { terminationState in
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
    |                                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 40 |                             bytes.task.cancel()
 41 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:52:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 50 |                             do {
 51 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 52 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
 53 |                             } catch {
 54 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[32/36] Compiling OllamaKit JSONEncoder+Default.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:37:34: warning: capture of non-sendable type 'T.Type' in an isolated closure
 35 |                     try validate(response: response)
 36 |
 37 |                     continuation.onTermination = { terminationState in
    |                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:31:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 32 |             Task {
 33 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:39:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
 37 |                     continuation.onTermination = { terminationState in
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
    |                                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 40 |                             bytes.task.cancel()
 41 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:52:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 50 |                             do {
 51 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 52 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
 53 |                             } catch {
 54 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[33/36] Compiling OllamaKit OKHTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:37:34: warning: capture of non-sendable type 'T.Type' in an isolated closure
 35 |                     try validate(response: response)
 36 |
 37 |                     continuation.onTermination = { terminationState in
    |                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:31:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 32 |             Task {
 33 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:39:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
 37 |                     continuation.onTermination = { terminationState in
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
    |                                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 40 |                             bytes.task.cancel()
 41 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:52:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 50 |                             do {
 51 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 52 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
 53 |                             } catch {
 54 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[34/36] Compiling OllamaKit OKJSONValue.swift
[35/36] Compiling OllamaKit OKRouter.swift
[36/36] Compiling OllamaKit StreamingDelegate.swift
Fetching https://github.com/apple/swift-docc-plugin.git
[1/2082] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.23s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.4 (3.88s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3415] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.07s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.63s)
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
BUILD FAILURE 6.2 macosSpm