Build Information
Successful build of swift-llama-cpp, reference main (605b79), with Swift 6.2 for macOS (SPM) on 3 Apr 2026 01:07:47 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
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 605b79c Bump llama version
Cloned https://github.com/pgorzelany/swift-llama-cpp.git
Revision (git rev-parse @):
605b79cc503dd79bf3aa259842596d42bcdedbe8
SUCCESS checkout https://github.com/pgorzelany/swift-llama-cpp.git at main
Downloading binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b8638/llama-b8638-xcframework.zip
[16384/175750717] Downloading https://github.com/ggml-org/llama.cpp/releases/download/b8638/llama-b8638-xcframework.zip
Downloaded https://github.com/ggml-org/llama.cpp/releases/download/b8638/llama-b8638-xcframework.zip (8.79s)
========================================
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
[1/298] Fetching swift-llama-cpp
Fetched https://github.com/pgorzelany/swift-llama-cpp.git from cache (3.63s)
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 main (605b79c)
Fetching binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b8638/llama-b8638-xcframework.zip from cache
Fetched https://github.com/ggml-org/llama.cpp/releases/download/b8638/llama-b8638-xcframework.zip from cache (7.52s)
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.2
Building package at path: $PWD
https://github.com/pgorzelany/swift-llama-cpp.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying llama.framework
[2/3] Write swift-version-49B95AFC49DCD68C.txt
[4/21] Compiling SwiftLlama LlamaRepetitionPenaltyConfig.swift
[5/21] Compiling SwiftLlama LlamaSampler.swift
[6/21] Compiling SwiftLlama LlamaSamplingConfig.swift
[7/21] Compiling SwiftLlama LlamaService.swift
[8/21] Emitting module SwiftLlama
[9/21] Compiling SwiftLlama LlamaBatch.swift
[10/21] Compiling SwiftLlama LlamaChatMessage.swift
[11/21] Compiling SwiftLlama LlamaLogger.swift
[12/21] Compiling SwiftLlama LlamaLoraAdapter.swift
[13/21] Compiling SwiftLlama LlamaConfig.swift
[14/21] Compiling SwiftLlama LlamaContext.swift
[15/21] Compiling SwiftLlama Llama.swift
[16/21] Compiling SwiftLlama LlamaBackend.swift
[17/21] Compiling SwiftLlama LlamaTypedJSONGrammarBuilder.swift
/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)
[18/21] Compiling SwiftLlama LlamaMemory.swift
[19/21] Compiling SwiftLlama LlamaModel.swift
[20/21] Compiling SwiftLlama LlamaError.swift
[21/21] Compiling SwiftLlama LlamaGrammarConfig.swift
[22/22] Compiling SwiftLlama Task+Extensions.swift
Build complete! (5.17s)
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-b8638-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.