The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-llama-cpp, reference 1.2.0 (5496bc), with Swift 6.1 for macOS (SPM) on 1 Sep 2025 01:24:49 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pgorzelany/swift-llama-cpp.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pgorzelany/swift-llama-cpp
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 5496bc7 Added more tests
Cloned https://github.com/pgorzelany/swift-llama-cpp.git
Revision (git rev-parse @):
5496bc7c9820f04bba7268dc8a271235deae436d
SUCCESS checkout https://github.com/pgorzelany/swift-llama-cpp.git at 1.2.0
Downloading binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip
[16375/92162585] Downloading https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip
Downloaded https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip (5.17s)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-llama-cpp",
      "name": "swift-llama-cpp",
      "url": "https://github.com/pgorzelany/swift-llama-cpp.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-llama-cpp",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/pgorzelany/swift-llama-cpp.git
[3/267] Fetching swift-llama-cpp
Fetched https://github.com/pgorzelany/swift-llama-cpp.git from cache (2.52s)
Creating working copy for https://github.com/pgorzelany/swift-llama-cpp.git
Working copy of https://github.com/pgorzelany/swift-llama-cpp.git resolved at 1.2.0 (5496bc7)
Fetching binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip from cache
Fetched https://github.com/ggml-org/llama.cpp/releases/download/b6102/llama-b6102-xcframework.zip from cache (4.39s)
warning: '.resolve-product-dependencies': dependency 'swift-llama-cpp' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pgorzelany/swift-llama-cpp.git
https://github.com/pgorzelany/swift-llama-cpp.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-llama-cpp",
  "name" : "swift-llama-cpp",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLlama",
      "targets" : [
        "SwiftLlama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "llama",
      "module_type" : "BinaryTarget",
      "name" : "llama",
      "path" : "remote/archive/llama-b6102-xcframework.zip",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "SwiftLlamaTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlamaTests",
      "path" : "Tests/SwiftLlamaTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftLlamaTests/Resources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Helpers/URL+Extensions.swift",
        "LlamaBackendTests.swift",
        "LlamaContextTests.swift",
        "LlamaModelTests.swift",
        "LlamaSamplerTests.swift",
        "LlamaServiceTests.swift",
        "LlamaTests.swift",
        "LlamaTypedGrammarTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLlama"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLlama",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlama",
      "path" : "Sources/SwiftLlama",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
        "Llama.swift",
        "LlamaBackend.swift",
        "LlamaBatch.swift",
        "LlamaChatMessage.swift",
        "LlamaConfig.swift",
        "LlamaContext.swift",
        "LlamaError.swift",
        "LlamaGrammarConfig.swift",
        "LlamaLogger.swift",
        "LlamaLoraAdapter.swift",
        "LlamaMemory.swift",
        "LlamaModel.swift",
        "LlamaRepetitionPenaltyConfig.swift",
        "LlamaSampler.swift",
        "LlamaSamplingConfig.swift",
        "LlamaService.swift",
        "LlamaTypedJSONGrammarBuilder.swift",
        "Task+Extensions.swift"
      ],
      "target_dependencies" : [
        "llama"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[1/3] Copying llama.framework
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/21] Compiling SwiftLlama LlamaBatch.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/21] Compiling SwiftLlama LlamaChatMessage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/21] Compiling SwiftLlama Llama.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/21] Compiling SwiftLlama LlamaBackend.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/21] Compiling SwiftLlama LlamaMemory.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/21] Compiling SwiftLlama LlamaModel.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/21] Emitting module SwiftLlama
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/22] Compiling SwiftLlama LlamaSamplingConfig.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/22] Compiling SwiftLlama LlamaService.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/22] Compiling SwiftLlama LlamaTypedJSONGrammarBuilder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:202:9: warning: no calls to throwing functions occur within 'try' expression
200 |     // Primitive decoders
201 |     func decode(_ type: String.Type, forKey key: Key) throws -> String {
202 |         try object.addRequired(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
203 |             recorder.registerPrimitiveString(into: slot)
204 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:208:9: warning: no calls to throwing functions occur within 'try' expression
206 |     }
207 |     func decode(_ type: Bool.Type, forKey key: Key) throws -> Bool {
208 |         try object.addRequired(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
209 |             recorder.registerPrimitiveBoolean(into: slot)
210 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:214:9: warning: no calls to throwing functions occur within 'try' expression
212 |     }
213 |     func decode(_ type: Int.Type, forKey key: Key) throws -> Int {
214 |         try object.addRequired(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
215 |             recorder.registerPrimitiveInteger(into: slot)
216 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:229:9: warning: no calls to throwing functions occur within 'try' expression
227 |     func decode(_ type: UInt64.Type, forKey key: Key) throws -> UInt64 { UInt64(try decode(Int.self, forKey: key)) }
228 |     func decode(_ type: Float.Type, forKey key: Key) throws -> Float {
229 |         try object.addRequired(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
230 |             recorder.registerPrimitiveNumber(into: slot)
231 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:235:9: warning: no calls to throwing functions occur within 'try' expression
233 |     }
234 |     func decode(_ type: Double.Type, forKey key: Key) throws -> Double {
235 |         try object.addRequired(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
236 |             recorder.registerPrimitiveNumber(into: slot)
237 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:245:9: warning: no calls to throwing functions occur within 'try' expression
243 |         // Arrays are handled by nested decoding path as well
244 |         var result: T?
245 |         try object.addRequired(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
246 |             let nestedDecoder = RecordingDecoder(recorder: recorder, target: slot)
247 |             result = try? T(from: nestedDecoder)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:266:9: warning: no calls to throwing functions occur within 'try' expression
264 |
265 |     func decodeIfPresent(_ type: String.Type, forKey key: Key) throws -> String? {
266 |         try object.addOptional(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
267 |             recorder.registerPrimitiveString(into: slot)
268 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:272:9: warning: no calls to throwing functions occur within 'try' expression
270 |     }
271 |     func decodeIfPresent(_ type: Bool.Type, forKey key: Key) throws -> Bool? {
272 |         try object.addOptional(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
273 |             recorder.registerPrimitiveBoolean(into: slot)
274 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:278:9: warning: no calls to throwing functions occur within 'try' expression
276 |     }
277 |     func decodeIfPresent(_ type: Int.Type, forKey key: Key) throws -> Int? {
278 |         try object.addOptional(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
279 |             recorder.registerPrimitiveInteger(into: slot)
280 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:284:9: warning: no calls to throwing functions occur within 'try' expression
282 |     }
283 |     func decodeIfPresent(_ type: Double.Type, forKey key: Key) throws -> Double? {
284 |         try object.addOptional(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
285 |             recorder.registerPrimitiveNumber(into: slot)
286 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:290:9: warning: no calls to throwing functions occur within 'try' expression
288 |     }
289 |     func decodeIfPresent(_ type: Float.Type, forKey key: Key) throws -> Float? {
290 |         try object.addOptional(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
291 |             recorder.registerPrimitiveNumber(into: slot)
292 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:297:9: warning: no calls to throwing functions occur within 'try' expression
295 |     func decodeIfPresent<T>(_ type: T.Type, forKey key: Key) throws -> T? where T : Decodable {
296 |         var value: T?
297 |         try object.addOptional(key: key.stringValue) { slot in
    |         `- warning: no calls to throwing functions occur within 'try' expression
298 |             let nestedDecoder = RecordingDecoder(recorder: recorder, target: slot)
299 |             value = try? T(from: nestedDecoder)
[14/22] Compiling SwiftLlama LlamaRepetitionPenaltyConfig.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/22] Compiling SwiftLlama LlamaSampler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/22] Compiling SwiftLlama LlamaError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/22] Compiling SwiftLlama LlamaGrammarConfig.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/22] Compiling SwiftLlama LlamaLogger.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/22] Compiling SwiftLlama LlamaLoraAdapter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/22] Compiling SwiftLlama LlamaConfig.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/22] Compiling SwiftLlama LlamaContext.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/22] Compiling SwiftLlama Task+Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Build complete! (5.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-llama-cpp",
  "name" : "swift-llama-cpp",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLlama",
      "targets" : [
        "SwiftLlama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "llama",
      "module_type" : "BinaryTarget",
      "name" : "llama",
      "path" : "remote/archive/llama-b6102-xcframework.zip",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "SwiftLlamaTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlamaTests",
      "path" : "Tests/SwiftLlamaTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftLlamaTests/Resources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Helpers/URL+Extensions.swift",
        "LlamaBackendTests.swift",
        "LlamaContextTests.swift",
        "LlamaModelTests.swift",
        "LlamaSamplerTests.swift",
        "LlamaServiceTests.swift",
        "LlamaTests.swift",
        "LlamaTypedGrammarTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLlama"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLlama",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlama",
      "path" : "Sources/SwiftLlama",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
        "Llama.swift",
        "LlamaBackend.swift",
        "LlamaBatch.swift",
        "LlamaChatMessage.swift",
        "LlamaConfig.swift",
        "LlamaContext.swift",
        "LlamaError.swift",
        "LlamaGrammarConfig.swift",
        "LlamaLogger.swift",
        "LlamaLoraAdapter.swift",
        "LlamaMemory.swift",
        "LlamaModel.swift",
        "LlamaRepetitionPenaltyConfig.swift",
        "LlamaSampler.swift",
        "LlamaSamplingConfig.swift",
        "LlamaService.swift",
        "LlamaTypedJSONGrammarBuilder.swift",
        "Task+Extensions.swift"
      ],
      "target_dependencies" : [
        "llama"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
Done.