The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-llama, reference main (3edf4d), with Swift 6.2 for macOS (SPM) on 6 Apr 2026 07:32:23 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/profclaw/swift-llama.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/profclaw/swift-llama
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3edf4d4 docs: switch to mermaid diagram, final README polish
Cloned https://github.com/profclaw/swift-llama.git
Revision (git rev-parse @):
3edf4d4556cbf0a06f0a701ee6439aec41aebd00
SUCCESS checkout https://github.com/profclaw/swift-llama.git at main
Downloading binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b8668/llama-b8668-xcframework.zip
[16375/175853620] Downloading https://github.com/ggml-org/llama.cpp/releases/download/b8668/llama-b8668-xcframework.zip
Downloaded https://github.com/ggml-org/llama.cpp/releases/download/b8668/llama-b8668-xcframework.zip (8.86s)
========================================
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",
      "name": "swift-llama",
      "url": "https://github.com/profclaw/swift-llama.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-llama",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/profclaw/swift-llama.git
[1/98] Fetching swift-llama
Fetched https://github.com/profclaw/swift-llama.git from cache (0.73s)
Creating working copy for https://github.com/profclaw/swift-llama.git
Working copy of https://github.com/profclaw/swift-llama.git resolved at main (3edf4d4)
Fetching binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b8668/llama-b8668-xcframework.zip from cache
Fetched https://github.com/ggml-org/llama.cpp/releases/download/b8668/llama-b8668-xcframework.zip from cache (7.63s)
warning: '.resolve-product-dependencies': dependency 'swift-llama' 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/profclaw/swift-llama.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/20] Compiling SwiftLlama StreamChunk.swift
[5/20] Compiling SwiftLlama SamplingParams.swift
[6/21] Compiling SwiftLlama ToolCall.swift
[7/21] Compiling SwiftLlama ModelConfig.swift
[8/21] Compiling SwiftLlama ModelInfo.swift
[9/21] Compiling SwiftLlama DownloadEvent.swift
[10/21] Compiling SwiftLlama LlamaError.swift
[11/21] Compiling SwiftLlama ToolCallParser.swift
[12/21] Compiling SwiftLlama ChatMessage.swift
[13/21] Compiling SwiftLlama ChatTemplate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaActor.swift:88:40: warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
 86 |                     temporaryInvalidCChars.append(0)
 87 |                     // String(validatingUTF8:) deprecated in macOS 15+; keep for macOS 14 compat
 88 |                     if let remaining = String(validatingUTF8: temporaryInvalidCChars) {
    |                                        `- warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
 89 |                         continuation.yield(remaining)
 90 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaActor.swift:102:34: warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
100 |             // Try to form a valid UTF-8 string
101 |             temporaryInvalidCChars.append(0)
102 |             if let tokenString = String(validatingUTF8: temporaryInvalidCChars) {
    |                                  `- warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
103 |                 temporaryInvalidCChars.removeAll()
104 |                 if !tokenString.isEmpty {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[14/21] Compiling SwiftLlama LlamaActor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaActor.swift:88:40: warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
 86 |                     temporaryInvalidCChars.append(0)
 87 |                     // String(validatingUTF8:) deprecated in macOS 15+; keep for macOS 14 compat
 88 |                     if let remaining = String(validatingUTF8: temporaryInvalidCChars) {
    |                                        `- warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
 89 |                         continuation.yield(remaining)
 90 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLlama/LlamaActor.swift:102:34: warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
100 |             // Try to form a valid UTF-8 string
101 |             temporaryInvalidCChars.append(0)
102 |             if let tokenString = String(validatingUTF8: temporaryInvalidCChars) {
    |                                  `- warning: 'init(validatingUTF8:)' is deprecated: Use String(validating: array, as: UTF8.self) instead, after truncating the null termination. [#DeprecatedDeclaration]
103 |                 temporaryInvalidCChars.removeAll()
104 |                 if !tokenString.isEmpty {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[15/21] Compiling SwiftLlama LlamaContext.swift
[16/21] Compiling SwiftLlama LlamaModel.swift
[17/21] Emitting module SwiftLlama
[18/21] Compiling SwiftLlama ModelDownloader.swift
[19/21] Compiling SwiftLlama SwiftLlama.swift
[20/21] Compiling SwiftLlama LlamaSampling.swift
[21/21] Compiling SwiftLlama ModelCatalog.swift
Build complete! (5.54s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-llama",
  "name" : "swift-llama",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLlama",
      "targets" : [
        "SwiftLlama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "llama_cpp",
      "module_type" : "BinaryTarget",
      "name" : "llama-cpp",
      "path" : "remote/archive/llama-b8668-xcframework.zip",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "SwiftLlamaTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlamaTests",
      "path" : "Tests/SwiftLlamaTests",
      "sources" : [
        "ChatMessageTests.swift",
        "ChatTemplateTests.swift",
        "ModelCatalogTests.swift",
        "ModelConfigTests.swift",
        "SamplingParamsTests.swift",
        "ToolCallParserTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLlama"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLlama",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlama",
      "path" : "Sources/SwiftLlama",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
        "ChatTemplate.swift",
        "LlamaActor.swift",
        "LlamaContext.swift",
        "LlamaModel.swift",
        "LlamaSampling.swift",
        "ModelCatalog.swift",
        "ModelDownloader.swift",
        "SwiftLlama.swift",
        "ToolCallParser.swift",
        "Types/ChatMessage.swift",
        "Types/DownloadEvent.swift",
        "Types/LlamaError.swift",
        "Types/ModelConfig.swift",
        "Types/ModelInfo.swift",
        "Types/SamplingParams.swift",
        "Types/StreamChunk.swift",
        "Types/ToolCall.swift"
      ],
      "target_dependencies" : [
        "llama-cpp"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Done.