Build Information
Successful build of swift-llama-cpp, reference main (d2750c), with Swift 6.2 for macOS (SPM) on 4 Oct 2026 02:49:20 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pgorzelany/swift-llama-cpp.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pgorzelany/swift-llama-cpp
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d2750c5 Verify generated text and token agreement with native llama C API
Cloned https://github.com/pgorzelany/swift-llama-cpp.git
Revision (git rev-parse @):
d2750c52f5310596fede783ad1122c66cbd30855
SUCCESS checkout https://github.com/pgorzelany/swift-llama-cpp.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/pgorzelany/swift-llama-cpp.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying llama.framework
[2/3] Write swift-version--3CB7CFEC50E0D141.txt
[4/27] Emitting module SwiftLlama
[5/29] Compiling SwiftLlama LlamaContextUsage.swift
[6/29] Compiling SwiftLlama LlamaError.swift
[7/29] Compiling SwiftLlama LlamaExecutorRuntime.swift
[8/29] Compiling SwiftLlama LlamaUTF8Decoder.swift
[9/29] Compiling SwiftLlama Task+Extensions.swift
[10/29] Compiling SwiftLlama LlamaService.swift
[11/29] Compiling SwiftLlama LlamaToolCalling.swift
[12/29] Compiling SwiftLlama LlamaTranscriptMapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:214:9: warning: no calls to throwing functions occur within 'try' expression
212 | // Primitive decoders
213 | func decode(_ type: String.Type, forKey key: Key) throws -> String {
214 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
215 | recorder.registerPrimitiveString(into: slot)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:220:9: warning: no calls to throwing functions occur within 'try' expression
218 | }
219 | func decode(_ type: Bool.Type, forKey key: Key) throws -> Bool {
220 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
221 | recorder.registerPrimitiveBoolean(into: slot)
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:226:9: warning: no calls to throwing functions occur within 'try' expression
224 | }
225 | func decode(_ type: Int.Type, forKey key: Key) throws -> Int {
226 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
227 | recorder.registerPrimitiveInteger(into: slot)
228 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:241:9: warning: no calls to throwing functions occur within 'try' expression
239 | func decode(_ type: UInt64.Type, forKey key: Key) throws -> UInt64 { UInt64(try decode(Int.self, forKey: key)) }
240 | func decode(_ type: Float.Type, forKey key: Key) throws -> Float {
241 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
242 | recorder.registerPrimitiveNumber(into: slot)
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:247:9: warning: no calls to throwing functions occur within 'try' expression
245 | }
246 | func decode(_ type: Double.Type, forKey key: Key) throws -> Double {
247 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
248 | recorder.registerPrimitiveNumber(into: slot)
249 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:264:9: warning: no calls to throwing functions occur within 'try' expression
262 |
263 | func decodeIfPresent(_ type: String.Type, forKey key: Key) throws -> String? {
264 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
265 | recorder.registerPrimitiveString(into: slot)
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:270:9: warning: no calls to throwing functions occur within 'try' expression
268 | }
269 | func decodeIfPresent(_ type: Bool.Type, forKey key: Key) throws -> Bool? {
270 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
271 | recorder.registerPrimitiveBoolean(into: slot)
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:276:9: warning: no calls to throwing functions occur within 'try' expression
274 | }
275 | func decodeIfPresent(_ type: Int.Type, forKey key: Key) throws -> Int? {
276 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
277 | recorder.registerPrimitiveInteger(into: slot)
278 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:282:9: warning: no calls to throwing functions occur within 'try' expression
280 | }
281 | func decodeIfPresent(_ type: Double.Type, forKey key: Key) throws -> Double? {
282 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
283 | recorder.registerPrimitiveNumber(into: slot)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:288:9: warning: no calls to throwing functions occur within 'try' expression
286 | }
287 | func decodeIfPresent(_ type: Float.Type, forKey key: Key) throws -> Float? {
288 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
289 | recorder.registerPrimitiveNumber(into: slot)
290 | }
[13/29] Compiling SwiftLlama LlamaTypedJSONGrammarBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:214:9: warning: no calls to throwing functions occur within 'try' expression
212 | // Primitive decoders
213 | func decode(_ type: String.Type, forKey key: Key) throws -> String {
214 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
215 | recorder.registerPrimitiveString(into: slot)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:220:9: warning: no calls to throwing functions occur within 'try' expression
218 | }
219 | func decode(_ type: Bool.Type, forKey key: Key) throws -> Bool {
220 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
221 | recorder.registerPrimitiveBoolean(into: slot)
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:226:9: warning: no calls to throwing functions occur within 'try' expression
224 | }
225 | func decode(_ type: Int.Type, forKey key: Key) throws -> Int {
226 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
227 | recorder.registerPrimitiveInteger(into: slot)
228 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:241:9: warning: no calls to throwing functions occur within 'try' expression
239 | func decode(_ type: UInt64.Type, forKey key: Key) throws -> UInt64 { UInt64(try decode(Int.self, forKey: key)) }
240 | func decode(_ type: Float.Type, forKey key: Key) throws -> Float {
241 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
242 | recorder.registerPrimitiveNumber(into: slot)
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:247:9: warning: no calls to throwing functions occur within 'try' expression
245 | }
246 | func decode(_ type: Double.Type, forKey key: Key) throws -> Double {
247 | try object.addRequired(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
248 | recorder.registerPrimitiveNumber(into: slot)
249 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:264:9: warning: no calls to throwing functions occur within 'try' expression
262 |
263 | func decodeIfPresent(_ type: String.Type, forKey key: Key) throws -> String? {
264 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
265 | recorder.registerPrimitiveString(into: slot)
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:270:9: warning: no calls to throwing functions occur within 'try' expression
268 | }
269 | func decodeIfPresent(_ type: Bool.Type, forKey key: Key) throws -> Bool? {
270 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
271 | recorder.registerPrimitiveBoolean(into: slot)
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:276:9: warning: no calls to throwing functions occur within 'try' expression
274 | }
275 | func decodeIfPresent(_ type: Int.Type, forKey key: Key) throws -> Int? {
276 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
277 | recorder.registerPrimitiveInteger(into: slot)
278 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:282:9: warning: no calls to throwing functions occur within 'try' expression
280 | }
281 | func decodeIfPresent(_ type: Double.Type, forKey key: Key) throws -> Double? {
282 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
283 | recorder.registerPrimitiveNumber(into: slot)
284 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaTypedJSONGrammarBuilder.swift:288:9: warning: no calls to throwing functions occur within 'try' expression
286 | }
287 | func decodeIfPresent(_ type: Float.Type, forKey key: Key) throws -> Float? {
288 | try object.addOptional(key: key.stringValue) { slot in
| `- warning: no calls to throwing functions occur within 'try' expression
289 | recorder.registerPrimitiveNumber(into: slot)
290 | }
[14/29] Compiling SwiftLlama LlamaSampler.swift
[15/29] Compiling SwiftLlama LlamaSamplingConfig.swift
[16/29] Compiling SwiftLlama LlamaChatMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaContext.swift:226:46: warning: 'llama_set_warmup' is deprecated: user code should do warmup runs manually [TAG_LLAMA_GRAPH_NO_WARMUP] [#DeprecatedDeclaration]
224 | public func setEmbeddingsOutput(_ enabled: Bool) { llama_set_embeddings(contextPointer, enabled) }
225 | public func setCausalAttention(_ enabled: Bool) { llama_set_causal_attn(contextPointer, enabled) }
226 | public func setWarmup(_ enabled: Bool) { llama_set_warmup(contextPointer, enabled) }
| `- warning: 'llama_set_warmup' is deprecated: user code should do warmup runs manually [TAG_LLAMA_GRAPH_NO_WARMUP] [#DeprecatedDeclaration]
227 |
228 | // Abort callback bridging
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[17/29] Compiling SwiftLlama LlamaConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaContext.swift:226:46: warning: 'llama_set_warmup' is deprecated: user code should do warmup runs manually [TAG_LLAMA_GRAPH_NO_WARMUP] [#DeprecatedDeclaration]
224 | public func setEmbeddingsOutput(_ enabled: Bool) { llama_set_embeddings(contextPointer, enabled) }
225 | public func setCausalAttention(_ enabled: Bool) { llama_set_causal_attn(contextPointer, enabled) }
226 | public func setWarmup(_ enabled: Bool) { llama_set_warmup(contextPointer, enabled) }
| `- warning: 'llama_set_warmup' is deprecated: user code should do warmup runs manually [TAG_LLAMA_GRAPH_NO_WARMUP] [#DeprecatedDeclaration]
227 |
228 | // Abort callback bridging
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[18/29] Compiling SwiftLlama LlamaContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaContext.swift:226:46: warning: 'llama_set_warmup' is deprecated: user code should do warmup runs manually [TAG_LLAMA_GRAPH_NO_WARMUP] [#DeprecatedDeclaration]
224 | public func setEmbeddingsOutput(_ enabled: Bool) { llama_set_embeddings(contextPointer, enabled) }
225 | public func setCausalAttention(_ enabled: Bool) { llama_set_causal_attn(contextPointer, enabled) }
226 | public func setWarmup(_ enabled: Bool) { llama_set_warmup(contextPointer, enabled) }
| `- warning: 'llama_set_warmup' is deprecated: user code should do warmup runs manually [TAG_LLAMA_GRAPH_NO_WARMUP] [#DeprecatedDeclaration]
227 |
228 | // Abort callback bridging
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[19/29] Compiling SwiftLlama LlamaLoraAdapter.swift
[20/29] Compiling SwiftLlama LlamaMemory.swift
[21/29] Compiling SwiftLlama LlamaModel.swift
[22/29] Compiling SwiftLlama Llama.swift
[23/29] Compiling SwiftLlama LlamaBackend.swift
[24/29] Compiling SwiftLlama LlamaBatch.swift
[25/29] Compiling SwiftLlama LlamaRepetitionPenaltyConfig.swift
[26/29] Compiling SwiftLlama LlamaResponseEmitter.swift
[27/29] Compiling SwiftLlama LlamaGrammarConfig.swift
[28/29] Compiling SwiftLlama LlamaLanguageModel.swift
[29/29] Compiling SwiftLlama LlamaLogger.swift
Build complete! (8.27s)
Downloading binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-xcframework.zip
[16375/57604877] Downloading https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-xcframework.zip
Downloaded https://github.com/ggml-org/llama.cpp/releases/download/b10964/llama-b10964-xcframework.zip (3.15s)
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-b10964-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" : [
"GemmaCompatibilityTests.swift",
"Helpers/URL+Extensions.swift",
"LlamaAuditProbes.swift",
"LlamaBackendTests.swift",
"LlamaBehaviorTests.swift",
"LlamaCacheReuseTests.swift",
"LlamaContextTests.swift",
"LlamaDiagnosticsTests.swift",
"LlamaGrammarRegressionTests.swift",
"LlamaLanguageModelTests.swift",
"LlamaLifecycleRegressionTests.swift",
"LlamaModelTests.swift",
"LlamaPerformanceTests.swift",
"LlamaRegressionTests.swift",
"LlamaSamplerPerformanceTests.swift",
"LlamaSamplerTests.swift",
"LlamaServiceTests.swift",
"LlamaTests.swift",
"LlamaToolCallingTests.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",
"LlamaContextUsage.swift",
"LlamaError.swift",
"LlamaExecutorRuntime.swift",
"LlamaGrammarConfig.swift",
"LlamaLanguageModel.swift",
"LlamaLogger.swift",
"LlamaLoraAdapter.swift",
"LlamaMemory.swift",
"LlamaModel.swift",
"LlamaRepetitionPenaltyConfig.swift",
"LlamaResponseEmitter.swift",
"LlamaSampler.swift",
"LlamaSamplingConfig.swift",
"LlamaService.swift",
"LlamaToolCalling.swift",
"LlamaTranscriptMapper.swift",
"LlamaTypedJSONGrammarBuilder.swift",
"LlamaUTF8Decoder.swift",
"Task+Extensions.swift"
],
"target_dependencies" : [
"llama"
],
"type" : "library"
}
],
"tools_version" : "6.1"
}
Done.