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 (16b30e), with Swift 6.2 (beta) for macOS (SPM) on 14 Jul 2025 06:43:26 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/1amageek/OllamaKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/1amageek/OllamaKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 16b30e8 Update swift-json-schema dependency and add tests
Cloned https://github.com/1amageek/OllamaKit.git
Revision (git rev-parse @):
16b30e8f8b2f48dbf169e5ada274478680ea2d8c
SUCCESS checkout https://github.com/1amageek/OllamaKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/1amageek/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/5] Write sources
[4/5] Write swift-version-1EA4D86E10B52AF.txt
[6/15] Compiling JSONSchema JSONSchema+Enum.swift
[7/15] Compiling JSONSchema JSONSchema+Integer.swift
[8/15] Compiling JSONSchema JSONSchema+Object.swift
[9/15] Compiling JSONSchema JSONSchema+Null.swift
[10/15] Emitting module JSONSchema
[11/15] Compiling JSONSchema JSONSchema+Array.swift
[12/15] Compiling JSONSchema JSONSchema.swift
[13/15] Compiling JSONSchema JSONSchema+Number.swift
[14/15] Compiling JSONSchema JSONSchema+String.swift
[15/15] Compiling JSONSchema JSONSchema+Boolean.swift
[16/45] Compiling OllamaKit OKChatRequestData.swift
[17/45] Compiling OllamaKit OKCopyModelRequestData.swift
[18/45] Compiling OllamaKit OKDeleteModelRequestData.swift
[19/48] Compiling OllamaKit OKEmbeddingsRequestData.swift
[20/48] Compiling OllamaKit OKGenerateRequestData.swift
[21/48] Compiling OllamaKit OKModelInfoRequestData.swift
[22/48] Compiling OllamaKit OllamaKit+Generate.swift
[23/48] Compiling OllamaKit OllamaKit+ModelInfo.swift
[24/48] Compiling OllamaKit OllamaKit+Models.swift
[25/48] Compiling OllamaKit OllamaKit+PullModel.swift
[26/48] Compiling OllamaKit OKEmbeddingsResponse.swift
[27/48] Compiling OllamaKit OKGenerateResponse.swift
[28/48] Compiling OllamaKit OKModelInfoResponse.swift
[29/48] Compiling OllamaKit OKRouter.swift
[30/48] Compiling OllamaKit OKTool.swift
[31/48] Compiling OllamaKit StreamingDelegate.swift
[32/48] Compiling OllamaKit OKModelResponse.swift
[33/48] Compiling OllamaKit OKPullModelResponse.swift
[34/48] Compiling OllamaKit JSONDecoder+Default.swift
[35/48] Compiling OllamaKit OKPullModelRequestData.swift
[36/48] Compiling OllamaKit OKCompletionResponse.swift
[37/48] Compiling OllamaKit OKChatResponse.swift
[38/48] Compiling OllamaKit JSONEncoder+Default.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:44:70: warning: capture of non-sendable type 'T.Type' in an isolated closure
 42 |                         while let chunk = self.extractNextJSON(from: &buffer) {
 43 |                             do {
 44 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
    |                                                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 45 |                                 continuation.yield(decodedObject)
 46 |                             } catch {
/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:45:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 43 |                             do {
 44 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 45 |                                 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
 46 |                             } catch {
 47 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[39/48] Compiling OllamaKit OKHTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:44:70: warning: capture of non-sendable type 'T.Type' in an isolated closure
 42 |                         while let chunk = self.extractNextJSON(from: &buffer) {
 43 |                             do {
 44 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
    |                                                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 45 |                                 continuation.yield(decodedObject)
 46 |                             } catch {
/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:45:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 43 |                             do {
 44 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 45 |                                 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
 46 |                             } catch {
 47 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[40/48] Compiling OllamaKit OKJSONValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:44:70: warning: capture of non-sendable type 'T.Type' in an isolated closure
 42 |                         while let chunk = self.extractNextJSON(from: &buffer) {
 43 |                             do {
 44 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
    |                                                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 45 |                                 continuation.yield(decodedObject)
 46 |                             } catch {
/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:45:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 43 |                             do {
 44 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 45 |                                 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
 46 |                             } catch {
 47 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[41/48] Compiling OllamaKit OllamaKit+Reachable.swift
[42/48] Compiling OllamaKit OllamaKit.swift
[43/48] Compiling OllamaKit OKCompletionOptions.swift
[44/48] Emitting module OllamaKit
[45/48] Compiling OllamaKit OllamaKit+Chat.swift
[46/48] Compiling OllamaKit OllamaKit+CopyModel.swift
[47/48] Compiling OllamaKit OllamaKit+DeleteModel.swift
[48/48] Compiling OllamaKit OllamaKit+Embeddings.swift
Fetching https://github.com/1amageek/swift-json-schema.git
[1/138] Fetching swift-json-schema
Fetched https://github.com/1amageek/swift-json-schema.git from cache (0.60s)
Fetching https://github.com/apple/swift-docc-plugin.git
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.15s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.5 (3.83s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3425] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.16s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.74s)
Creating working copy for https://github.com/1amageek/swift-json-schema.git
Working copy of https://github.com/1amageek/swift-json-schema.git resolved at main (e6a5de6)
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.5
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