The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftLlama, reference main (792181), with Swift 6.3 for macOS (SPM) on 16 Apr 2026 15:59:38 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ShenghaiWang/SwiftLlama.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ShenghaiWang/SwiftLlama
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7921814 Merge pull request #22 from gpotari/main
Cloned https://github.com/ShenghaiWang/SwiftLlama.git
Revision (git rev-parse @):
792181492beff9edba52314a040032cefb19edd6
SUCCESS checkout https://github.com/ShenghaiWang/SwiftLlama.git at main
Fetching https://github.com/ggerganov/llama.cpp.git
[1/388570] Fetching llama.cpp
Fetched https://github.com/ggerganov/llama.cpp.git from cache (173.23s)
Creating working copy for https://github.com/ggerganov/llama.cpp.git
Working copy of https://github.com/ggerganov/llama.cpp.git resolved at b6d6c5289f1c9c677657c380591201ddb210b649
Downloading binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip
[8948/74944281] Downloading https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip
Downloaded https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip (6.50s)
========================================
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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "swiftllama",
      "name": "SwiftLlama",
      "url": "https://github.com/ShenghaiWang/SwiftLlama.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftLlama",
      "traits": [
        "default"
      ],
      "dependencies": [
        {
          "identity": "llama.cpp",
          "name": "llama",
          "url": "https://github.com/ggerganov/llama.cpp.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/llama.cpp",
          "traits": [
            "default"
          ],
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ShenghaiWang/SwiftLlama.git
[1/380] Fetching swiftllama
Fetched https://github.com/ShenghaiWang/SwiftLlama.git from cache (0.76s)
Fetching https://github.com/ggerganov/llama.cpp.git from cache
Fetched https://github.com/ggerganov/llama.cpp.git from cache (1.31s)
Creating working copy for https://github.com/ShenghaiWang/SwiftLlama.git
Working copy of https://github.com/ShenghaiWang/SwiftLlama.git resolved at main (7921814)
Creating working copy for https://github.com/ggerganov/llama.cpp.git
Working copy of https://github.com/ggerganov/llama.cpp.git resolved at b6d6c5289f1c9c677657c380591201ddb210b649
Fetching binary artifact https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip from cache
Fetched https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip from cache (3.50s)
warning: '.resolve-product-dependencies': dependency 'swiftllama' is not used by any target
Found 1 product dependencies
  - llama
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ShenghaiWang/SwiftLlama.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/17] Copying ggml-metal.metal
[1/17] Write sources
[2/17] Write swift-version--6988338F2F200930.txt
[3/17] Copying llama.framework
[4/17] Compiling llama resource_bundle_accessor.m
[5/17] Compiling llama-grammar.cpp
[6/17] Compiling llama-vocab.cpp
[6/17] Compiling llama-sampling.cpp
[8/17] Compiling ggml-alloc.c
[9/17] Compiling ggml-metal.m
[10/17] Compiling ggml-aarch64.c
[11/17] Compiling ggml-backend.cpp
[12/17] Compiling ggml-quants.c
[13/17] Compiling unicode.cpp
[14/17] Compiling unicode-data.cpp
[15/17] Compiling ggml.c
[16/17] Compiling llama.cpp
[18/28] Compiling SwiftLlama TypeAlias.swift
[19/28] Compiling SwiftLlama Prompt.swift
[20/28] Compiling SwiftLlama Session.swift
[21/28] Compiling SwiftLlama Configuration.swift
[22/28] Compiling SwiftLlama StopToken.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/llama.cpp/spm-headers/llama.h"
  |         `- note: in file included from <module-includes>:1:
2 |
[23/28] Compiling SwiftLlama SwiftLlamaError.swift
[24/28] Compiling SwiftLlama Chat.swift
[25/28] Compiling SwiftLlama LlamaModel.swift
[26/28] Compiling SwiftLlama Batch.swift
[27/28] Emitting module SwiftLlama
[28/28] Compiling SwiftLlama Swiftllama.swift
[29/29] Compiling SwiftLlama SwiftllamaActor.swift
Build complete! (14.34s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "llama.cpp",
      "requirement" : {
        "revision" : [
          "b6d6c5289f1c9c677657c380591201ddb210b649"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ggerganov/llama.cpp.git"
    }
  ],
  "manifest_display_name" : "SwiftLlama",
  "name" : "SwiftLlama",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "18.0"
    },
    {
      "name" : "watchos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "18.0"
    },
    {
      "name" : "visionos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLlama",
      "targets" : [
        "SwiftLlama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLlamaTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlamaTests",
      "path" : "Tests/SwiftLlamaTests",
      "sources" : [
        "SwiftLlamaTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLlama"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLlama",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLlama",
      "path" : "Sources/SwiftLlama",
      "product_dependencies" : [
        "llama"
      ],
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
        "LlamaModel.swift",
        "Models/Batch.swift",
        "Models/Chat.swift",
        "Models/Configuration.swift",
        "Models/Prompt.swift",
        "Models/Session.swift",
        "Models/StopToken.swift",
        "Models/SwiftLlamaError.swift",
        "Models/TypeAlias.swift",
        "Swiftllama.swift",
        "SwiftllamaActor.swift"
      ],
      "target_dependencies" : [
        "LlamaFramework"
      ],
      "type" : "library"
    },
    {
      "c99name" : "LlamaFramework",
      "module_type" : "BinaryTarget",
      "name" : "LlamaFramework",
      "path" : "remote/archive/llama-b5046-xcframework.zip",
      "product_memberships" : [
        "SwiftLlama"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "6.0"
}
Done.